Skip to main content
Glama

agent_code

Builds a deterministic implementation intent from a planner result, attached files, and docs without modifying project files.

Instructions

Build a deterministic implementation intent from a planner result, attached files, and docs without mutating files.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "agent_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
planNo
namespaceNo
sessionIdNo
libraryDocsNo
attachedFilesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It usefully discloses that no files are mutated, but says nothing about what the returned intent looks like, whether the call is idempotent, what permissions or session context it needs, or what happens with missing planner input.

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?

A single front-loaded sentence with no filler or repetition. It is efficient, though the terseness contributes to the jargon problem rather than resolving it.

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

Completeness2/5

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

With five undocumented parameters, no annotations, and no output schema, this definition should do far more work. An agent cannot tell what to pass for namespace or sessionId, nor what an 'implementation intent' return value contains, making the definition insufficient for reliable invocation.

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?

Schema coverage is 0% and every property is an untyped empty object, so the schema provides no semantics at all. The description touches on plan, attachedFiles, and libraryDocs, but leaves namespace and sessionId entirely unexplained, and adds no format or expected-shape detail for the ones it does name.

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

Purpose3/5

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

The description gives a concrete verb and object ('Build a deterministic implementation intent') and names its inputs (planner result, attached files, docs), which distinguishes it from a plain planner. However, 'deterministic implementation intent' is internal jargon with no explanation of what is actually produced, leaving the agent guessing at the concrete artifact.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

The phrase 'from a planner result' implies this runs downstream of agent_plan, and 'without mutating files' hints at when-not-to-expect-writes. There is no explicit statement of when to call this versus agent_plan, code_steps, or run_deep_pipeline, so the sequencing must be inferred.

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