Skip to main content
Glama

Get build spec

get_build_spec
Read-only

Get a build's original submitted spec (storyTitle, acceptanceCriteria, stackType, existingFiles, skipTestsFor) without retrying it — useful for inspecting or reusing a prior build's spec as a template.

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": {
      "buildId": "<buildId>"
    },
    "name": "get_build_spec"
  }
}

Input Schema

NameRequiredDescriptionDefault
buildIdYesThe build ID.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, so the description's added value is the clarification that this returns the ORIGINAL submitted spec rather than the current/retried state and does not trigger a rebuild — a real distinction not captured by the annotation. It is silent on error behavior for an unknown buildId, which keeps it from a 5.

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?

One front-loaded sentence: purpose first, enumerated fields second, use case last. The parenthetical field list is dense but every item carries information; nothing is redundant.

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 compensates by listing the spec fields an agent will receive, and it covers the non-retry semantics of a single-parameter read tool. Minor gaps around failure modes and spec immutability are acceptable at this complexity.

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 100% with a single documented buildId parameter, so the schema does the heavy lifting. The description adds no format, sourcing, or lookup semantics for buildId beyond what the schema already says.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (get a build's original submitted spec) and enumerates the returned fields (storyTitle, acceptanceCriteria, stackType, existingFiles, skipTestsFor), which makes the payload concrete. It does not explicitly differentiate itself from get_build or get_build_files, so an agent must infer the boundary from the word 'spec' alone.

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?

Gives a clear use case ('inspecting or reusing a prior build's spec as a template') and implicitly excludes retry behavior with 'without retrying it'. It stops short of naming an alternative such as retry_build or stating what to do when the build is missing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources