Skip to main content
Glama

coding_write_code

Plan and implement code changes end-to-end: read relevant files, design the change, write the code, and run tests. Returns a diff summary and test results.

Instructions

Plan and implement a code change end-to-end. Reads the relevant files, designs the change, writes the code, and runs tests. Returns a diff summary and test results. Args: message: Free-text objective for the action. brief (required): Plain-English description of the desired change. repo_path: Workspace-relative path to scope the change. run_tests: Run the test suite after the change.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
messageNo
briefNo
repo_pathNo
run_testsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

The description discloses its workflow (reads, designs, writes, tests, returns results) but lacks details on side effects, destructive actions, permissions, or error handling. With no annotations provided, the description carries the full burden and is adequate but incomplete.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise, front-loaded with the main action, and efficiently covers the tool's purpose, process, and parameters without fluff. Every sentence adds value.

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

Completeness3/5

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

Given the tool's complexity (end-to-end code change) and the presence of an output schema, the description covers the core workflow and return values. However, it lacks details on error handling, multiple file modifications, and differentiation from similar sibling tools.

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

Parameters4/5

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

The schema has no descriptions (0% coverage), so the description compensates well. It explains each parameter's purpose, clarifies that 'brief' is required despite the schema not enforcing it, and adds context about the meaning of each argument.

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?

The description clearly states it plans and implements a code change end-to-end, listing specific actions like reading files, writing code, running tests, and returning a diff summary. It distinguishes itself from many sibling tools by being comprehensive, but it does not explicitly differentiate from similar tools like coding_propose_changes.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives such as coding_propose_changes or coding_run_tests. It lacks explicit usage context, prerequisites, or exclusion criteria.

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/RPasquale/lightbulb-mcp'

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