Skip to main content
Glama

get_spec_sections

Read-onlyIdempotent

Read the current specification source's section inventory and filter it by section number or title to find relevant sections without paging the whole book. Inventory metadata only, not clause text.

Instructions

Read the observed specification section inventory for a current source. Use q to filter section numbers/titles instead of paging the whole book for one trade. This filters inventory metadata, not clause text; use search_specifications for exact source passages. Custom formats and unresolved sections remain available; section classification does not assign scope responsibility.

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

Input Schema

NameRequiredDescriptionDefault
qNo
limitNo
offsetNo
project_idYesThe project to work on (list_projects names them).
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/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so safety is covered. The description adds genuine context beyond that: custom formats and unresolved sections still appear in the inventory, and classification does not assign scope responsibility. It omits any pagination/default-page-size behavior for limit and offset.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four dense sentences, front-loaded with the core purpose and then scope caveats. Every sentence adds a distinct constraint or routing hint with no 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 conveys the returned inventory and its edge cases (custom formats, unresolved sections), which is good. But pagination semantics and result ordering are unaddressed for a tool that exposes limit/offset, leaving a gap.

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 40% (project_id and source_sha256 documented), so the description must compensate, and it does for the most important param by defining q as a section number/title filter over inventory metadata rather than clause text. limit and offset remain unexplained beyond their obvious names.

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 ("Read the observed specification section inventory for a current source") and immediately distinguishes it from search_specifications, which reads clause text. An agent can tell what this returns 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 Guidelines5/5

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

Explicitly instructs to use q to filter section numbers/titles rather than paging the whole book for one trade, and names the alternative (search_specifications) for exact source passages. The when-to-use and when-to-use-something-else conditions are both present.

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