Skip to main content
Glama

Create documentation

create_document

Create a summary documentation for the space, fed by its notes (and its done tasks).

Start from a template (list_document_templates) or write a custom rule in guidance. Each argument given replaces the template's value. Version 1 is the skeleton of the outline.

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": {
      "space": "<space>",
      "name": "<name>",
      "title": "<title>"
    },
    "name": "create_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesName of the documentation in the space, e.g. “fonctionnalites”.
spaceYesSpace identifier, e.g. “k3x9p2m4ta”: the `id` field returned by list_spaces.
titleYes
outlineNo
guidanceNo
templateNo
source_categoriesNo
include_done_tasksNo

Output Schema

NameRequiredDescriptionDefault
nameYes
versionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • changedInput schema / 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 / 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"
      +  }
      +]
    • changedInput schema / 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 / template / anyOf
      Previous value: -[
      -  {
      -    "description": "Nom du modèle.",
      -    "maxLength": 64,
      -    "minLength": 1,
      -    "pattern": "^[-a-zA-Z0-9_]+$",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "description": "Template name.",
      +    "maxLength": 64,
      +    "minLength": 1,
      +    "pattern": "^[-a-zA-Z0-9_]+$",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare it is a non-read-only, non-idempotent, non-destructive mutation, so the safety profile is largely covered. The description adds real context beyond that: the document is generated from existing notes/done tasks, and "Version 1 is the skeleton of the outline" hints at versioning. But it never says what happens on name collision, whether creation is synchronous, or what version 1 implies — and that last sentence is too elliptical to count as disclosure.

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?

Three short lines, front-loaded with the purpose and then the two operating modes; there is little waste. The closing line "Version 1 is the skeleton of the outline" is too compressed to parse without guessing, costing a point.

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?

For an 8-parameter creation tool with an output schema, the description covers the template/guidance split and the sourcing model, which is the core. It is silent on failure modes and name-collision behavior, and half the parameters remain undocumented anywhere, so an agent could still call it incorrectly on the first attempt.

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?

With only 25% schema description coverage, the description must carry the load, and it does add meaning: "Each argument given replaces the template's value" explains the template/argument override interaction, guidance is described as a custom rule, and "fed by its notes (and its done tasks)" implicitly explains include_done_tasks and source_categories. It still leaves outline's relationship to versioning opaque.

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?

Clear specific verb+resource: "Create a summary documentation for the space, fed by its notes (and its done tasks)" states both the output and its input sources, which distinguishes it from update_document or get_document. It stops short of naming a sibling it is *not*, but the scope is unambiguous.

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?

It gives two creation modes — start from a template (pointing at list_document_templates) or write a custom rule in guidance — which is useful routing between parameter choices. However it never says when to call this versus update_document, nor what prerequisites exist (space must exist, name uniqueness), so usage is implied rather than stated.

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