Skip to main content
Glama

Read site design

templates_read
Read-onlyIdempotent

Reads design data of the site: templates and their variables, template backups, menus, mail forms, site pages, informers and the template guides. Does not change anything.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "action": "<action>"
    },
    "name": "templates_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoList page, from 1.
actionYesOperation to run. Each oneOf entry describes one action and lists its parameters.
detailNoRecord form of a paged list. brief (default): for site pages id, title, status, parent id, public URL, last change and a plain-text excerpt up to 200 characters; for informers id, title, module, data type, the code that shows the informer in a template and manageable. Titles and excerpts are plain text; names, logins, paths, URLs and other identifiers are as the source gives them. full: complete records. A list reply is at most 30 KB and holds every record of its page: a record that does not fit in full comes in brief form, marked detail brief, the reply counts such records in brief_records, and get by id returns the complete record; brief records shorten their excerpts, then keep only their ids and titles. Only a page that does not fit even so is cut: truncated is true and next names the offset to go on from.
offsetNoRecords to skip from the start of a list; overrides page. A list reply cut at its size limit names the offset that follows in next.
contentNoGlobal block HTML (gblock_create) or full template body to check (validate_template; html_content is accepted too).
menu_idNoMenu id from menu_list.
page_idNoSite page id. Page 1 cannot be deleted.
site_idNoSite to read: site_id from list_sites. Without it the call reads the site chosen with select_site; pass it when several sites or chats are in use.
per_pageNoRecords per page: 1-50, 20 by default, larger values count as 50.
module_idNoNumeric module id of the template, from list_modules.
page_pageNopage_list: the earlier name of page; page wins when both are set.
code_pasteNoReplacement for code_search; an empty string deletes the fragment.
code_searchNoExact template fragment to find.
informer_idNoInformer id from informer_list.
template_idNoTemplate id within the module, from list_modules.
html_contentNoFull template HTML. For small edits use patch_template.
mail_form_idNoMail form id from mail_list_forms.
page_per_pageNopage_list: the earlier name of per_page; per_page wins when both are set.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / site_id
      Added value: +{
      +  "description": "Site to read: site_id from list_sites. Without it the call reads the site chosen with select_site; pass it when several sites or chats are in use.",
      +  "type": "integer"
      +}
  2. Changed4 schema fields changed
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "list_modules",
      -  "get_variables",
      -  "read_template",
      -  "validate_template",
      -  "list_backups",
      -  "get_reference",
      -  "get_guide",
      -  "get_backup_guide",
      -  "menu_list",
      -  "menu_get",
      -  "mail_list_forms",
      -  "mail_get_form",
      -  "mail_list_fields",
      -  "mail_get_template",
      -  "page_list",
      -  "page_get"
      -]New value: +[
      +  "list_modules",
      +  "get_variables",
      +  "read_template",
      +  "validate_template",
      +  "list_backups",
      +  "get_reference",
      +  "get_guide",
      +  "get_backup_guide",
      +  "menu_list",
      +  "menu_get",
      +  "mail_list_forms",
      +  "mail_get_form",
      +  "mail_list_fields",
      +  "mail_get_template",
      +  "page_list",
      +  "page_get",
      +  "informer_list",
      +  "informer_get"
      +]
    • changedInput schema / properties / action / oneOf
      Previous value: -[
      -  {
      -    "const": "list_modules",
      -    "description": "Lists the modules that have templates, with their template ids. Optional: offset."
      -  },
      -  {
      -    "const": "get_variables",
      -    "description": "Returns a template together with the variables available in it. Required: module_id, template_id."
      -  },
      -  {
      -    "const": "read_template",
      -    "description": "Returns the template code and its variables. Required: module_id, template_id."
      -  },
      -  {
      -    "const": "validate_template",
      -    "description": "Checks a full template body (content or html_content) or a code_search/code_paste patch with the same rules as a save. Nothing is saved and no backup is made. Required: module_id, template_id, content or html_content or code_search. Optional: code_paste."
      -  },
      -  {
      -    "const": "list_backups",
      -    "description": "Lists template backups. Optional: offset."
      -  },
      -  {
      -    "const": "get_reference",
      -    "description": "Returns the template variables reference (markdown)."
      -  },
      -  {
      -    "const": "get_guide",
      -    "description": "Returns the template editing guide (markdown)."
      -  },
      -  {
      -    "const": "get_backup_guide",
      -    "description": "Returns the template backup guide (markdown)."
      -  },
      -  {
      -    "const": "menu_list",
      -    "description": "Lists site menus. Optional: offset."
      -  },
      -  {
      -    "const": "menu_get",
      -    "description": "Returns one menu with its items. Required: menu_id."
      -  },
      -  {
      -    "const": "mail_list_forms",
      -    "description": "Lists mail forms. Optional: offset."
      -  },
      -  {
      -    "const": "mail_get_form",
      -    "description": "Returns one mail form. Required: mail_form_id."
      -  },
      -  {
      -    "const": "mail_list_fields",
      -    "description": "Lists the fields of a mail form. Required: mail_form_id. Optional: offset."
      -  },
      -  {
      -    "const": "mail_get_template",
      -    "description": "Returns the notification email template of a mail form. Required: mail_form_id."
      -  },
      -  {
      -    "const": "page_list",
      -    "description": "Lists site pages a page at a time. Brief pages by default, without their content; detail=full gives complete pages, page_get one complete page. The reply has page, per_page, total, has_more, truncated and next. Optional: page, per_page, offset, detail, page_page, page_per_page."
      -  },
      -  {
      -    "const": "page_get",
      -    "description": "Returns one site page. Required: page_id."
      -  }
      -]New value: +[
      +  {
      +    "const": "list_modules",
      +    "description": "Lists the modules that have templates, with their template ids. Optional: offset."
      +  },
      +  {
      +    "const": "get_variables",
      +    "description": "Returns a template together with the variables available in it. Required: module_id, template_id."
      +  },
      +  {
      +    "const": "read_template",
      +    "description": "Returns the template code and its variables. Required: module_id, template_id."
      +  },
      +  {
      +    "const": "validate_template",
      +    "description": "Checks a full template body (content or html_content) or a code_search/code_paste patch with the same rules as a save. Nothing is saved and no backup is made. Required: module_id, template_id, content or html_content or code_search. Optional: code_paste."
      +  },
      +  {
      +    "const": "list_backups",
      +    "description": "Lists template backups. Optional: offset."
      +  },
      +  {
      +    "const": "get_reference",
      +    "description": "Returns the template variables reference (markdown)."
      +  },
      +  {
      +    "const": "get_guide",
      +    "description": "Returns the template editing guide (markdown)."
      +  },
      +  {
      +    "const": "get_backup_guide",
      +    "description": "Returns the template backup guide (markdown)."
      +  },
      +  {
      +    "const": "menu_list",
      +    "description": "Lists site menus. Optional: offset."
      +  },
      +  {
      +    "const": "menu_get",
      +    "description": "Returns one menu with its items. Required: menu_id."
      +  },
      +  {
      +    "const": "mail_list_forms",
      +    "description": "Lists mail forms. Optional: offset."
      +  },
      +  {
      +    "const": "mail_get_form",
      +    "description": "Returns one mail form. Required: mail_form_id."
      +  },
      +  {
      +    "const": "mail_list_fields",
      +    "description": "Lists the fields of a mail form. Required: mail_form_id. Optional: offset."
      +  },
      +  {
      +    "const": "mail_get_template",
      +    "description": "Returns the notification email template of a mail form. Required: mail_form_id."
      +  },
      +  {
      +    "const": "page_list",
      +    "description": "Lists site pages a page at a time. Brief pages by default, without their content; detail=full gives complete pages, page_get one complete page. The reply has page, per_page, total, has_more, truncated and next. Optional: page, per_page, offset, detail, page_page, page_per_page."
      +  },
      +  {
      +    "const": "page_get",
      +    "description": "Returns one site page. Required: page_id."
      +  },
      +  {
      +    "const": "informer_list",
      +    "description": "Lists the informers of the site in id order, a page at a time: brief informers by default (id, title, module, data_type, code, the code that shows it in a template, and manageable), detail=full adds their settings; informer_get gives the template. Informers of every kind are listed, but MCP creates and changes only news and blog ones. manageable is true when informer_update can change the informer, false for the other kinds: they are changed in the site control panel and can be deleted here. The reply has limit (the most informers the site may have), page, per_page, total, has_more, truncated and next. Optional: page, per_page, offset, detail."
      +  },
      +  {
      +    "const": "informer_get",
      +    "description": "Returns one informer: its settings, template (null when it has none), template_custom (false: the default template), template_codes (the codes the template may use), code (put it into a site template to show the informer), script_url (src of a script tag for another site) and manageable (true when informer_update can change the informer: news and blog informers; false for other kinds). Required: informer_id."
      +  }
      +]
    • changedInput schema / properties / detail / description
      Previous value: -"Record form of a paged list. brief (default): for site pages id, title, status, parent id, public URL, last change and a plain-text excerpt up to 200 characters. Titles and excerpts are plain text; names, logins, paths, URLs and other identifiers are as the source gives them. full: complete records. A list reply is at most 30 KB and holds every record of its page: a record that does not fit in full comes in brief form, marked detail brief, the reply counts such records in brief_records, and get by id returns the complete record; brief records shorten their excerpts, then keep only their ids and titles. Only a page that does not fit even so is cut: truncated is true and next names the offset to go on from."New value: +"Record form of a paged list. brief (default): for site pages id, title, status, parent id, public URL, last change and a plain-text excerpt up to 200 characters; for informers id, title, module, data type, the code that shows the informer in a template and manageable. Titles and excerpts are plain text; names, logins, paths, URLs and other identifiers are as the source gives them. full: complete records. A list reply is at most 30 KB and holds every record of its page: a record that does not fit in full comes in brief form, marked detail brief, the reply counts such records in brief_records, and get by id returns the complete record; brief records shorten their excerpts, then keep only their ids and titles. Only a page that does not fit even so is cut: truncated is true and next names the offset to go on from."
    • addedInput schema / properties / informer_id
      Added value: +{
      +  "description": "Informer id from informer_list.",
      +  "type": "number"
      +}
  3. Changed1 schema field changed
    • changedInput schema / properties / action / oneOf
      Previous value: -[
      -  {
      -    "const": "list_modules",
      -    "description": "Lists the modules that have templates, with their template ids. Optional: offset."
      -  },
      -  {
      -    "const": "get_variables",
      -    "description": "Returns a template together with the variables available in it. Required: module_id, template_id."
      -  },
      -  {
      -    "const": "read_template",
      -    "description": "Returns the template code and its variables. Required: module_id, template_id."
      -  },
      -  {
      -    "const": "validate_template",
      -    "description": "Checks a full template body (content or html_content) or a code_search/code_paste patch with the same rules as a save. Nothing is saved and no backup is made. Required: module_id, template_id. Optional: content, html_content, code_search, code_paste."
      -  },
      -  {
      -    "const": "list_backups",
      -    "description": "Lists template backups. Optional: offset."
      -  },
      -  {
      -    "const": "get_reference",
      -    "description": "Returns the template variables reference (markdown)."
      -  },
      -  {
      -    "const": "get_guide",
      -    "description": "Returns the template editing guide (markdown)."
      -  },
      -  {
      -    "const": "get_backup_guide",
      -    "description": "Returns the template backup guide (markdown)."
      -  },
      -  {
      -    "const": "menu_list",
      -    "description": "Lists site menus. Optional: offset."
      -  },
      -  {
      -    "const": "menu_get",
      -    "description": "Returns one menu with its items. Required: menu_id."
      -  },
      -  {
      -    "const": "mail_list_forms",
      -    "description": "Lists mail forms. Optional: offset."
      -  },
      -  {
      -    "const": "mail_get_form",
      -    "description": "Returns one mail form. Required: mail_form_id."
      -  },
      -  {
      -    "const": "mail_list_fields",
      -    "description": "Lists the fields of a mail form. Required: mail_form_id. Optional: offset."
      -  },
      -  {
      -    "const": "mail_get_template",
      -    "description": "Returns the notification email template of a mail form. Required: mail_form_id."
      -  },
      -  {
      -    "const": "page_list",
      -    "description": "Lists site pages a page at a time. Brief pages by default, without their content; detail=full gives complete pages, page_get one complete page. The reply has page, per_page, total, has_more, truncated and next. Optional: page, per_page, offset, detail, page_page, page_per_page."
      -  },
      -  {
      -    "const": "page_get",
      -    "description": "Returns one site page. Required: page_id."
      -  }
      -]New value: +[
      +  {
      +    "const": "list_modules",
      +    "description": "Lists the modules that have templates, with their template ids. Optional: offset."
      +  },
      +  {
      +    "const": "get_variables",
      +    "description": "Returns a template together with the variables available in it. Required: module_id, template_id."
      +  },
      +  {
      +    "const": "read_template",
      +    "description": "Returns the template code and its variables. Required: module_id, template_id."
      +  },
      +  {
      +    "const": "validate_template",
      +    "description": "Checks a full template body (content or html_content) or a code_search/code_paste patch with the same rules as a save. Nothing is saved and no backup is made. Required: module_id, template_id, content or html_content or code_search. Optional: code_paste."
      +  },
      +  {
      +    "const": "list_backups",
      +    "description": "Lists template backups. Optional: offset."
      +  },
      +  {
      +    "const": "get_reference",
      +    "description": "Returns the template variables reference (markdown)."
      +  },
      +  {
      +    "const": "get_guide",
      +    "description": "Returns the template editing guide (markdown)."
      +  },
      +  {
      +    "const": "get_backup_guide",
      +    "description": "Returns the template backup guide (markdown)."
      +  },
      +  {
      +    "const": "menu_list",
      +    "description": "Lists site menus. Optional: offset."
      +  },
      +  {
      +    "const": "menu_get",
      +    "description": "Returns one menu with its items. Required: menu_id."
      +  },
      +  {
      +    "const": "mail_list_forms",
      +    "description": "Lists mail forms. Optional: offset."
      +  },
      +  {
      +    "const": "mail_get_form",
      +    "description": "Returns one mail form. Required: mail_form_id."
      +  },
      +  {
      +    "const": "mail_list_fields",
      +    "description": "Lists the fields of a mail form. Required: mail_form_id. Optional: offset."
      +  },
      +  {
      +    "const": "mail_get_template",
      +    "description": "Returns the notification email template of a mail form. Required: mail_form_id."
      +  },
      +  {
      +    "const": "page_list",
      +    "description": "Lists site pages a page at a time. Brief pages by default, without their content; detail=full gives complete pages, page_get one complete page. The reply has page, per_page, total, has_more, truncated and next. Optional: page, per_page, offset, detail, page_page, page_per_page."
      +  },
      +  {
      +    "const": "page_get",
      +    "description": "Returns one site page. Required: page_id."
      +  }
      +]
  4. Changed7 schema fields changed
    • changedInput schema / properties / action / oneOf
      Previous value: -[
      -  {
      -    "const": "list_modules",
      -    "description": "Lists the modules that have templates, with their template ids."
      -  },
      -  {
      -    "const": "get_variables",
      -    "description": "Returns a template together with the variables available in it. Required: module_id, template_id."
      -  },
      -  {
      -    "const": "read_template",
      -    "description": "Returns the template code and its variables. Required: module_id, template_id."
      -  },
      -  {
      -    "const": "validate_template",
      -    "description": "Checks a full template body (content or html_content) or a code_search/code_paste patch with the same rules as a save. Nothing is saved and no backup is made. Required: module_id, template_id. Optional: content, html_content, code_search, code_paste."
      -  },
      -  {
      -    "const": "list_backups",
      -    "description": "Lists template backups."
      -  },
      -  {
      -    "const": "get_reference",
      -    "description": "Returns the template variables reference (markdown)."
      -  },
      -  {
      -    "const": "get_guide",
      -    "description": "Returns the template editing guide (markdown)."
      -  },
      -  {
      -    "const": "get_backup_guide",
      -    "description": "Returns the template backup guide (markdown)."
      -  },
      -  {
      -    "const": "menu_list",
      -    "description": "Lists site menus."
      -  },
      -  {
      -    "const": "menu_get",
      -    "description": "Returns one menu with its items. Required: menu_id."
      -  },
      -  {
      -    "const": "mail_list_forms",
      -    "description": "Lists mail forms."
      -  },
      -  {
      -    "const": "mail_get_form",
      -    "description": "Returns one mail form. Required: mail_form_id."
      -  },
      -  {
      -    "const": "mail_list_fields",
      -    "description": "Lists the fields of a mail form. Required: mail_form_id."
      -  },
      -  {
      -    "const": "mail_get_template",
      -    "description": "Returns the notification email template of a mail form. Required: mail_form_id."
      -  },
      -  {
      -    "const": "page_list",
      -    "description": "Lists site pages. Optional: page_page, page_per_page."
      -  },
      -  {
      -    "const": "page_get",
      -    "description": "Returns one site page. Required: page_id."
      -  }
      -]New value: +[
      +  {
      +    "const": "list_modules",
      +    "description": "Lists the modules that have templates, with their template ids. Optional: offset."
      +  },
      +  {
      +    "const": "get_variables",
      +    "description": "Returns a template together with the variables available in it. Required: module_id, template_id."
      +  },
      +  {
      +    "const": "read_template",
      +    "description": "Returns the template code and its variables. Required: module_id, template_id."
      +  },
      +  {
      +    "const": "validate_template",
      +    "description": "Checks a full template body (content or html_content) or a code_search/code_paste patch with the same rules as a save. Nothing is saved and no backup is made. Required: module_id, template_id. Optional: content, html_content, code_search, code_paste."
      +  },
      +  {
      +    "const": "list_backups",
      +    "description": "Lists template backups. Optional: offset."
      +  },
      +  {
      +    "const": "get_reference",
      +    "description": "Returns the template variables reference (markdown)."
      +  },
      +  {
      +    "const": "get_guide",
      +    "description": "Returns the template editing guide (markdown)."
      +  },
      +  {
      +    "const": "get_backup_guide",
      +    "description": "Returns the template backup guide (markdown)."
      +  },
      +  {
      +    "const": "menu_list",
      +    "description": "Lists site menus. Optional: offset."
      +  },
      +  {
      +    "const": "menu_get",
      +    "description": "Returns one menu with its items. Required: menu_id."
      +  },
      +  {
      +    "const": "mail_list_forms",
      +    "description": "Lists mail forms. Optional: offset."
      +  },
      +  {
      +    "const": "mail_get_form",
      +    "description": "Returns one mail form. Required: mail_form_id."
      +  },
      +  {
      +    "const": "mail_list_fields",
      +    "description": "Lists the fields of a mail form. Required: mail_form_id. Optional: offset."
      +  },
      +  {
      +    "const": "mail_get_template",
      +    "description": "Returns the notification email template of a mail form. Required: mail_form_id."
      +  },
      +  {
      +    "const": "page_list",
      +    "description": "Lists site pages a page at a time. Brief pages by default, without their content; detail=full gives complete pages, page_get one complete page. The reply has page, per_page, total, has_more, truncated and next. Optional: page, per_page, offset, detail, page_page, page_per_page."
      +  },
      +  {
      +    "const": "page_get",
      +    "description": "Returns one site page. Required: page_id."
      +  }
      +]
    • addedInput schema / properties / detail
      Added value: +{
      +  "description": "Record form of a paged list. brief (default): for site pages id, title, status, parent id, public URL, last change and a plain-text excerpt up to 200 characters. Titles and excerpts are plain text; names, logins, paths, URLs and other identifiers are as the source gives them. full: complete records. A list reply is at most 30 KB and holds every record of its page: a record that does not fit in full comes in brief form, marked detail brief, the reply counts such records in brief_records, and get by id returns the complete record; brief records shorten their excerpts, then keep only their ids and titles. Only a page that does not fit even so is cut: truncated is true and next names the offset to go on from.",
      +  "enum": [
      +    "brief",
      +    "full"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "Records to skip from the start of a list; overrides page. A list reply cut at its size limit names the offset that follows in next.",
      +  "type": "number"
      +}
    • addedInput schema / properties / page
      Added value: +{
      +  "description": "List page, from 1.",
      +  "type": "number"
      +}
    • changedInput schema / properties / page_page / description
      Previous value: -"Page number of the page list."New value: +"page_list: the earlier name of page; page wins when both are set."
    • changedInput schema / properties / page_per_page / description
      Previous value: -"Page size of the page list."New value: +"page_list: the earlier name of per_page; per_page wins when both are set."
    • addedInput schema / properties / per_page
      Added value: +{
      +  "description": "Records per page: 1-50, 20 by default, larger values count as 50.",
      +  "type": "number"
      +}
  5. Added

TDQS

A3.5/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true, destructiveHint=false and idempotentHint=true, so 'Does not change anything' largely restates structured data. What the description does add is the breadth of readable data domains, which helps an agent know the tool's reach. It says nothing about permissions, cross-site behavior (site_id semantics live only in the schema), or reply size limits, all of which are covered elsewhere or not at all.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the core verb and resource, and the enumeration is dense but each item corresponds to a real action group. The trailing 'Does not change anything' is short and useful as a safety signal. Nothing is padded, though the sentence is long enough that it reads as a list rather than a narrative.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 18-parameter, multi-action read tool, the description correctly frames scope and read-only nature while the schema supplies per-action requirements, pagination and the site-selector override. No output schema exists, but the schema's action descriptions explain reply shapes, so return values are not a real gap. What is missing is guidance on choosing among the many actions, which the enum covers only from the caller's side.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and every one of the 18 parameters, including the 18-value action enum, is documented in detail, so the schema does the heavy lifting. The description adds no parameter-level meaning beyond the list of data domains already implied by the actions. Baseline 3 applies when the schema fully documents the inputs.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource ('Reads design data of the site') and enumerates the concrete domains covered: templates and variables, backups, menus, mail forms, pages, informers and guides. That is far more informative than the title alone. It stops short of naming siblings like templates_write or templates_delete; the read-only constraint is implied by 'Does not change anything' rather than stated as a contrast.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: the phrase 'Does not change anything' signals this is the inspection path while templates_write/templates_delete handle mutation, but that routing is never made explicit. There is no statement of prerequisites, when to prefer this over sibling readers, or which action to pick for a given need in the description itself. The action enum carries that detail, so the description is adequate but leaves inference to the caller.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.