Skip to main content
Glama

docs_write

Create or update a note in a docs suite, matched by source URL or path. Creates missing notes with required metadata and skips writes when content is unchanged.

Instructions

Create or update one note of a docs suite. Only zones with mode "docs" accept it.

Finds the note by source, else by path. A missing note is created at path (it must not exist, and fields must bring title, type, status, lang and tags; created and updated default to today). A body with the same hash as the current one is not rewritten; a new body or changed fields set updated to today unless fields has it. fields={"suite": {...}} replaces the whole manifest mapping (upstream, include, context7, synced). The result is checked against the suite schema (invalid_schema); string values in fields that look like a credential are refused; the body is not scanned. Pages are never deleted: mark a gone one with fields={"status": "deprecated"}. Returns JSON {"path", "created", "changed", "hash"}; changed false means nothing was written.

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": {
      "suite": "<suite>"
    },
    "name": "docs_write"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoPage text as downloaded, without frontmatter. Omit to keep it.
pathNoPath inside the suite, ending in .md; README.index.md is the manifest. Needed to create a note.
suiteYesDocs zone: its path ("docs/mise") or its last segment ("mise").
fieldsNoFrontmatter keys to merge; null deletes a key.
sourceNoPage URL; finds the note before path does.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.16.0

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses idempotency (a body with the same hash is not rewritten), timestamp side effects (updated set to today unless fields overrides), manifest replacement semantics, schema validation with an invalid_schema failure, credential-like string refusal, and that the body is not scanned. It also states the return shape and that changed=false means nothing was written.

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 critical facts (what it does, zone restriction, lookup order) are front-loaded, and every sentence carries operational information. It is dense and slightly overpacked with parenthetical detail, but there is no filler to cut.

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?

For a five-parameter mutation tool with no annotations and no output schema, the description covers creation requirements, update/idempotency behavior, failure modes, and the returned JSON keys. An agent has everything needed to call it correctly and interpret the result.

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

Parameters5/5

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

Schema coverage is already 100%, yet the description adds real meaning: source resolves before path, path must not exist when creating, creation requires title/type/status/lang/tags, fields merges frontmatter with null deleting a key, and fields={'suite': {...}} replaces the entire manifest mapping. This is well beyond what the schema titles convey.

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 opening sentence gives a specific verb pair and resource: "Create or update one note of a docs suite," plus a scope constraint ("Only zones with mode 'docs' accept it"). It does not name a sibling such as docs_status or read to contrast with, so it stops short of full differentiation, but the operation is unmistakable.

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?

It states the precondition for use (docs-mode zones only) and gives a concrete alternative to deletion: "Pages are never deleted: mark a gone one with fields={'status': 'deprecated'}." It also explains lookup precedence (source before path). It does not explicitly route to a sibling tool for reading or status checks, so it is clear context without full when-not guidance.

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