Skip to main content
Glama

Write the project documentation

write_documentation

Texts of the project PDF (in the user's language), before export_files: lang, summary, cover {kicker, lines[{title, sub}]}, blocks [{title, text, formulas[{calc, source}]}], measurements [{where, expected, how}], assumptions [], usage, warnings []. Requires a PCBBrew account (sign-in).

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": {
      "project_id": "<project_id>",
      "lang": "<lang>",
      "summary": "<summary>",
      "blocks": "<blocks>"
    },
    "name": "write_documentation"
  }
}

Input Schema

NameRequiredDescriptionDefault
langYes
coverNo
usageNo
blocksYes
summaryYes
warningsNo
project_idYesid from create_project or list_projects
assumptionsNo
measurementsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds genuinely new context — that a PCBBrew account/sign-in is required and that the output text feeds a later export_files call — but says nothing about overwrite behavior on repeat calls or what the call returns.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The parameter enumeration is dense and efficient, packing nested structure into one pass. The opening clause is front-loaded but confusingly worded, and the whole definition is a single run-on sentence with no separation between the sequencing rule, the payload shape, and the auth requirement.

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 a 9-parameter mutation tool with nested payloads, no output schema, and 11% schema coverage, the description does the important structural work and flags the auth prerequisite. It leaves gaps around the return value, repeat-call behavior, and the meaning of free-form fields such as summary, usage, and warnings.

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 schema description coverage at 11% and nested objects typed only as generic "object"/"array", the description carries most of the burden. It supplies the internal shape of cover (kicker, lines[title, sub]), blocks (title, text, formulas[calc, source]), and measurements (where, expected, how), which the schema does not express at all. It stops short of explaining the intent of fields like summary or usage, keeping it from a 5.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Texts of the project PDF" implies producing the textual content of a project PDF and the clause "before export_files" clarifies its place relative to a sibling. However, the verb is never stated outright (write/generate/set) and the phrasing is awkward enough that an agent must infer the operation from the tool name rather than the description.

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?

The description gives one concrete sequencing rule: call this before export_files. It offers no guidance on when not to use it, whether it can be re-run to replace prior documentation, or what alternative to pick if the agent only needs a subset of the content.

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