Skip to main content
Glama

Edit site design

templates_write
Destructive

Creates and edits design data of the site: templates (full replace or fragment patch), template backups, global blocks, menus, mail forms and their fields, site pages, news and blog informers (blocks of entries that a template shows by their code).

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>",
      "site_id": "<site_id>"
    },
    "name": "templates_write"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoGlobal block id (synonym for gblock_id).
pdaNoMobile (PDA) version flag of a global block.
itemsNoMenu items tree; replaces the current items. Item fields: title (item text), url, target, class, children; other keys are refused.
titleNoMenu title.
actionYesOperation to run. Each oneOf entry describes one action and lists its parameters.
layoutNoMenu layout: 0 horizontal, 1 vertical.
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_idYesSite to change: site_id from list_sites. Required: the call works only on this site, whatever select_site chose.
mail_rezNoMessage shown after the form is sent.
gblock_idNoGlobal block id.
mail_nameNoMail form name, or field label for field actions.
mail_tmplNoHTML template of the notification email.
module_idNoNumeric module id of the template, from list_modules.
page_nameNoPage title.
page_tmplNoCode of the page own template.
code_pasteNoReplacement for code_search; an empty string deletes the fragment.
code_searchNoExact template fragment to find.
informer_idNoInformer id from informer_list.
mail_emailsNoRecipient emails (string or array).
mail_valuesNoOptions of a select or radio field.
page_other1NoExtra field 1.
page_other2NoExtra field 2.
page_other3NoExtra field 3.
page_other4NoExtra field 4.
page_other5NoExtra field 5.
page_ownurlNoCustom URL slug.
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_messageNoPage HTML content. It is saved as HTML whatever editor the site uses.
page_owntmplNoUse the page own template.
page_pendingNoPending (moderation) flag.
mail_field_idNoMail form field id from mail_list_fields.
mail_requiredNoThe field must be filled in.
informer_titleNoName of the informer in the control panel, up to 54 characters; a new informer gets a numbered name by default.
mail_directionNo0 moves the field up, any other value moves it down.
page_parent_idNoParent page id.
informer_moduleNoModule of a new informer: news or blog; the module must be active on the site (modules_read active_mods). Cannot be changed later. Informers of other kinds are listed and read here, but they are created and changed in the site control panel.
mail_field_typeNoMail form field type code.
page_access_allNoPage is visible to all groups.
page_meta_titleNoSEO title.
informer_settingsNoSettings of a news or blog informer; a setting that is not given keeps its value, a new informer gets the defaults of the control panel. Entries: sort, max_entries, max_columns, categories, exclude_categories, entries, title_max_length, period, period_days, no_entries_msg. sort: date_asc, date_desc, rating_asc, rating_desc, views_asc, views_desc, comments_asc, comments_desc, random, title, modified_asc, modified_desc (date_desc by default). period: none, day, month, year, days (none by default; days uses period_days). Categories: max_columns, sections, categories, js_format, all_categories. Calendar: year, month. Settings of another data type are ignored. Settings read by informer_get may be copied here: its keys that are not settings (id, module, code, script_url, manageable, template_custom, template_codes, data_truncated, data_length, and data_type of a change) are skipped, and its title, template and, for a new informer, data_type are used when informer_title, informer_template and informer_data_type are not given (those parameters win); a template with template_custom false is the default one and is not copied.
informer_templateNoTemplate of one record of the informer: HTML with the codes of template_codes from informer_get (like $TITLE$, $ENTRY_URL$) and conditions <?if($CODE$)?>...<?endif?>, up to 30000 characters by default. An empty string restores the default template. Calendar informers and categories with js_format have no template. The HTML is shown on the site wherever the code of the informer stands.
informer_data_typeNoWhat a news or blog informer shows: entries (default), categories, or a calendar of the entries. Cannot be changed later.
page_meta_keywordsNoSEO keywords.
page_meta_descriptionNoSEO description.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / site_id
      Added value: +{
      +  "description": "Site to change: site_id from list_sites. Required: the call works only on this site, whatever select_site chose.",
      +  "type": "integer"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "action"
      -]New value: +[
      +  "action",
      +  "site_id"
      +]
  2. Changed8 schema fields changed
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "update_template",
      -  "patch_template",
      -  "create_backup",
      -  "gblock_create",
      -  "menu_create",
      -  "menu_update",
      -  "menu_update_items",
      -  "mail_create_form",
      -  "mail_update_form",
      -  "mail_add_field",
      -  "mail_update_field",
      -  "mail_move_field",
      -  "mail_save_template",
      -  "page_add",
      -  "page_update"
      -]New value: +[
      +  "update_template",
      +  "patch_template",
      +  "create_backup",
      +  "gblock_create",
      +  "menu_create",
      +  "menu_update",
      +  "menu_update_items",
      +  "mail_create_form",
      +  "mail_update_form",
      +  "mail_add_field",
      +  "mail_update_field",
      +  "mail_move_field",
      +  "mail_save_template",
      +  "page_add",
      +  "page_update",
      +  "informer_create",
      +  "informer_update"
      +]
    • changedInput schema / properties / action / oneOf
      Previous value: -[
      -  {
      -    "const": "update_template",
      -    "description": "Replaces the whole template. After validation an automatic backup (rotated) is made; the save is refused if the backup fails, and the result carries backup.id. Required: module_id, template_id, html_content."
      -  },
      -  {
      -    "const": "patch_template",
      -    "description": "Replaces one exact fragment of a template with code_paste. Makes the same automatic backup as update_template. Required: module_id, template_id, code_search, code_paste."
      -  },
      -  {
      -    "const": "create_backup",
      -    "description": "Makes a manual template backup (never rotated; refused with LIMIT_REACHED when the limit is reached) and returns backup.id."
      -  },
      -  {
      -    "const": "gblock_create",
      -    "description": "Creates a global block (block id in id or gblock_id: Latin letters, cut to 10 and upper-cased). Without content the block is created empty. A block that already exists is refused (ALREADY_EXISTS). Required: id or gblock_id. Optional: content, pda."
      -  },
      -  {
      -    "const": "menu_create",
      -    "description": "Creates a menu. Required: title. Optional: layout."
      -  },
      -  {
      -    "const": "menu_update",
      -    "description": "Changes the title or layout of a menu. Required: menu_id. Optional: title, layout."
      -  },
      -  {
      -    "const": "menu_update_items",
      -    "description": "Replaces the items of a menu. The text of an item goes in title. Required: menu_id, items."
      -  },
      -  {
      -    "const": "mail_create_form",
      -    "description": "Creates a mail form. Required: mail_name, mail_emails. Optional: mail_rez."
      -  },
      -  {
      -    "const": "mail_update_form",
      -    "description": "Updates a mail form. Required: mail_form_id. Optional: mail_name, mail_emails, mail_rez."
      -  },
      -  {
      -    "const": "mail_add_field",
      -    "description": "Adds a field to a mail form. Required: mail_form_id, mail_field_type, mail_name. Optional: mail_required, mail_values."
      -  },
      -  {
      -    "const": "mail_update_field",
      -    "description": "Updates a mail form field. Required: mail_form_id, mail_field_id. Optional: mail_field_type, mail_name, mail_required, mail_values."
      -  },
      -  {
      -    "const": "mail_move_field",
      -    "description": "Moves a mail form field up or down. Required: mail_form_id, mail_field_id, mail_direction."
      -  },
      -  {
      -    "const": "mail_save_template",
      -    "description": "Saves the notification email template of a mail form. Required: mail_form_id, mail_tmpl."
      -  },
      -  {
      -    "const": "page_add",
      -    "description": "Creates a site page. Required: page_name. Optional: page_message, page_parent_id, page_pending, page_owntmpl, page_tmpl, page_ownurl, page_access_all, page_meta_title, page_meta_description, page_meta_keywords, page_other1, page_other2, page_other3, page_other4, page_other5."
      -  },
      -  {
      -    "const": "page_update",
      -    "description": "Updates a site page. Required: page_id. Optional: page_name, page_message, page_parent_id, page_pending, page_owntmpl, page_tmpl, page_ownurl, page_access_all, page_meta_title, page_meta_description, page_meta_keywords, page_other1, page_other2, page_other3, page_other4, page_other5."
      -  }
      -]New value: +[
      +  {
      +    "const": "update_template",
      +    "description": "Replaces the whole template. After validation an automatic backup (rotated) is made; the save is refused if the backup fails, and the result carries backup.id. Required: module_id, template_id, html_content."
      +  },
      +  {
      +    "const": "patch_template",
      +    "description": "Replaces one exact fragment of a template with code_paste. Makes the same automatic backup as update_template. Required: module_id, template_id, code_search, code_paste."
      +  },
      +  {
      +    "const": "create_backup",
      +    "description": "Makes a manual template backup (never rotated; refused with LIMIT_REACHED when the limit is reached) and returns backup.id."
      +  },
      +  {
      +    "const": "gblock_create",
      +    "description": "Creates a global block (block id in id or gblock_id: Latin letters, cut to 10 and upper-cased). Without content the block is created empty. A block that already exists is refused (ALREADY_EXISTS). Required: id or gblock_id. Optional: content, pda."
      +  },
      +  {
      +    "const": "menu_create",
      +    "description": "Creates a menu. Required: title. Optional: layout."
      +  },
      +  {
      +    "const": "menu_update",
      +    "description": "Changes the title or layout of a menu. Required: menu_id. Optional: title, layout."
      +  },
      +  {
      +    "const": "menu_update_items",
      +    "description": "Replaces the items of a menu. The text of an item goes in title. Required: menu_id, items."
      +  },
      +  {
      +    "const": "mail_create_form",
      +    "description": "Creates a mail form. Required: mail_name, mail_emails. Optional: mail_rez."
      +  },
      +  {
      +    "const": "mail_update_form",
      +    "description": "Updates a mail form. Required: mail_form_id. Optional: mail_name, mail_emails, mail_rez."
      +  },
      +  {
      +    "const": "mail_add_field",
      +    "description": "Adds a field to a mail form. Required: mail_form_id, mail_field_type, mail_name. Optional: mail_required, mail_values."
      +  },
      +  {
      +    "const": "mail_update_field",
      +    "description": "Updates a mail form field. Required: mail_form_id, mail_field_id. Optional: mail_field_type, mail_name, mail_required, mail_values."
      +  },
      +  {
      +    "const": "mail_move_field",
      +    "description": "Moves a mail form field up or down. Required: mail_form_id, mail_field_id, mail_direction."
      +  },
      +  {
      +    "const": "mail_save_template",
      +    "description": "Saves the notification email template of a mail form. Required: mail_form_id, mail_tmpl."
      +  },
      +  {
      +    "const": "page_add",
      +    "description": "Creates a site page. Required: page_name. Optional: page_message, page_parent_id, page_pending, page_owntmpl, page_tmpl, page_ownurl, page_access_all, page_meta_title, page_meta_description, page_meta_keywords, page_other1, page_other2, page_other3, page_other4, page_other5."
      +  },
      +  {
      +    "const": "page_update",
      +    "description": "Updates a site page. Required: page_id. Optional: page_name, page_message, page_parent_id, page_pending, page_owntmpl, page_tmpl, page_ownurl, page_access_all, page_meta_title, page_meta_description, page_meta_keywords, page_other1, page_other2, page_other3, page_other4, page_other5."
      +  },
      +  {
      +    "const": "informer_create",
      +    "description": "Creates a news or blog informer and returns it as informer_get does; unset settings take the defaults of the control panel. The site has a limit of informers (limit of informer_list). The informer shows nothing until its code ($MYINF_<id>$) is put into a site template (patch_template or update_template, for example the main page or a global block); there its HTML is shown on the public site. On another site it is shown by <script src=\"script_url\"></script>. Required: informer_module. Optional: informer_data_type, informer_title, informer_template, informer_settings."
      +  },
      +  {
      +    "const": "informer_update",
      +    "description": "Changes a news or blog informer: only the given values change, and the change shows on every page with its code at once. The module and the data type stay as created, and a random sort cannot be changed to another one or back. An empty informer_template restores the default template. Returns the informer as informer_get does. An informer with manageable false (informer_list, informer_get) is refused. Required: informer_id. Optional: informer_title, informer_template, informer_settings."
      +  }
      +]
    • addedInput schema / properties / informer_data_type
      Added value: +{
      +  "description": "What a news or blog informer shows: entries (default), categories, or a calendar of the entries. Cannot be changed later.",
      +  "enum": [
      +    "entries",
      +    "categories",
      +    "calendar"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / informer_id
      Added value: +{
      +  "description": "Informer id from informer_list.",
      +  "type": "number"
      +}
    • addedInput schema / properties / informer_module
      Added value: +{
      +  "description": "Module of a new informer: news or blog; the module must be active on the site (modules_read active_mods). Cannot be changed later. Informers of other kinds are listed and read here, but they are created and changed in the site control panel.",
      +  "enum": [
      +    "news",
      +    "blog"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / informer_settings
      Added value: +{
      +  "description": "Settings of a news or blog informer; a setting that is not given keeps its value, a new informer gets the defaults of the control panel. Entries: sort, max_entries, max_columns, categories, exclude_categories, entries, title_max_length, period, period_days, no_entries_msg. sort: date_asc, date_desc, rating_asc, rating_desc, views_asc, views_desc, comments_asc, comments_desc, random, title, modified_asc, modified_desc (date_desc by default). period: none, day, month, year, days (none by default; days uses period_days). Categories: max_columns, sections, categories, js_format, all_categories. Calendar: year, month. Settings of another data type are ignored. Settings read by informer_get may be copied here: its keys that are not settings (id, module, code, script_url, manageable, template_custom, template_codes, data_truncated, data_length, and data_type of a change) are skipped, and its title, template and, for a new informer, data_type are used when informer_title, informer_template and informer_data_type are not given (those parameters win); a template with template_custom false is the default one and is not copied.",
      +  "properties": {
      +    "all_categories": {
      +      "description": "Categories data type with js_format: the whole list of categories with the sections; false by default.",
      +      "type": "boolean"
      +    },
      +    "categories": {
      +      "description": "Entries: ids of the categories whose entries are shown; categories data type: ids of the categories shown. An empty list (default) means all.",
      +      "items": {
      +        "type": "integer"
      +      },
      +      "type": "array"
      +    },
      +    "entries": {
      +      "description": "Entries: ids of the entries to show; an empty list (default) means no limit.",
      +      "items": {
      +        "type": "integer"
      +      },
      +      "type": "array"
      +    },
      +    "exclude_categories": {
      +      "description": "Entries: true shows the entries of all categories but those in categories; false by default.",
      +      "type": "boolean"
      +    },
      +    "js_format": {
      +      "description": "Categories data type: give the categories as a JavaScript array instead of HTML (false by default); such an informer has no template.",
      +      "type": "boolean"
      +    },
      +    "max_columns": {
      +      "description": "Entries and categories: number of columns, 0-20; 1 by default, 0 shows the records without a table.",
      +      "type": "integer"
      +    },
      +    "max_entries": {
      +      "description": "Entries: number of entries shown, from 1 to the limit of the site (300 by default); 10 by default, at most 50 with random.",
      +      "type": "integer"
      +    },
      +    "month": {
      +      "description": "Calendar: month 1-12, 0 (default) for the current one; set together with year.",
      +      "type": "integer"
      +    },
      +    "no_entries_msg": {
      +      "description": "Entries: text shown when the period has no entries, up to 70 characters; kept only with a period.",
      +      "type": "string"
      +    },
      +    "period": {
      +      "description": "Entries: show only the entries of the current day, month or year, or of the last period_days days; none (default) shows any.",
      +      "enum": [
      +        "none",
      +        "day",
      +        "month",
      +        "year",
      +        "days"
      +      ],
      +      "type": "string"
      +    },
      +    "period_days": {
      +      "description": "Entries: days of the days period, 1-3650, 30 by default.",
      +      "type": "integer"
      +    },
      +    "sections": {
      +      "description": "Categories data type: ids of the sections whose categories are shown; an empty list (default) means all.",
      +      "items": {
      +        "type": "integer"
      +      },
      +      "type": "array"
      +    },
      +    "sort": {
      +      "description": "Entries: order of the entries, date_desc by default; title sorts by title, modified_* by the last change. random shows at most 50 entries, and an informer cannot switch between random and another order after it is created.",
      +      "enum": [
      +        "date_asc",
      +        "date_desc",
      +        "rating_asc",
      +        "rating_desc",
      +        "views_asc",
      +        "views_desc",
      +        "comments_asc",
      +        "comments_desc",
      +        "random",
      +        "title",
      +        "modified_asc",
      +        "modified_desc"
      +      ],
      +      "type": "string"
      +    },
      +    "title_max_length": {
      +      "description": "Entries: longer titles are cut to this length, 0-200; 0 (default) means no limit.",
      +      "type": "integer"
      +    },
      +    "year": {
      +      "description": "Calendar: year from 2000, 0 (default) for the current one; set together with month.",
      +      "type": "integer"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedInput schema / properties / informer_template
      Added value: +{
      +  "description": "Template of one record of the informer: HTML with the codes of template_codes from informer_get (like $TITLE$, $ENTRY_URL$) and conditions <?if($CODE$)?>...<?endif?>, up to 30000 characters by default. An empty string restores the default template. Calendar informers and categories with js_format have no template. The HTML is shown on the site wherever the code of the informer stands.",
      +  "type": "string"
      +}
    • addedInput schema / properties / informer_title
      Added value: +{
      +  "description": "Name of the informer in the control panel, up to 54 characters; a new informer gets a numbered name by default.",
      +  "type": "string"
      +}
  3. Changed1 schema field changed
    • changedInput schema / properties / action / oneOf
      Previous value: -[
      -  {
      -    "const": "update_template",
      -    "description": "Replaces the whole template. After validation an automatic backup (rotated) is made; the save is refused if the backup fails, and the result carries backup.id. Required: module_id, template_id, html_content."
      -  },
      -  {
      -    "const": "patch_template",
      -    "description": "Replaces one exact fragment of a template with code_paste. Makes the same automatic backup as update_template. Required: module_id, template_id, code_search, code_paste."
      -  },
      -  {
      -    "const": "create_backup",
      -    "description": "Makes a manual template backup (never rotated; refused with LIMIT_REACHED when the limit is reached) and returns backup.id."
      -  },
      -  {
      -    "const": "gblock_create",
      -    "description": "Creates or replaces a global block (block id in id or gblock_id). Optional: id, gblock_id, content, pda."
      -  },
      -  {
      -    "const": "menu_create",
      -    "description": "Creates a menu. Required: title. Optional: layout."
      -  },
      -  {
      -    "const": "menu_update",
      -    "description": "Changes the title or layout of a menu. Required: menu_id. Optional: title, layout."
      -  },
      -  {
      -    "const": "menu_update_items",
      -    "description": "Replaces the items of a menu. The text of an item goes in title. Required: menu_id, items."
      -  },
      -  {
      -    "const": "mail_create_form",
      -    "description": "Creates a mail form. Required: mail_name, mail_emails. Optional: mail_rez."
      -  },
      -  {
      -    "const": "mail_update_form",
      -    "description": "Updates a mail form. Required: mail_form_id. Optional: mail_name, mail_emails, mail_rez."
      -  },
      -  {
      -    "const": "mail_add_field",
      -    "description": "Adds a field to a mail form. Required: mail_form_id, mail_field_type, mail_name. Optional: mail_required, mail_values."
      -  },
      -  {
      -    "const": "mail_update_field",
      -    "description": "Updates a mail form field. Required: mail_form_id, mail_field_id. Optional: mail_field_type, mail_name, mail_required, mail_values."
      -  },
      -  {
      -    "const": "mail_move_field",
      -    "description": "Moves a mail form field up or down. Required: mail_form_id, mail_field_id, mail_direction."
      -  },
      -  {
      -    "const": "mail_save_template",
      -    "description": "Saves the notification email template of a mail form. Required: mail_form_id, mail_tmpl."
      -  },
      -  {
      -    "const": "page_add",
      -    "description": "Creates a site page. Optional: page_name, page_message, page_parent_id, page_pending, page_owntmpl, page_tmpl, page_ownurl, page_access_all, page_meta_title, page_meta_description, page_meta_keywords, page_other1, page_other2, page_other3, page_other4, page_other5."
      -  },
      -  {
      -    "const": "page_update",
      -    "description": "Updates a site page. Required: page_id. Optional: page_name, page_message, page_parent_id, page_pending, page_owntmpl, page_tmpl, page_ownurl, page_access_all, page_meta_title, page_meta_description, page_meta_keywords, page_other1, page_other2, page_other3, page_other4, page_other5."
      -  }
      -]New value: +[
      +  {
      +    "const": "update_template",
      +    "description": "Replaces the whole template. After validation an automatic backup (rotated) is made; the save is refused if the backup fails, and the result carries backup.id. Required: module_id, template_id, html_content."
      +  },
      +  {
      +    "const": "patch_template",
      +    "description": "Replaces one exact fragment of a template with code_paste. Makes the same automatic backup as update_template. Required: module_id, template_id, code_search, code_paste."
      +  },
      +  {
      +    "const": "create_backup",
      +    "description": "Makes a manual template backup (never rotated; refused with LIMIT_REACHED when the limit is reached) and returns backup.id."
      +  },
      +  {
      +    "const": "gblock_create",
      +    "description": "Creates a global block (block id in id or gblock_id: Latin letters, cut to 10 and upper-cased). Without content the block is created empty. A block that already exists is refused (ALREADY_EXISTS). Required: id or gblock_id. Optional: content, pda."
      +  },
      +  {
      +    "const": "menu_create",
      +    "description": "Creates a menu. Required: title. Optional: layout."
      +  },
      +  {
      +    "const": "menu_update",
      +    "description": "Changes the title or layout of a menu. Required: menu_id. Optional: title, layout."
      +  },
      +  {
      +    "const": "menu_update_items",
      +    "description": "Replaces the items of a menu. The text of an item goes in title. Required: menu_id, items."
      +  },
      +  {
      +    "const": "mail_create_form",
      +    "description": "Creates a mail form. Required: mail_name, mail_emails. Optional: mail_rez."
      +  },
      +  {
      +    "const": "mail_update_form",
      +    "description": "Updates a mail form. Required: mail_form_id. Optional: mail_name, mail_emails, mail_rez."
      +  },
      +  {
      +    "const": "mail_add_field",
      +    "description": "Adds a field to a mail form. Required: mail_form_id, mail_field_type, mail_name. Optional: mail_required, mail_values."
      +  },
      +  {
      +    "const": "mail_update_field",
      +    "description": "Updates a mail form field. Required: mail_form_id, mail_field_id. Optional: mail_field_type, mail_name, mail_required, mail_values."
      +  },
      +  {
      +    "const": "mail_move_field",
      +    "description": "Moves a mail form field up or down. Required: mail_form_id, mail_field_id, mail_direction."
      +  },
      +  {
      +    "const": "mail_save_template",
      +    "description": "Saves the notification email template of a mail form. Required: mail_form_id, mail_tmpl."
      +  },
      +  {
      +    "const": "page_add",
      +    "description": "Creates a site page. Required: page_name. Optional: page_message, page_parent_id, page_pending, page_owntmpl, page_tmpl, page_ownurl, page_access_all, page_meta_title, page_meta_description, page_meta_keywords, page_other1, page_other2, page_other3, page_other4, page_other5."
      +  },
      +  {
      +    "const": "page_update",
      +    "description": "Updates a site page. Required: page_id. Optional: page_name, page_message, page_parent_id, page_pending, page_owntmpl, page_tmpl, page_ownurl, page_access_all, page_meta_title, page_meta_description, page_meta_keywords, page_other1, page_other2, page_other3, page_other4, page_other5."
      +  }
      +]
  4. Changed1 schema field changed
    • changedInput schema / properties / page_message / description
      Previous value: -"Page HTML content."New value: +"Page HTML content. It is saved as HTML whatever editor the site uses."
  5. Added

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true and openWorldHint=true, so the mutation risk is covered structurally. The description adds the breadth of what gets created or overwritten, but says nothing about automatic backups, rotation limits, refusal conditions, or irreversibility — all of that detail lives in the action-level schema, not the description. Against annotated tooling this is adequate but not additive.

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?

One front-loaded sentence with the verb and scope first, then a compact enumeration of resources. For a 17-action tool this is efficient, though the trailing parenthetical about informers is slightly awkward and would read better as its own clause or a short list.

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

Completeness3/5

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

This is a high-complexity multi-action mutation tool with 48 parameters and no output schema, so the description carries a heavier implicit burden. It never signals that each action consumes a different parameter set, nor that results include ids (e.g. backup.id) and structured error codes such as ALREADY_EXISTS or LIMIT_REACHED. Those facts are in the action descriptions, so the gap is not fatal, but the top-level description could route the agent there.

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 48 parameters, including the per-action oneOf entries and the nested informer_settings object, is documented in the schema itself. The description contributes no parameter meaning at all beyond the resource list. Baseline 3 is the ceiling when the schema does all the work.

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+resource ("Creates and edits design data of the site") and then enumerates the concrete object types covered: templates, backups, global blocks, menus, mail forms, pages, informers. It also discloses that the tool's scope is far wider than its name suggests, which helps an agent distinguish it from templates_read/templates_delete. It stops short of explicit sibling routing, so it is clear but not fully differentiated.

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

Usage Guidelines2/5

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

The description names no conditions for choosing this tool over templates_read, templates_delete, or the other *_write siblings, and gives no prerequisites beyond what the schema carries. The only usage-shaped hint ("full replace or fragment patch") is a restatement of the action list rather than guidance. An agent must infer when this tool applies from the name and the enum alone.

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.