Skip to main content
Glama

list_document_steps

Read-only

The analysis steps a document can go through, and for a given set of documents HOW MANY each step would actually touch — the number that belongs on the button. Optional: document_ids (to get the counts), entity + entity_id (all documents of one record). Steps that are catalogued but not built say so instead of quietly missing; a step blocked on every document reports 0 rather than looking available.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_document_steps"
  }
}

Input Schema

NameRequiredDescriptionDefault
entityNoRecord type whose documents to count, used with entity_id
entity_idNoID of the record
document_idsNoList of IDs (document)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / document_ids / description
      Added value: +"List of IDs (document)"
    • addedInput schema / properties / entity / description
      Added value: +"Record type whose documents to count, used with entity_id"
    • addedInput schema / properties / entity_id / description
      Added value: +"ID of the record"
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, openWorldHint=false), and the description adds real behavioral detail beyond them: catalogued-but-unbuilt steps are labelled rather than silently omitted, and a step blocked on every document reports 0 instead of appearing available. That tells an agent how to interpret edge-case output, which annotations cannot convey; only the response shape for the counts remains unspecified.

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?

Information is front-loaded — the dual purpose comes first, then the optional parameter modes, then the edge-case reporting behavior. Some phrasing is colloquial for a tool spec ('the number that belongs on the button'), but it conveys intent efficiently and no sentence is pure filler.

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 no output schema, the description carries the burden of explaining return values, and it only partially does so via the note about unbuilt steps and 0-counts; it never says what fields each step entry includes (name, id, count, status). For a read-only listing tool the essentials are covered, but the return contract stays fuzzy.

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?

Schema description coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not: document_ids yields per-step counts, while entity + entity_id selects all documents of one record. It clarifies the two mutually distinct scoping modes rather than merely restating field names.

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 the resource ('the analysis steps a document can go through') and adds a second, distinctive function: computing how many documents each step would touch. It is clear what the tool returns, but the verb is implicit and it never names or contrasts with siblings such as run_document_step or list_document_templates, so an agent must infer the boundary itself.

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?

Usage is only implied: the parenthetical 'Optional: document_ids (to get the counts), entity + entity_id (all documents of one record)' explains how to scope a call but not when to choose this tool over running or analyzing a document. There is no explicit when-not guidance and no named alternative.

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.