Skip to main content
Glama

read_spec_section

Read-onlyIdempotent

Retrieves original specification section clauses in bounded, ordered pages for source-evidence review and offset-based pagination.

Instructions

Read an ordered, bounded range of original section clauses. This enumerates source evidence rather than top-k search. Follow next_offset; use read_spec_clause for blocked_clause_id. Use section_id=unclassified to review content without a recognized section. External context and review gaps still matter. The first page lists drawing_citations: drawings that print this section number (follow next_tool for all); a citation is not applicability.

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>",
      "section_id": "<section_id>"
    },
    "name": "read_spec_section"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.23

TDQS

A4/5.0
Behavior4/5

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

The annotations already declare readOnlyHint, idempotentHint, non-destructive, and closed-world, so the safety profile is covered. The description adds real behavioral context beyond that: page-based continuation via next_offset, a first-page-only drawing_citations block with its own next_tool, and the important caveat that a citation is not applicability. It does not explain what happens when offset exceeds the available range or how budget constrains the returned page.

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 core purpose is front-loaded in the first sentence and the alternative routing follows immediately, so structure is sound. A few fragments are telegraphic and underspecified, notably 'External context and review gaps still matter', which costs meaning for its brevity.

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 six-parameter paginated tool with no output schema and low schema coverage, the description handles pagination, the unclassified case, and the drawing_citations block but leaves limit/budget semantics and end-of-range behavior unexplained. It is adequate for correct invocation but leaves the agent guessing on page sizing and budget interplay.

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 coverage is only 33%: project_id and source_sha256 are documented in-schema, while limit, budget, offset, and section_id are not. The description compensates partially by explaining the offset/next_offset progression and the special section_id=unclassified value, and 'bounded range' gestures at limit and budget, but neither is defined in terms of units or interaction.

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?

The description states a specific verb and resource: reads an ordered, bounded range of original section clauses. It also distinguishes itself from retrieval-style siblings by noting it 'enumerates source evidence rather than top-k search', which an agent can use to separate it from search-oriented tools without opening the schema.

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 concrete routing rules: follow next_offset for continuation, use read_spec_clause for blocked_clause_id, and use section_id=unclassified for unrecognized content. It lacks an explicit statement of when to prefer this over bulk section-listing tools such as get_spec_sections, so it falls short of full when/when-not coverage.

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