Skip to main content
Glama

claude_run_task

Runs coding tasks, refactors, or test suites through the Claude Code agent, starting a clean headless session or resuming an existing one with context continuity.

Instructions

Ejecuta una tarea, refactor, suite de tests o instrucción técnica usando el agente autónomo de Claude Code. Puede iniciar una sesión limpia o reanudar una sesión existente (pasando sessionId) con continuidad de contexto y ejecución headless de comandos.

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": {
      "prompt": "<prompt>"
    },
    "name": "claude_run_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoDirectorio de trabajo del proyecto. Por defecto WORKSPACE_DIR o el directorio actual del servidor.
modelNoModelo de Claude a utilizar (opus: Opus 5.5 por defecto, sonnet: Sonnet 5, fable: Fable 5.1, haiku: Haiku 4.5).opus
effortNoNivel de esfuerzo / thinking de Claude Code (low, medium, high, xhigh, max). Si se omite, se usa el configurado en claude-mcp-settings.
promptYesLa instrucción, tarea o briefing que Claude Code debe ejecutar.
sessionIdNoOpcional. ID de sesión (UUID) para reanudar un hilo existente de Claude Code.
timeoutMsNoTimeout máximo absoluto en milisegundos (por defecto 1800000 ms / 30 minutos). Incluye watchdog de inactividad de 5 minutos.
permissionModeNoPolítica de permisos para que Claude ejecute comandos sin bloquearse esperando confirmación interactiva.bypassPermissions

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations at all, the description carries the full behavioral burden. It does disclose two meaningful traits — context continuity when resuming and headless command execution — but says nothing about the fact that the agent can mutate the filesystem, about the bypassPermissions default, or about long-running timeouts, all of which an agent needs to reason about risk before invoking.

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?

Two dense sentences that front-load the primary action and then the clean-versus-resume distinction. No filler, though the enumerated task types ('refactor, suite de tests') add little beyond the core verb.

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 a 7-parameter, mutation-capable tool with no annotations and no output schema, the description covers the core invocation modes but omits what comes back (session id, logs, exit status) and how to obtain a sessionId to resume. Adequate to call correctly on a first attempt, not complete enough to predict outcomes.

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 description adds a bit of meaning for sessionId by framing it as resuming a thread with context continuity, but it adds nothing for cwd, effort, timeoutMs, or permissionMode beyond what the schema already spells out.

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: ejecuta una tarea/refactor/suite de tests usando el agente autónomo de Claude Code, which tells an agent this is the execution entry point rather than a session-inspection or config tool like its siblings. It stops short of explicitly contrasting itself with claude_list_sessions or claude_session_status, which is where an agent might otherwise hesitate.

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?

It draws one useful fork: start a clean session versus resume an existing one by passing sessionId. However it never says when to prefer this tool over the sibling session tools, nor where a sessionId comes from, leaving the routing decision implied rather than stated.

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