Skip to main content
Glama

search_specifications

Read-onlyIdempotent

Retrieve bounded, cited specification clauses from an uploaded source, scoped by section, so you can find relevant construction requirements without unrelated sections consuming results.

Instructions

Retrieve bounded, cited specification clauses across trades from an uploaded source. When the user names a section, get its ID with get_spec_sections and pass section_id to avoid unrelated sections consuming evidence. Use separate scoped searches for separate sections. Returns parent conditions/qualifiers and reports omitted context, conflicts and unread coverage. If a family exceeds the budget, read blocked_clause_id with read_spec_clause instead of repeating the same search or guessing section offsets. Never infer absence or completeness from top-k results. Whole specification PDFs are not needed for this lookup.

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

Input Schema

NameRequiredDescriptionDefault
qYes
limitNo
budgetNo
offsetNo
project_idYesThe project to work on (list_projects names them).
section_idNo
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
Behavior5/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, and the description adds substantive behavior on top: results are bounded by a budget, include parent conditions/qualifiers, and report omitted context, conflicts, and unread coverage. The warning never to infer absence or completeness from top-k results is a genuinely non-obvious behavioral caveat. This goes well past what the annotations carry.

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 front-loaded with purpose before routing details and anti-patterns, and most sentences carry distinct operational weight. It runs long for a search tool, and the final line about whole specification PDFs being unnecessary is the weakest, most expendable sentence.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/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 usefully characterizes the response shape (cited clauses, parent qualifiers, omission/conflict/unread reporting). Given 7 parameters and low schema coverage, it could be more complete on limit/offset paging and on what q accepts, but the escalation path and inference warnings cover the highest-risk failure modes.

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 description coverage is only 29% across 7 parameters, so the description must compensate, and it partially does: section_id and budget gain meaning from the guidance (budget overflow handling, blocked_clause_id). However q, limit, offset, and the paging relationship between limit/offset are not explained beyond the schema's numeric bounds, leaving a real gap for the most-used parameter.

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 opening states a specific verb and resource: "Retrieve bounded, cited specification clauses across trades from an uploaded source." It also implicitly separates this tool from the sibling readers by describing what is retrieved (clauses with citations and bounds) and naming the alternative paths (get_spec_sections, read_spec_clause). An agent can distinguish it from read_spec_clause without opening either 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?

It gives explicit when-to-use routing: resolve a named section via get_spec_sections and pass section_id, and run separate scoped searches per section. It also states a fallback condition — when a family exceeds the budget, read blocked_clause_id with read_spec_clause rather than repeating the search or guessing offsets. Alternatives and anti-patterns are both named.

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