List templates

Reply templates from Settings, Smart Tools, Templates, with text and usage.

MCP tool edesk_read → list_templates

read

Lists the templates your account has, from Settings > Smart Tools > Templates. body is the template text with snippets left as written, for example #order_number# and #tracking_code#, so the agent fills them from get_order. Inactive templates are not returned. Templates are read only here: Cotlet does not create or change them.

Parameters

Parameters: list_templates
NameTypeDescription
query string string Only templates whose name contains this text.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "edesk_read",
    "arguments": {
      "operation": "list_templates",
      "arguments": {}
    }
  }
}

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "templates": [
      {
        "template_id": 512,
        "name": "Delivery update",
        "subject": null,
        "body": "Hi #consumer_firstname#, your order #order_number# was dispatched on #dispatched_on#. Tracking code: #tracking_code#.",
        "type": "Consumer"
      }
    ]
  },
  "isError": false
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.