Skip to main content
Glama

Fabrement

Save template

fabrement-save-template

Create a site template — a header+footer frame around pages — or UPDATE one by templateId; every field is omit-to-keep. Check list-templates first: edit the existing one rather than make a duplicate. The header and footer are GLOBAL BLOCKS: find one with list-synced-patterns {kind:"header"}, or make one with save-synced-pattern {title, kind:"header", blocks}, then pass its id as headerPatternId. Rules: get-skill-doc {id:"template-contract"} — read it before the first call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleNoDisplay name. Required on create; omit on update to keep.
afterSlotNoBlocks rendered BELOW the content on every page this template dresses. Read the current ones from get-template; a passed list REPLACES the zone, [] clears it, omitted keeps it.
beforeSlotNoBlocks rendered ABOVE the content on every page this template dresses. Read the current ones from get-template; a passed list REPLACES the zone, [] clears it, omitted keeps it.
templateIdNoTemplate id to UPDATE (list-templates); omit to create.
contentWidthNoWidth of the content area; "full" on create.
contentSourceNoWhat the content slot renders: per-view `rules`. Without a rule for a view — or with contentSource omitted — the slot renders the page's own content.
footerPatternIdNoThe footer global block (list-synced-patterns {kind:"footer"}); same rules.
headerPatternIdNoThe header GLOBAL BLOCK (list-synced-patterns {kind:"header"}). Its words are changed with save-synced-pattern, never here. Create: omit = no header. Update: omit = keep, 0 = remove.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
templateYes
ruleWarningsNoRules you sent that were already stored and can no longer render (their view or file is gone). They were KEPT; leave one out of contentSource to remove it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does well: it explains omit-to-keep semantics, the replace/clear/keep behaviour of the zone lists, that header/footer are global blocks edited elsewhere, and that a contract doc governs the operation. It does not cover failure modes, permissions, or reversibility, so it stops short of exhaustive.

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?

Front-loaded with the create/update purpose, followed by the dedupe instruction and the global-block workflow, then a final rule line. Dense but each sentence earns its place for an 8-parameter tool with nested objects; only the density slightly taxes readability.

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 a complex, 8-param nested-object mutation with an output schema (so return values need not be explained), the description covers the purpose, the omit-to-keep contract, the required prerequisite doc, and the header/footer global-block dependency. What remains thin is error/permission behaviour, but the operational essentials are present.

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%, so the schema already documents every parameter (templateId, headerPatternId, beforeSlot/afterSlot, contentSource rules, etc.). The description mostly restates the create/update and global-block wiring rather than adding format or syntax details beyond the schema, which is the expected baseline when coverage is complete.

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

Purpose5/5

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

States a specific verb pair (Create / UPDATE) on a clearly defined resource ('a site template — a header+footer frame around pages'), and explicitly tells the agent when it is a create vs an update via templateId. It also routes the reader to the relevant siblings (list-templates, save-synced-pattern), so it is distinguishable without opening any schema.

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

Usage Guidelines5/5

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

Gives explicit when-to-use guidance: 'Check list-templates first: edit the existing one rather than make a duplicate,' plus a hard prerequisite ('read [template-contract] before the first call') and the correct alternative path for building the header (list-synced-patterns / save-synced-pattern). Nothing about selecting this tool over alternatives is left implicit.

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.

Resources