Skip to main content
Glama

build

Destructive

Autonomously analyze a project, decompose a plain-English goal into tasks, edit code, and verify each change through build/test/lint/typecheck gates, reverting regressions. Preview with dry_run, cap cost with budget.

Instructions

Autonomously plan AND execute a goal in a project, from scratch.

Use when: you have a goal but no existing task plan — ``build`` analyzes the
project, decomposes ``goal`` into tasks, edits the code, and verifies each
change through build/test/lint/typecheck gates, reverting anything that
regresses. Do NOT use when: a task plan already exists and you just want to
execute it (use ``run``), or the working tree is dirty (commit/stash first).
Related: ``run`` (execute an existing plan), ``status`` (inspect tasks).

DESTRUCTIVE side effects: edits files and makes git commits, and calls an
external LLM provider (open-world, non-idempotent). It refuses to run on a
dirty working tree. ``dry_run=True`` previews without changing anything;
``budget`` caps spend; ``max_tasks`` caps scope.

Returns a compact text report: what was done, per-gate results, and cost.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
goalYesPlain-English description of what to build, or a mode word: 'debug' (fix what's broken), 'complete' (finish unfinished work), or 'review'. Example: 'add rate limiting to the public API'.
pathYesAbsolute path to the project directory to build (containing project.yaml). Its git working tree must be clean. Example: '/Users/me/code/my-api'.
budgetNoMaximum US dollars to spend on this run. Must be > 0; the run halts when reached. Example: 5.0.
dry_runNoWhen true, plan and preview the tasks without editing any code or spending beyond planning. Example: true.
parallelNoWhen true, run independent tasks concurrently in isolated git worktrees. Example: false.
max_tasksNoCap how many tasks are planned/executed (bounds cost and scope). Must be >= 1; omit for no cap. Example: 5.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Discloses destructive side effects (edits files, makes commits, calls external LLM) beyond annotations, and notes refusal on dirty tree. Could mention non-determinism from external calls.

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?

Well-structured with sections and bullet points, but slightly verbose. Front-loaded with purpose.

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

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers side effects, safe preview, budget, output format, and tool constraints. Complete for a complex tool with output schema.

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

Parameters5/5

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

Schema coverage is 100% but description adds significant context for each parameter, e.g., explaining mode words for 'goal' and clarifying 'path' requirements.

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 clearly states the tool's purpose: 'Autonomously plan AND execute a goal in a project, from scratch.' It distinguishes from siblings like 'run' and 'status' with explicit use cases.

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?

Explicitly specifies when to use (no existing task plan) and when not to use (existing plan, dirty tree), and mentions related tools for alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dcondrey/misterdev'

If you have feedback or need assistance with the MCP directory API, please join our Discord server