Skip to main content
Glama

btb_execute_command

Runs an approved shell command inside the back-to-the-basics repository, optionally from a subdirectory, while blocking dangerous commands so agents can execute tests and scripts safely.

Instructions

Executes a shell command in the back-to-the-basics repository.

Args: command: The shell command to execute (e.g., "pytest", "python -m coherence") working_dir: Optional subdirectory within BTB to execute from

Security: Only allows specific safe commands. Dangerous commands are blocked.

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": "btb_execute_command"
  }
}

Input Schema

NameRequiredDescriptionDefault
commandYes
working_dirNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden, and it does disclose one meaningful behavioral trait: an allowlist-style guard that blocks dangerous commands. It leaves the failure mode of a blocked command undefined (error vs. empty result), and says nothing about timeouts, working directory defaults, or output truncation, though the presence of an output schema removes the need to explain return values.

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 purpose is front-loaded in the first sentence, followed by parameter notes and a security caveat, with no filler. The 'Args:' block largely restates parameter names already visible in the schema, which is mild redundancy but keeps the prose scannable.

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?

For an arbitrary-command-execution tool this definition is only partially complete: the sandboxing story is hinted at but not specified, and execution semantics (timeouts, exit status, cwd default) are absent. The existing output schema offsets the need to describe results, keeping this at an adequate rather than poor level.

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 0%, so the description must compensate, and it does define both parameters: 'command' with two concrete examples and 'working_dir' as an optional subdirectory within BTB to execute from. It stops short of the most useful detail for 'command' — what the safe-command allowlist actually contains and how matching works — so an agent still cannot predict whether a given command will be rejected.

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?

States a concrete verb and resource ('Executes a shell command') scoped to the back-to-the-basics repository, which distinguishes it from the file-reading and directory-listing siblings. It does not name any sibling explicitly, so the differentiation is inferred from the operation type rather than stated.

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?

There is no explicit guidance on when to reach for this tool versus btb_read_file or btb_list_directory, and no 'when not to use' beyond a generic security warning. The closest thing to usage context is the example commands ('pytest', 'python -m coherence'), which only weakly imply that the tool is meant for running tests and tooling.

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