Skip to main content
Glama

quote_spec_clause

Read-onlyIdempotent

Verify an exact quotation against a current indexed specification clause, returning page/block citations and precise line/Unicode offsets so you can confirm the quoted text.

Instructions

Verify an exact quotation against a current indexed specification clause. Copy quote verbatim, preserving negation/numbers/units. Returns original page/block citations and exact extracted-clause line/Unicode offsets; these are not printed PDF line numbers. Repeated text requires start_offset. The server sets the response budget (pass none); quote every answering clause in ONE call: the first in clause_id/quote, the rest in more. context_clauses carries the governing context clauses verbatim when they fit (context_clauses_complete): read_spec_clause only the ones it lacks. Text matching does not certify OCR accuracy or contractual interpretation. Read governing context before a scope decision.

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>",
      "generation_id": "<generation_id>",
      "clause_id": "<clause_id>",
      "quote": "<quote>"
    },
    "name": "quote_spec_clause"
  }
}

Input Schema

NameRequiredDescriptionDefault
moreNoFurther quotes from the same source and generation, verified in this one call (each result in more_quotes).
quoteYes
budgetNo
clause_idYes
project_idYesThe project to work on (list_projects names them).
start_offsetNo
generation_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.7/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, non-destructive behavior, and the description adds substantive context beyond that: citations are original page/block, offsets are extracted-clause line/Unicode offsets rather than printed PDF lines, and the server controls the response budget. It also honestly bounds what the tool proves by warning that matching does not certify OCR accuracy or contractual interpretation.

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 the purpose and then packs operational rules tightly, with essentially no filler. It is telegraphic and dense (budget, offsets, batching, caveats in one block), which costs some readability but not correctness.

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 and eight parameters, the description carries most of the burden and does explain return values (citations, offsets, more_quotes implied), budget behavior, and semantic limits. The main gap is the dangling reference to context_clauses fields that the schema does not define, which could confuse an agent mapping the instruction to parameters.

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 38%, so the description must compensate, and it does for the key cases: start_offset conditioned on repeated text, budget to be left unset because the server sets it, and the batching role of 'more'. It does not explain project_id, source_sha256, or generation_id beyond schema notes, and it references 'context_clauses'/'context_clauses_complete', which do not appear among the schema properties, creating mild ambiguity.

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 sentence names a precise verb and resource: 'Verify an exact quotation against a current indexed specification clause.' The later instruction to use 'read_spec_clause only the ones it lacks' implicitly contrasts the tool with its nearest sibling, so an agent can distinguish retrieval from verification without inspecting schemas.

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?

Concrete when-to guidance is present: batch every answering clause into ONE call (first in clause_id/quote, the rest in 'more'), supply start_offset when text repeats, pass no budget, and prefer read_spec_clause for any context clauses the response lacks. The final directive to read governing context before a scope decision clarifies sequencing with other tools.

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