Skip to main content
Glama

read_spec_clause

Read-onlyIdempotent

Read an exact specification clause with source citations and Unicode-offset continuation. Use it to retrieve full governing or child clauses instead of repeating keyword searches.

Instructions

Read an exact source clause with citations and Unicode-offset continuation. Follow next_offset for an oversized clause; context_clause_ids identify governing clauses still to read; context_clauses labels those IDs with bounded first-line source previews. Read the relevant full child clauses instead of repeating keyword searches. A fragment or unresolved table/context is not a complete requirement. When table_structure_omitted, use table_cell_offset=0 and follow next_cell_offset for all original cells; use separate requests for text offset.

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>",
      "source_sha256": "<source_sha256>",
      "clause_id": "<clause_id>"
    },
    "name": "read_spec_clause"
  }
}

Input Schema

NameRequiredDescriptionDefault
budgetNo
offsetNo
clause_idYes
project_idYesThe project to work on (list_projects names them).
source_sha256YesCurrent uploaded specification source SHA-256 from get_spec_index.
table_cell_offsetNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.23

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, closed-world safety, so the added value here is the pagination contract: follow next_offset for oversized clauses and next_cell_offset for tables, with a separate request for text offsets. That is behavior an agent could not infer from structured fields. It stops short of describing what the response body contains beyond citations and first-line previews.

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 description is dense and front-loads the core read-plus-continuation contract before the table special case. Sentences are terse and mostly load-bearing, though the clause about fragments not being a complete requirement is somewhat oblique in phrasing.

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 six parameters, no output schema, and low schema coverage, the description covers continuation and table handling but leaves budget semantics and the overall return shape underexplained. An agent can call it, but may misjudge how much to request per call.

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 coverage is only 33%, so the description must carry weight, and it does explain offset/next_offset continuation and table_cell_offset (use 0 when table_structure_omitted). However, `budget` (1024-12000) is never explained, and clause_id/source_sha256 meaning is left to the schema's own descriptions and patterns.

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 and resource ('Read an exact source clause') plus distinguishing scope ('with citations and Unicode-offset continuation'), which separates it from search-style tools. It never names a sibling such as quote_spec_clause or read_spec_section, so the boundary with those is left implicit.

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 gives real usage directives: 'Read the relevant full child clauses instead of repeating keyword searches' and 'A fragment or unresolved table/context is not a complete requirement,' which tell the agent when to keep reading rather than query again. The gap is that it never states when to prefer quote_spec_clause or read_spec_section over this tool.

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

Deploy Server

Other Tools