Skip to main content
Glama

updateTemplate

Destructive

Rename a contract template. Returns the updated template. Leave out template.file: files cannot be uploaded here, so a template's .docx file is replaced in the Spacebring admin app. Contracts already created from the template keep their documents. Get templateId from getTemplates. Never invent UUIDs; only use values from prior tool responses.

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": {
      "templateId": "<templateId>",
      "template": "<template>"
    },
    "name": "updateTemplate"
  }
}

Input Schema

NameRequiredDescriptionDefault
templateYesTemplate fields to update.
templateIdYesThe id of the template.

Output Schema

NameRequiredDescriptionDefault
templateYes

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?

Annotations already flag destructiveHint=true and readOnlyHint=false; the description adds value by scoping the damage ("Contracts already created from the template keep their documents") and stating files must be replaced in the admin app instead. Return behavior is also noted, though side effects on in-flight contracts are only partially addressed.

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?

Four short sentences, front-loaded with the action and result, then the file constraint, then the ID-sourcing rule. No sentence is filler and each carries a distinct operational rule.

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

Completeness5/5

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

With an output schema present, return values need no elaboration, and the description covers the one real trap in this tool: the nested file object that must not be sent. Nothing an agent needs to invoke it correctly is missing.

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 both parameters are already documented in the schema; the description's contribution is mainly the constraint to omit template.file and the provenance rule for templateId. Useful, but at the baseline level for a fully-described schema rather than adding syntax or format detail.

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 and resource ("Rename a contract template") and immediately clarifies the return ("Returns the updated template"). It also implicitly separates itself from getTemplates by pointing there for IDs, and from the file-upload path by declaring uploads impossible here.

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

Usage Guidelines4/5

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

Gives concrete prerequisites ("Get templateId from getTemplates", "Never invent UUIDs") and an explicit exclusion ("Leave out template.file"). It does not contrast with siblings like duplicateTemplate or deleteTemplate, but the operational guidance for correct invocation is clear.

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