Skip to main content
Glama

Build from a spec

build_from_spec

Submit raw PRD/plan/spec text plus a list of target repos; Codemind LLM-decomposes it into stories (each assigned to one of your declared repos, never an invented one) and dispatches them via the same path build_batch uses. Pass dryRun: true to see the decomposed story list without dispatching anything, useful for reviewing before committing. Recommended for a first-time caller: review with dryRun: true, then resubmit the (possibly edited) story list via build_batch directly — a second build_from_spec call with dryRun: false re-decomposes specText from scratch and will not reflect edits made to a prior dry run's output.

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": {
      "specText": "<specText>",
      "repos": "<repos>"
    },
    "name": "build_from_spec"
  }
}

Input Schema

NameRequiredDescriptionDefault
reposYes
dryRunNo
deliverNoOpt in to delivery: when every story has finished, open one pull request per target repo (a draft if any story did not verify or the repo's own tests newly fail). Needs the repo attached through the GitHub App; an unattached repo is reported with nextAction attach_repo and its files stay available from get_build_files. Never merged automatically. Results appear under deliveries in get_batch.
specTextYes
maxStoriesNoDefault 20, hard ceiling 50.
webhookUrlNo
webhookSecretNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / repos / items / properties / existingFiles / description
      Previous value: -"OPTIONAL current contents of this repo's files that the spec changes or depends on ({path, content}). Every story for this repo is built with them (a file whose path the story names is edited, the rest are read-only context). With deliver, Ship only overwrites an existing file that is supplied here AND still has exactly this content in the repo at delivery; any other existing file is never overwritten."New value: +"OPTIONAL current contents of this repo's files that the spec changes or depends on ({path, content}). With deliver and the repo attached through the GitHub App you can omit this: Ship reads the files each story names, plus their local imports, from the repo itself. Every story for this repo is built with them (a file whose path the story names is edited, the rest are read-only context). With deliver, Ship only overwrites an existing file that is supplied here AND still has exactly this content in the repo at delivery; any other existing file is never overwritten."
  2. Changed1 schema field changed
    • addedInput schema / properties / repos / items / properties / existingFiles
      Added value: +{
      +  "description": "OPTIONAL current contents of this repo's files that the spec changes or depends on ({path, content}). Every story for this repo is built with them (a file whose path the story names is edited, the rest are read-only context). With deliver, Ship only overwrites an existing file that is supplied here AND still has exactly this content in the repo at delivery; any other existing file is never overwritten.",
      +  "items": {
      +    "properties": {
      +      "content": {
      +        "type": "string"
      +      },
      +      "path": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "path",
      +      "content"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / deliver
      Added value: +{
      +  "description": "Opt in to delivery: when every story has finished, open one pull request per target repo (a draft if any story did not verify or the repo's own tests newly fail). Needs the repo attached through the GitHub App; an unattached repo is reported with nextAction attach_repo and its files stay available from get_build_files. Never merged automatically. Results appear under deliveries in get_batch.",
      +  "enum": [
      +    "pull_request"
      +  ],
      +  "type": "string"
      +}
  4. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only state readOnlyHint=false and destructiveHint=false; the description adds substantial behavior beyond that — LLM decomposition, the guarantee that stories are never assigned to invented repos, that dispatch reuses the build_batch path, and the important non-idempotency caveat about re-decomposition. It does not cover delivery side effects, auth requirements, or cost/latency, which keeps it short of 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?

The key behavior and the dryRun preview are front-loaded, and every sentence carries information. The single long sentence with parentheticals is dense and could be broken for readability, but there is no filler.

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?

For a 7-parameter non-read-only tool with no output schema and thin schema documentation, the description covers the core call flow, the safety-relevant dryRun path, and the key re-decomposition trap. The webhook parameters and the deliver opt-in (documented only in the schema) are left unaddressed, a modest gap.

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 low at 29%, so the description must compensate. It explains specText's role, the repos constraint (stories assigned to declared repos, never invented), and dryRun's exact effect, but says nothing about deliver, maxStories, webhookUrl, or webhookSecret — three of which have no schema description at all.

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 description gives a specific verb+resource: submits raw PRD/plan/spec text plus target repos, has an LLM decompose it into stories assigned to declared repos, and dispatches them. It explicitly distinguishes itself from the sibling build_batch by saying it dispatches 'via the same path build_batch uses', so an agent can tell the two apart 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 guidance (dryRun: true to preview), a recommended workflow for first-time callers (review, then resubmit the story list via build_batch directly), and a concrete exclusion warning — a second call with dryRun: false re-decomposes from scratch and will not reflect prior edits. Alternatives and pitfalls are both named.

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