Skip to main content
Glama

read_spec_instruction

Read-onlyIdempotent

Retrieve a current, human-confirmed instruction for the active work package with clause and span source references; revoked or stale instructions are refused.

Instructions

Read one current, human-confirmed instruction for the active work package, with source generation/clause/span references. Original source text remains available through read_spec_clause; this is user direction, not a certified interpretation or permission to bypass normal action gates. Revoked/stale instructions are refused.

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

Input Schema

NameRequiredDescriptionDefault
project_idYesThe project to work on (list_projects names them).
instruction_idYes

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?

Annotations already cover read-only, idempotent, closed-world, non-destructive behavior, and the description adds real context beyond that: revoked or stale instructions are refused, and the returned content carries source provenance back to generation/clause/span. It also pre-empts misuse by stating the instruction is not a certified interpretation or an action-gate waiver.

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?

Three compact sentences, front-loaded with what is read and what is returned, then the disambiguation and the caveat. No filler, though the provenance clause in sentence one is fairly dense.

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 still conveys the return shape (source generation/clause/span references) and the refusal behavior for stale/revoked instructions. The remaining gap is how to obtain the required instruction_id, which leaves an agent unable to complete the call without trial and error.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema documents project_id but instruction_id has only a 64-hex pattern and no description (50% coverage). The description says nothing about either parameter and, critically, never indicates where a valid instruction_id comes from, which is the main semantic gap for a tool keyed on an opaque ID.

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 one current, human-confirmed instruction for the active work package, and notes it returns generation/clause/span references. It also explicitly separates itself from read_spec_clause, which serves the original source text, so an agent can pick between the two 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 Guidelines4/5

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

Names the alternative (read_spec_clause) for original source text and sets a clear boundary: this is user direction, not a certified interpretation, and not permission to bypass normal action gates. It does not reference the listing sibling (get_spec_instructions) for discovering valid instruction IDs, which is the practical precondition for using 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