Skip to main content
Glama

code.run

Runs allowlisted build and test commands inside a sandboxed workspace, enabling AI agents to validate code changes while restricting execution to approved commands.

Instructions

Run an allowlisted build/test command inside the workspace (requires NOVAFORGE_MCP_ALLOW_EXEC=1).

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": {
      "command": "<command>"
    },
    "name": "code.run"
  }
}

Input Schema

NameRequiredDescriptionDefault
commandYesFull command line, first token must be allowlisted.
timeoutNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.9/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 the allowlist gate and the NOVAFORGE_MCP_ALLOW_EXEC=1 prerequisite, but says nothing about side effects, sandboxing, exit-code semantics, what happens on timeout, or what the call returns — all critical for a command-execution tool.

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?

One tight sentence with the core action front-loaded and the environment prerequisite in a parenthetical. Nothing is redundant or padded.

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?

For a shell-execution tool with no annotations and no output schema, the definition is thin. It omits return shape (stdout/stderr/exit code), timeout behavior, and failure modes, which an agent needs to call and interpret results correctly.

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?

With 50% schema coverage, the description reinforces the `command` parameter by stating the first token must be allowlisted, matching the schema's own wording. The `timeout` parameter is left entirely to the schema's default/min/max bounds, with no explanation of what happens when it elapses.

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 uses a specific verb and resource — 'Run an allowlisted build/test command inside the workspace' — which is far more informative than a bare 'run'. It implicitly separates this from siblings like code.write or code.scaffold by framing it as execution rather than file mutation, though it never names an alternative explicitly.

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 phrase 'build/test command' hints at intended use and the allowlist constrains what can be passed, but there is no explicit when-to-use, when-not-to-use, or alternative named among code.write, code.scaffold, or the device/skill tools. An agent must infer that this is the tool for executing rather than editing code.

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