Skip to main content
Glama

templates_tool

Site templates, global blocks, menus, mail forms, and pages on the selected site (call select_site first). Proxies to /uapi/templates, /uapi/gblocks, /uapi/menus, /uapi/mail, /uapi/pages with a server-minted Bearer key.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNoGlobal block id (gblock_create).
pdaNoPDA flag for gblock_create/gblock_delete.
itemsNoMenu items tree (menu_update_items).
titleNoMenu title (menu_create, menu_update).
actionYesTemplate actions use module_id + template_id. Destructive actions need confirm: true. update_template / patch_template make an automatic backup (source mcp, rotated) after validation and before saving; the save is refused if that backup fails, and the result carries backup.id. validate_template checks content (or code_search + code_paste) with the same rules as a save, without saving or backing up. create_backup makes a manual backup (source cp, never rotated, refused with LIMIT_REACHED when full) and returns backup.id.
layoutNoMenu layout: 0 horizontal, 1 vertical.
confirmNoRequired for delete_backup, restore_backup, gblock_delete, menu_delete, mail_delete_form, mail_delete_field, page_delete after user approval.
contentNoGlobal block HTML (gblock_create) or full template body to check (validate_template; html_content is accepted too).
menu_idNoMenu id (menu_get, menu_update, menu_delete, menu_update_items).
page_idNoSite page id (page_get, page_update, page_delete; cannot delete id=1).
mail_rezNoSuccess message text for mail form.
backup_idNoTemplate backup id (delete_backup, restore_backup).
gblock_idNoGlobal block id (gblock_delete).
mail_nameNoMail form name (create/update) or field label (mail_add_field, mail_update_field).
mail_tmplNoMail notification HTML template (mail_save_template).
module_idNoModule id (get_variables, read_template, update_template, patch_template).
page_nameNoPage title (page_add/update).
page_pageNoList page number (page_list).
page_tmplNoCustom template code.
code_pasteNoReplacement fragment (patch_template / validate_template; empty string deletes match).
code_searchNoExact fragment to find (patch_template, or validate_template to check a patch).
mail_emailsNoRecipient emails (string or array).
mail_valuesNoOptions for select/radio mail fields.
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 module.
html_contentNoFull template HTML (update_template only; use patch_template for edits).
mail_form_idNoMail form id.
page_messageNoPage HTML content.
page_owntmplNoUse custom template flag.
page_pendingNoPending/moderation flag.
mail_field_idNoMail field id.
mail_requiredNoRequired flag for mail field.
page_per_pageNoList page size (page_list).
mail_directionNo0 = move field up, non-zero = down (mail_move_field).
page_parent_idNoParent page id.
mail_field_typeNoMail field type code.
page_access_allNoVisible to all groups.
page_images_altNoImage alt strings (page_add/update).
page_meta_titleNoSEO title.
page_image_pathsNoLocal image paths for page_add/page_update (multipart; npm-mcp only until Site::Proxy supports it).
include_variablesNonpm-mcp only: account MCP always returns variables in read_template JSON when available.
page_images_titleNoImage title strings (page_add/update).
page_meta_keywordsNoSEO keywords.
page_del_image_slotsNoImage slot numbers to delete on page_update.
page_access_group_idsNoGroup ids when page_access_all is off.
page_meta_descriptionNoSEO description.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / action / description
      Previous value: -"Template actions use module_id + template_id. Destructive actions need confirm: true."New value: +"Template actions use module_id + template_id. Destructive actions need confirm: true. update_template / patch_template make an automatic backup (source mcp, rotated) after validation and before saving; the save is refused if that backup fails, and the result carries backup.id. validate_template checks content (or code_search + code_paste) with the same rules as a save, without saving or backing up. create_backup makes a manual backup (source cp, never rotated, refused with LIMIT_REACHED when full) and returns backup.id."
    • changedInput schema / properties / code_paste / description
      Previous value: -"Replacement fragment (patch_template; empty string deletes match)."New value: +"Replacement fragment (patch_template / validate_template; empty string deletes match)."
    • changedInput schema / properties / code_search / description
      Previous value: -"Exact fragment to find (patch_template)."New value: +"Exact fragment to find (patch_template, or validate_template to check a patch)."
    • changedInput schema / properties / content / description
      Previous value: -"Global block HTML (gblock_create) or validate_template body."New value: +"Global block HTML (gblock_create) or full template body to check (validate_template; html_content is accepted too)."
  2. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.