Skip to main content
Glama

runClaudeTask

Enqueue a Claude task with a given prompt, optionally add context files, and either return a taskId for async polling or stream the response in real time.

Instructions

Enqueue Claude subprocess task. Returns taskId for getClaudeTaskStatus, or stream=true to block.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYesPrompt to send to Claude
contextFilesNoWorkspace-relative or absolute paths to add as context (max 20).
timeoutMsNoTask timeout in ms (5000–600000). Default: 120000.
streamNoBlock + stream via progress. Default: false (return taskId).
modelNoModel override, e.g. "claude-haiku-4-5-20251001".
effortNoThinking budget: low/medium/high/max.
fallbackModelNoFallback model if primary overloaded/unavailable.
maxBudgetUsdNoSpend cap in USD. Omit for no cap.
startupTimeoutMsNoAbort if no output within this ms of spawn.
systemPromptNoSystem prompt override. Max 4096 chars.
useAntNoRun this task with the ant binary instead of claude. Requires ant on PATH or --ant-binary configured.
Behavior3/5

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

The description discloses that the tool enqueues a task (mutation) and returns either a taskId or streams output. Annotations are minimal (readOnlyHint=false, destructiveHint=false, openWorldHint=true). The description adds value by explaining the return behavior, but lacks details on queue behavior, rate limits, or side effects. Adequate but not rich.

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?

Two sentences, front-loaded with the core action and outcome. Every word earns its place. No fluff.

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?

The tool has 11 parameters (complex) and no output schema. The description only mentions return type (taskId or stream) but does not describe error cases, response format, or side effects. For a complex tool, this is incomplete.

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 baseline is 3. The tool description does not add extra parameter meaning beyond what is already in the schema. The naming and schema descriptions are sufficient.

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

Purpose5/5

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

The description clearly states the action ('Enqueue Claude subprocess task') and the resource. It distinguishes from siblings by mentioning taskId for status queries and stream mode for blocking, which directly contrasts with getClaudeTaskStatus and cancelClaudeTask.

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

Usage Guidelines4/5

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

The description provides context for when to use this tool (enqueue a task) and offers two usage paths (async with taskId vs stream). It implicitly contrasts with siblings, but does not explicitly state when not to use it or alternatives beyond the one sibling.

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/Oolab-labs/patchwork-os'

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