Skip to main content
Glama

claude_code_execute

Run Claude Code tasks synchronously with configurable model, working directory, timeout, and output format, returning results after completion.

Instructions

Execute Claude Code synchronously with full control over parameters. Returns the result after completion. Common usage: prompt="your task", working_dir="/path/to/project"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelNoModel to use (e.g., "sonnet", "opus", "haiku")
promptYesThe task prompt for Claude Code to execute
timeoutNoTimeout in seconds (default: no limit)
working_dirNoWorking directory for the task (default: current directory)
output_formatNoOutput format: "text" (default), "json", or "stream-json"text
additional_argsNoAdditional CLI arguments to pass to Claude Code
skip_permissionsNoSkip permission checks for automation (default: true)

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure, but it only states that execution is synchronous and returns a result. It does not mention side effects, the skip_permissions default, output shape variability, or error/timeout behavior, which are material for a code-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.

Conciseness4/5

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

The description is short, front-loaded with the core synchronous behavior, and ends with a practical usage example. The phrase 'full control over parameters' is somewhat vague, but overall it is concise and direct.

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 no annotations and no output schema, the description is adequate for basic synchronous execution with a prompt, and the input schema covers all parameters. It is incomplete around return formats, the async alternative, and safety implications, which are important for this kind of tool.

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 100%, so the schema already documents all seven parameters. The description adds only a common-usage example with prompt and working_dir; this is mildly helpful but does not meaningfully extend the schema's parameter explanations.

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 identifies the tool as executing Claude Code synchronously and returning the result after completion. This distinguishes it from the async sibling by emphasizing blocking behavior, though it does not explicitly name or contrast with claude_code_check_result.

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 synchronous wording and 'returns the result after completion' imply it should be used when the caller wants to wait for Claude Code's output. However, there is no explicit guidance about when to prefer execute_async or check_result, leaving the selection largely implicit.

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

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/win10ogod/claudecode-mcp-async-windows'

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