Skip to main content
Glama

Update a template draft

update_template

Edit an existing custom template's DRAFT — name, html, css, schema, tags, visibility — addressed by UUID or slug. Only the fields you pass are changed. Crucially, this does not change what renders once the template has been published even once: while published_version is set, render_pdf serves that frozen snapshot and your edits stay invisible until publish_template moves the pointer, so an edit that appears to do nothing usually needs a publish. System templates, and templates belonging to another account, return 403. Requires a Kamy API key with the templates:write scope; without a key, returns dashboard setup instructions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cssNoReplaces the draft CSS entirely.
htmlNoReplaces the draft HTML entirely.
nameNo
tagsNo
schemaNoReplaces the draft JSON Schema entirely.
isPublicNo
templateYesTemplate UUID or slug. This route accepts either.
descriptionNo

TDQS

A4.5/5.0
Behavior4/5

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

Annotations correctly set readOnlyHint=false, destructiveHint=false. The description adds critical behavioral context: the tool only modifies the draft, changes are invisible until published if a published_version exists, and it clarifies error conditions (403 for system templates or cross-account). The description could add that the tool does not validate the schema or HTML for correctness, but overall it provides strong transparency.

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?

The description is a single dense paragraph. It packs essential context efficiently but could be split into bullet points or shorter sentences for easier scanning. Every sentence provides value, but readability suffers slightly from the dense format.

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?

Given 8 parameters, no output schema, and the complexity of draft/publish semantics, the description covers the most critical aspects: what the tool does, its limitations (draft-only), authentication requirements, and error conditions. It could mention whether the tool returns the updated template or just success, but overall it's quite complete.

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

Parameters4/5

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

Schema coverage is 50% (4 of 8 parameters have descriptions). The description fills gaps by listing which fields can be edited (name, html, css, schema, tags, visibility) and noting the UUID/slug addressing. It clarifies that only passed fields are changed. However, it doesn't elaborate on the format of the 'tags' array or the 'schema' object structure beyond what the schema provides.

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?

The description clearly identifies the tool as editing a custom template's DRAFT fields (name, html, css, schema, tags, visibility) and distinguishes it from operations that affect published content. It explicitly contrasts with render_pdf and publish_template, making the unique purpose unmistakable.

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?

The description provides explicit guidance on when to use this tool versus alternatives: it notes that edits won't affect published renders unless publish_template is called, explains when a 403 is returned (system templates or other accounts), and clarifies that the tool requires a specific API key scope. This helps the agent avoid misuse.

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.

TDQS

A4.2/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose with detailed descriptions that differentiate similar tools (e.g., render_pdf vs render_async vs render_batch, create_signature_request vs create_envelope). No two tools overlap in a way that would cause confusion.

Naming Consistency5/5

All tool names follow a consistent lower_snake_case verb_noun pattern (e.g., attest_artifact, convert_document, list_renders). No mixing of conventions or ambiguous verb choices.

Tool Count4/5

47 tools is high but reflects the broad scope of the platform (document generation, signing, auditing, scheduling, webhooks, verification). Some informational tools could be merged, but the count is still reasonable for the domain.

Completeness3/5

The tool set covers the core document lifecycle well but has notable gaps: no tool to delete renders, no tool to void/cancel signature requests, and no CRUD for templates (only list and schema). The inability to pause schedules via MCP is also a gap.

Resources