Skip to main content
Glama

Delete site design

templates_delete
Destructive

Deletes global blocks, menus, mail forms and fields, site pages, informers and template backups, or restores a backup over the current templates. Cannot be undone.

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_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoGlobal block id (synonym for gblock_id).
pdaNoMobile (PDA) version flag of a global block.
actionYesOperation to run. Each oneOf entry describes one action and lists its parameters.
confirmNoConfirmation of this deletion. Not needed unless the server refuses the call because the site owner requires it; that refusal says what to do.
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.
backup_idNoTemplate backup id from list_backups.
gblock_idNoGlobal block id.
informer_idNoInformer id from informer_list.
mail_form_idNoMail form id from mail_list_forms.
mail_field_idNoMail form field id from mail_list_fields.

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. Changed3 schema fields changed
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "delete_backup",
      -  "restore_backup",
      -  "gblock_delete",
      -  "menu_delete",
      -  "mail_delete_form",
      -  "mail_delete_field",
      -  "page_delete"
      -]New value: +[
      +  "delete_backup",
      +  "restore_backup",
      +  "gblock_delete",
      +  "menu_delete",
      +  "mail_delete_form",
      +  "mail_delete_field",
      +  "page_delete",
      +  "informer_delete"
      +]
    • changedInput schema / properties / action / oneOf
      Previous value: -[
      -  {
      -    "const": "delete_backup",
      -    "description": "Deletes a template backup. Required: backup_id. Optional: confirm."
      -  },
      -  {
      -    "const": "restore_backup",
      -    "description": "Restores a template backup over the current templates. Required: backup_id. Optional: confirm."
      -  },
      -  {
      -    "const": "gblock_delete",
      -    "description": "Deletes a global block (block id in gblock_id or id). Optional: gblock_id, id, pda, confirm."
      -  },
      -  {
      -    "const": "menu_delete",
      -    "description": "Deletes a menu. Required: menu_id. Optional: confirm."
      -  },
      -  {
      -    "const": "mail_delete_form",
      -    "description": "Deletes a mail form. Required: mail_form_id. Optional: confirm."
      -  },
      -  {
      -    "const": "mail_delete_field",
      -    "description": "Deletes a mail form field. Required: mail_form_id, mail_field_id. Optional: confirm."
      -  },
      -  {
      -    "const": "page_delete",
      -    "description": "Deletes a site page. Page 1 cannot be deleted. Required: page_id. Optional: confirm."
      -  }
      -]New value: +[
      +  {
      +    "const": "delete_backup",
      +    "description": "Deletes a template backup. Required: backup_id. Optional: confirm."
      +  },
      +  {
      +    "const": "restore_backup",
      +    "description": "Restores a template backup over the current templates. Required: backup_id. Optional: confirm."
      +  },
      +  {
      +    "const": "gblock_delete",
      +    "description": "Deletes a global block (block id in gblock_id or id). Optional: gblock_id, id, pda, confirm."
      +  },
      +  {
      +    "const": "menu_delete",
      +    "description": "Deletes a menu. Required: menu_id. Optional: confirm."
      +  },
      +  {
      +    "const": "mail_delete_form",
      +    "description": "Deletes a mail form. Required: mail_form_id. Optional: confirm."
      +  },
      +  {
      +    "const": "mail_delete_field",
      +    "description": "Deletes a mail form field. Required: mail_form_id, mail_field_id. Optional: confirm."
      +  },
      +  {
      +    "const": "page_delete",
      +    "description": "Deletes a site page. Page 1 cannot be deleted. Required: page_id. Optional: confirm."
      +  },
      +  {
      +    "const": "informer_delete",
      +    "description": "Deletes an informer of any kind with its template. Its code then shows nothing, so remove the code from the site templates too (patch_template). Required: informer_id. Optional: confirm."
      +  }
      +]
    • addedInput schema / properties / informer_id
      Added value: +{
      +  "description": "Informer id from informer_list.",
      +  "type": "number"
      +}
  3. Changed3 schema fields changed
    • changedInput schema / properties / action / oneOf
      Previous value: -[
      -  {
      -    "const": "delete_backup",
      -    "description": "Deletes a template backup. Required: backup_id, confirm."
      -  },
      -  {
      -    "const": "restore_backup",
      -    "description": "Restores a template backup over the current templates. Required: backup_id, confirm."
      -  },
      -  {
      -    "const": "gblock_delete",
      -    "description": "Deletes a global block (block id in gblock_id or id). Required: confirm. Optional: gblock_id, id, pda."
      -  },
      -  {
      -    "const": "menu_delete",
      -    "description": "Deletes a menu. Required: menu_id, confirm."
      -  },
      -  {
      -    "const": "mail_delete_form",
      -    "description": "Deletes a mail form. Required: mail_form_id, confirm."
      -  },
      -  {
      -    "const": "mail_delete_field",
      -    "description": "Deletes a mail form field. Required: mail_form_id, mail_field_id, confirm."
      -  },
      -  {
      -    "const": "page_delete",
      -    "description": "Deletes a site page. Page 1 cannot be deleted. Required: page_id, confirm."
      -  }
      -]New value: +[
      +  {
      +    "const": "delete_backup",
      +    "description": "Deletes a template backup. Required: backup_id. Optional: confirm."
      +  },
      +  {
      +    "const": "restore_backup",
      +    "description": "Restores a template backup over the current templates. Required: backup_id. Optional: confirm."
      +  },
      +  {
      +    "const": "gblock_delete",
      +    "description": "Deletes a global block (block id in gblock_id or id). Optional: gblock_id, id, pda, confirm."
      +  },
      +  {
      +    "const": "menu_delete",
      +    "description": "Deletes a menu. Required: menu_id. Optional: confirm."
      +  },
      +  {
      +    "const": "mail_delete_form",
      +    "description": "Deletes a mail form. Required: mail_form_id. Optional: confirm."
      +  },
      +  {
      +    "const": "mail_delete_field",
      +    "description": "Deletes a mail form field. Required: mail_form_id, mail_field_id. Optional: confirm."
      +  },
      +  {
      +    "const": "page_delete",
      +    "description": "Deletes a site page. Page 1 cannot be deleted. Required: page_id. Optional: confirm."
      +  }
      +]
    • changedInput schema / properties / confirm / description
      Previous value: -"Pass true only after the user approves this change. Required by: delete_backup, restore_backup, gblock_delete, menu_delete, mail_delete_form, mail_delete_field, page_delete."New value: +"Confirmation of this deletion. Not needed unless the server refuses the call because the site owner requires it; that refusal says what to do."
    • changedInput schema / required
      Previous value: -[
      -  "action",
      -  "confirm"
      -]New value: +[
      +  "action"
      +]
  4. Changed1 schema field changed
    • changedInput schema / required
      Previous value: -[
      -  "action"
      -]New value: +[
      +  "action",
      +  "confirm"
      +]
  5. Added

TDQS

B3.3/5.0
Behavior3/5

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

The annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is covered. The description adds the irreversibility warning 'Cannot be undone' and confirms that restore overwrites current templates, but it does not add permissions, confirmation behavior, or other operational context beyond what annotations and the schema provide.

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

Conciseness5/5

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

Two sentences, front-loaded with the affected resources and ending with the critical irreversibility warning. There is no filler or redundant explanation.

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?

The description covers scope and irreversibility, which is useful for a destructive tool. However, for a twelve-parameter, action-driven tool with no output schema, it could clarify that a single action selects one operation and that confirmation may be required; the schema fills these gaps, but the description leaves some ambiguity.

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 coverage is 100%, so the schema already documents all twelve parameters in detail. The description adds only a high-level resource list and the restore behavior, without meaningfully enriching parameter semantics beyond the schema.

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 states a specific verb and enumerates the resources affected (global blocks, menus, mail forms/fields, pages, informers, backups) plus the restore mode. It is clear what the tool does, though it does not explicitly distinguish itself from sibling delete tools or templates_write.

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?

There is no explicit when-to-use or when-not-to-use guidance, and no alternatives are named. The schema's action enum lists operations, but the description itself does not explain when to choose deletion versus restore or versus other design-editing tools.

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.