Skip to main content
Glama

Delegate task to Perch AI

delegate_to_perch
Destructive

Hand off coding tasks to an autonomous Perch AI worker that executes them in a working directory and returns the final answer, thread ID, and status for polling long-running jobs.

Instructions

Delegate a task to Perch AI (worker agent) via the official perch CLI. Perch runs autonomously in the given working directory with its own tools (bash, file read/write, skills) on the signed-in Perch plan. Karpathy working guidelines (assumptions, simplicity, surgical scope, evidence-based verification) are prepended to every task by default (guidelines:false to disable). Returns the final answer, thread id, and status. Long-running tasks: pass wait_seconds to bound blocking; if still running you get a job_id — poll perch_job_status.

Input Schema

NameRequiredDescriptionDefault
cwdNoWorking directory Perch operates in (default: temp dir).
modeNoagents = autonomous execution with tools; ask = answer only; plan = plan only.agents
taskYesNatural-language task for Perch to execute autonomously.
modelNoModel tier or pinned model id: "standard", "standard 1m", "pro", "pro 1m", or a pin id like "qwen-3.8-max" (free on Starter until 2026-11-20, effort off..high). Defaults to $PERCH_AGENT_MODEL or "standard".standard
effortNoReasoning effort. Defaults to $PERCH_AGENT_EFFORT or "high". Starter plans cap effort at high; some promo models only accept off..high.high
personaNoPerch persona.
thread_idNoContinue an existing Perch thread (from a previous result's thread_id).
guidelinesNoPrepend the karpathy working guidelines (assumptions, simplicity, surgical scope, evidence-based verification) to the task.
permissionNoPerch permission mode. take_the_wheel = never asks before writes/commands (required for autonomous delegation; auto_review makes the worker stop and ask, ending the turn).take_the_wheel
wait_secondsNoSeconds to block waiting for completion before returning a running job_id.
timeout_secondsNoHard limit; the Perch process tree is killed after this.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.6/5.0
Behavior5/5

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

With annotations already declaring destructive/openWorld/non-idempotent, the description still adds substantial context: the worker has its own bash and file read/write tools, runs against the signed-in Perch plan, and permission=take_the_wheel means it never asks before writes or commands. It also discloses the return shape and the job_id escape hatch, which is exactly the kind of behavioral detail annotations cannot carry.

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 action and the execution model, then the guidelines flag, then the long-running flow — a sensible order with little filler. Minor redundancy: the guideline contents are listed in both the description and the guidelines parameter's schema text.

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?

For an 11-parameter open-world delegating tool with no output schema, the description covers the execution model, permission implications, billing surface, return values, and the async continuation path. Nothing an agent needs in order to call it correctly is missing, and secondary params (model, effort, persona) are fully documented in the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description earns above that by tying two parameters to an workflow: guidelines toggles the prepended guideline block and wait_seconds bounds blocking before a job_id is returned. That causal link is not spelled out in the schema itself.

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 and resource ("Delegate a task to Perch AI (worker agent) via the official perch CLI") and immediately characterizes the resource: it runs autonomously in a working directory with its own tools. That framing distinguishes it from the sibling polling/status tools, which the description also names.

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 concrete operational guidance: use wait_seconds to bound blocking on long tasks, and poll perch_job_status when a job_id comes back; also explains that guidelines:false disables the prepended guidelines. It stops short of saying when not to delegate (e.g., trivial work better handled inline) or when perch_status beats this tool.

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