Skip to main content
Glama

save_template

Save a validated complete spec to the user template library for reuse, using unique lowercase slug names. Refuses existing entries; writes no report or model.

Instructions

Save a validated complete spec to the OS user template library, or VILSEM_TEMPLATES_DIR. Names are lowercase slugs; existing entries are refused. This does not write a report or model.

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": {
      "name": "<name>",
      "spec": "<spec>"
    },
    "name": "save_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
specYes
tagsNo
descriptionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.2

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description still carries real behavioral weight: it discloses destination resolution (OS library or env override), a naming constraint, a refusal-on-collision rule that prevents silent overwrites, and an explicit scope exclusion (no report/model writes). Missing only permission requirements and what a successful save returns.

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?

Three tight sentences, front-loaded with the action and destination, then constraints, then scope exclusion. Every sentence carries information an agent would otherwise have to guess.

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?

A no-annotation mutation tool with a nested free-form 'spec' object and no output schema needs more: what 'validated' means concretely, whether saves are reversible via delete_template, and what the call returns are all unstated. The collision rule and destination details are the main gaps it does close.

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 0% across four parameters, so the description must compensate. It adds genuine meaning for 'name' (lowercase slug format) and 'spec' (must be complete and already validated), but 'tags' and 'description' — including the 20-item and 2000-char limits — are left entirely to the bare 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?

States a specific verb ('Save') and resource ('validated complete spec') plus the destination (OS user template library / VILSEM_TEMPLATES_DIR). The closing sentence 'This does not write a report or model' separates it from write-style siblings like commit_visual, though it never names list_templates or delete_template directly.

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

Usage Guidelines3/5

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

'Validated complete spec' implies validate_spec must run first, and 'existing entries are refused' signals this is not an update path (update territory belongs to a delete+save flow). Neither prerequisite is stated explicitly, and no sibling is named as an alternative.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.