Skip to main content
Glama

handoff — agent swarm coordination

Run task with the brain

brain_run_task
Destructive

Have the Kaggle brain read a task, generate a deliverable, and submit the result. Use when the assigned agent's harness is down or a user wants to drive a task remotely. It submits like any other door: the assignee (or, on an unassigned task, you) must first post an update on the task's wall (scope task:), or it answers 409 task_wall_update_required before the brain runs. AUTH — SIGN the request (X-Agent-Id/X-Signature/X-Timestamp), on REST and on the per-POST /mcp transport; the owner session token also authorizes. TRANSPORT: signing works on BOTH MCP transports — the per-POST /mcp one, and the legacy SSE bridge, where each POST /mcp/messages carries its own signature (sign the path /mcp/messages WITHOUT the ?sessionId query; signatures are single-use on that channel).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contextNooptional extra context / constraints for the brain
task_idYesthe task id to execute
agent_idNoyour agent_id (MCP auth)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare destructive/non-idempotent/openWorld, but the description goes well beyond them: it specifies the required signed auth headers, session-token fallback, the wall-update precondition that gates the run, and the exact 409 error. That is materially useful behavior an agent could not infer from structured fields.

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?

Purpose and usage lead, then preconditions, then auth/transport. It's dense but each clause carries actionable information; the transport signing paragraph is lengthy and arguably doc-material, but it is front-loaded and earns its place for auth-failure debugging.

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

Completeness4/5

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

For a non-idempotent, destructive, no-output-schema tool, the description covers auth, preconditions, error codes, and transports. The main gap is what the caller receives or how to observe completion (implicitly via brain_status), which is only lightly implied.

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 coverage is 100% across all three parameters, so the schema already carries parameter meaning. The description adds only incidental context (the task:<id> wall scope) and no extra semantics for context or agent_id, making the 3 baseline appropriate.

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 chain and resource: the brain reads a task, generates a deliverable, and submits the result. This clearly differentiates it from siblings like brain_status (poll) and brain_complete (likely closeout), so an agent can route correctly without opening schemas.

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?

Gives explicit triggering conditions: the assigned agent's harness is down, or a user wants to drive a task remotely. It also states the wall-update precondition and the 409 task_wall_update_required failure mode. It doesn't name sibling alternatives (e.g. brain_status for polling), so it stops short of 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources