Skip to main content
Glama

cm_exec

Run trusted Python with the worker worktree as cwd to process local data and return only the final result, not intermediate tool responses.

Instructions

Run trusted Python; pass the worker worktree as cwd.

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": {
      "code": "<code>"
    },
    "name": "cm_exec"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNo
codeYes
max_charsNo
timeout_sNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

D1.5/5.0
Behavior1/5

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

No annotations are supplied, so the description carries the full burden and it discloses almost nothing: it does not say whether code execution is sandboxed, what "trusted" implies about safety or permissions, whether side effects persist, what happens on timeout, or how failures are reported. For arbitrary code execution — the highest-risk operation class — this is a serious gap.

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

Conciseness3/5

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

It is short and front-loaded, with no filler sentences. But the brevity is under-specification rather than economy: the second clause duplicates the schema's cwd field instead of spending the words on missing semantics.

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

Completeness1/5

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

A four-parameter code-execution tool with no annotations, no output schema, and 0% schema coverage needs far more than nine words. An agent cannot judge safety, expected return shape, truncation behavior, or when to prefer cm_discover.

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

Parameters1/5

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

Schema description coverage is 0% for four parameters, so the description must compensate and does not. Only cwd gets any mention (and only as "worktree"); code, max_chars, and timeout_s — including whether max_chars truncates output and whether timeout raises or returns partial results — are left entirely unexplained.

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

Purpose2/5

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

"Run trusted Python" names a verb and resource, so the basic action is identifiable. But "trusted" is undefined and "pass the worker worktree as cwd" restates the cwd parameter rather than clarifying purpose; nothing distinguishes this from cm_discover or explains what environment the code runs in.

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

Usage Guidelines1/5

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

No when-to-use guidance, no when-not-to-use, no mention of the sibling cm_discover. The single hint ("pass the worker worktree as cwd") is a parameter instruction, not usage guidance.

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

Deploy Server

Other Tools