Skip to main content
Glama

Read Document

read_document
Read-only

For the in-chat player, not for agents: a json document, checked as load_invention checks it, with its bundled developments written in. Agents use load_invention.

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": {
      "json": "<json>"
    },
    "name": "read_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
jsonYesComplete invention JSON string (with modules, connections, etc.), at most 64 KiB.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true, and the description is consistent with them while adding real behavior: the document is validated the same way load_invention validates it, and bundled developments are written into the result. It does not mention failure behavior for invalid documents or the fact that the check mirrors another tool's ruleset, but given annotation coverage this is solid added context.

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 with the audience restriction front-loaded and the sibling routing at the end; nothing is padded. The middle clause ('a json document, checked as load_invention checks it, with its bundled developments written in') is dense enough that its input-vs-output meaning takes a second read.

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?

With one parameter, no output schema, and only a readOnly annotation, the description carries the burden of explaining what comes back. It gestures at the returned document but never clearly separates the raw input JSON from the enriched output, and says nothing about what happens when the document fails the load_invention-style check.

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 description coverage is 100% and the parameter already documents itself as a complete invention JSON string with modules and connections. The description confirms the payload is an invention document subject to load_invention-style checking, but adds little syntax or content detail beyond the schema, so baseline 3 applies.

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 transformation — taking an invention JSON document, validating it the way load_invention validates, and inlining its bundled developments — and explicitly contrasts itself with the sibling load_invention. It loses a point because the verb 'read' never appears in an action sense and it is left ambiguous whether the JSON-plus-developments is the input or the returned output.

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

Usage Guidelines5/5

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

It names the audience restriction ('for the in-chat player'), the exclusion ('not for agents'), and the alternative to use instead ('Agents use load_invention'). That is an explicit when/when-not plus a named substitute, leaving nothing to infer.

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