Skip to main content
Glama

get_document_summary

Read-only

Returns a complete structured summary of a Trident document as JSON: all node IDs, container IDs, connection IDs, annotation IDs, labels, entity counts, the position of every node (x/y centre) and container (x/y centre plus w/h), and nextFree — the clear space right of and below the diagram. Use this for PROGRAMMATIC OPERATIONS — it is never truncated regardless of diagram size, so you always get every entity ID. Use this before any bulk update, delete, or enumeration task. To read and understand the diagram as a human-readable diagram, use open_document instead. Requires a valid access token.

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": {
      "token": "<token>"
    },
    "name": "get_document_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenYesAccess token for this document. The document ID is embedded in the token.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered; the description adds genuinely new behavior: the output is never truncated regardless of diagram size, and a valid access token is required. It stops short of describing error behavior or how the token maps to a document beyond restating the schema.

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?

Front-loads the returned content, then the programmatic-use rationale, then the sibling alternative and the auth note — a logical order with little waste. The capitalized emphasis and the slightly redundant "never truncated ... so you always get every entity ID" cost it a point but do reinforce the key guarantee.

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?

With no output schema, the description carries the return-shape burden itself and does so by enumerating every returned field group including nextFree. Auth requirements and the size-independence guarantee round out what an agent needs before calling it.

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?

Only one parameter exists and schema description coverage is 100%, with the token's meaning (document ID embedded) already documented in the schema. The description adds no syntax, format, or acquisition guidance beyond that, so the baseline 3 applies.

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

Purpose5/5

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

States a specific verb and resource ("Returns a complete structured summary of a Trident document as JSON") and then enumerates the returned entities: node IDs, container IDs, connection IDs, annotation IDs, labels, entity counts, x/y positions and nextFree. It explicitly distinguishes itself from open_document, so an agent can choose between them without opening a schema.

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?

Gives an explicit trigger ("Use this for PROGRAMMATIC OPERATIONS", "before any bulk update, delete, or enumeration task") and names the alternative with the condition that selects it ("To read and understand the diagram as a human-readable diagram, use open_document instead"). When-to-use, when-not, and the alternative are all present.

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.