Skip to main content
Glama

run

Execute one self-contained Claude Code task in an isolated scratch directory, returning the final message and a file manifest so you review and copy only approved artifacts.

Instructions

Run one Claude Code task (claude -p) in an isolated scratch directory. Returns Claude's final message plus an artifact manifest (path, bytes, sha256 per file) — file bodies are NEVER included. Claude can read the directories you name but can only write inside its own scratch directory. Read the artifact paths yourself, review them, and only then copy what you approve into the workspace.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filesNoOptional explicit list of artifact paths (relative to the artifact root) to report. Omit to report every file the run created.
modelNoOptional Claude model id or alias for this call (for example "sonnet" or a full model name). Omit to use the deployment default from CLAUDE_MCP_MODEL, or Claude Code's own configuration.
promptYesThe complete, self-contained task for Claude. It does not share this conversation, so include everything it needs (paths it may read, the exact question, and the output file it should write).
readDirsNoOptional extra directories Claude may READ (absolute paths). It still cannot write there. Omit to use the server working directory.
timeoutMsNoDeadline in milliseconds for the whole run. Defaults to the deployment value (CLAUDE_MCP_TIMEOUT_MS, else 900000).
maxBudgetUsdNoOptional ceiling in US dollars for this run, passed to Claude Code as its budget guard (default: CLAUDE_MCP_MAX_BUDGET_USD, else no ceiling).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does well: it discloses write isolation (scratch-only writes), that artifact file bodies are NEVER returned, and the return payload shape (final message + manifest with path/bytes/sha256). It omits auth/permission requirements and any rate-limit or concurrency behavior, keeping it short of a 5.

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?

Front-loaded with the core action, then returns, then permissions, then review workflow — a logical order. Every clause earns its place, though the final imperative sentence lengthens it slightly.

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

Completeness5/5

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

No output schema exists, so the description must explain returns, and it does precisely (final message plus manifest fields, bodies excluded). Combined with the write-isolation rules, an agent has everything needed to invoke and consume the result 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?

Schema description coverage is 100%, so every parameter (files, model, prompt, readDirs, timeoutMs, maxBudgetUsd) is already documented in the schema. The description reinforces the read/write boundary and the self-contained prompt requirement but adds no syntax or format detail beyond the schema. Baseline 3 applies.

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?

States a specific verb+resource ('Run one Claude Code task (`claude -p`)') plus the execution context ('in an isolated scratch directory'). There are no sibling tools to differentiate from, and an agent immediately knows what this tool produces.

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 gives clear context for use: Claude can read named directories but writes only in scratch, and the caller should read/review artifacts before copying them into the workspace. It doesn't state explicit when-not conditions or alternatives, but none exist here, so the guidance is solid.

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