Skip to main content
Glama

Save a documentation template

save_document_template
DestructiveIdempotent

Create or replace one of your documentation templates (not a global template).

from_document copies the rule of an existing documentation; the other arguments take precedence.

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>",
      "summary": "<summary>"
    },
    "name": "save_document_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesTemplate name.
outlineNo
summaryYes
guidanceNo
from_documentNo
source_categoriesNo
include_done_tasksNo

Output Schema

NameRequiredDescriptionDefault
nameYes
outlineYesMarkdown headings required in the content.
summaryYes
guidanceYesRule copied into the documentation created from this template.
personalYesYour own template (editable); otherwise a global template.
source_categoriesYesNote categories read; empty: all of them.
include_done_tasksYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • changedInput schema / $defs / DocumentRef / properties / name / description
      Previous value: -"Nom de la documentation dans l'espace, ex. « fonctionnalites »."New value: +"Name of the documentation in the space, e.g. “fonctionnalites”."
    • changedInput schema / $defs / DocumentRef / properties / space / description
      Previous value: -"Identifiant de l'espace, ex. « k3x9p2m4ta » : le champ `id` que donne list_spaces."New value: +"Space identifier, e.g. “k3x9p2m4ta”: the `id` field returned by list_spaces."
    • changedInput schema / properties / name / description
      Previous value: -"Nom du modèle."New value: +"Template name."
    • changedInput schema / properties / outline / anyOf
      Previous value: -[
      -  {
      -    "description": "Titres Markdown que le contenu doit comporter, sans dièses.",
      -    "items": {
      -      "maxLength": 120,
      -      "minLength": 1,
      -      "type": "string"
      -    },
      -    "maxItems": 20,
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "description": "Markdown headings the content must contain, without the # signs.",
      +    "items": {
      +      "maxLength": 120,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "maxItems": 20,
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / source_categories / anyOf
      Previous value: -[
      -  {
      -    "description": "Catégories de notes lues par la documentation ; vide : toutes.",
      -    "items": {
      -      "maxLength": 64,
      -      "minLength": 1,
      -      "pattern": "^[-a-zA-Z0-9_]+$",
      -      "type": "string"
      -    },
      -    "maxItems": 20,
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "description": "Note categories the documentation reads; empty: all of them.",
      +    "items": {
      +      "maxLength": 64,
      +      "minLength": 1,
      +      "pattern": "^[-a-zA-Z0-9_]+$",
      +      "type": "string"
      +    },
      +    "maxItems": 20,
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / guidance / description
      Previous value: -"Règle copiée dans la documentation créée depuis ce modèle."New value: +"Rule copied into the documentation created from this template."
    • changedOutput schema / properties / outline / description
      Previous value: -"Titres Markdown exigés dans le contenu."New value: +"Markdown headings required in the content."
    • changedOutput schema / properties / personal / description
      Previous value: -"Modèle à toi (modifiable) ; sinon modèle global."New value: +"Your own template (editable); otherwise a global template."
    • changedOutput schema / properties / source_categories / description
      Previous value: -"Catégories de notes lues ; vide : toutes."New value: +"Note categories read; empty: all of them."
  2. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the create-or-replace nature is partly pre-communicated; the description adds the useful scope clarification (personal templates only) and the precedence rule for `from_document`. It stops short of describing what a replace destroys (e.g. whether omitted fields such as outline or guidance are cleared on overwrite), which matters for a destructive upsert.

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?

Two short sentences, front-loaded with the definition of the operation and followed by the one non-obvious parameter interaction. No padding, though the formatting (backticks plus a bare line break) is slightly rough.

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?

An output schema exists, so return values need not be described. The description is complete once structured fields are included.

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

Parameters2/5

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

Schema description coverage is only 14% across 7 parameters, so the description carries a heavy burden but explains only one parameter (`from_document`). `summary`, `guidance`, `source_categories`, and `include_done_tasks` receive no meaning from either the schema or the description, leaving the agent to guess at their semantics.

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?

The description states a specific verb pair and resource: "Create or replace one of your documentation templates", and adds a scope exclusion ("not a global template"). It is clear what the tool does, though it does not name a sibling such as archive_document_template or list_document_templates to sharpen the boundary further.

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

Usage Guidelines2/5

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

There is no explicit guidance on when to use this versus alternatives, nor any stated prerequisites (e.g. permissions, whether the template must already exist, or which sibling to use for listing/archiving templates). The only directional statement is the precedence rule for `from_document`, which is parameter behavior rather than when-to-use guidance.

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