Skip to main content
Glama

run

Delegate a quick question to a pi agent and wait for its final answer. Use this blocking call for short tasks; prefer spawn for long work.

Instructions

Delegate a task to a pi agent and wait for the final answer. Blocks until done. Prefer spawn for long work; this is for quick questions.

Input Schema

NameRequiredDescriptionDefault
idNoYour own session id for traceability, e.g. "search-audit-01". 1-64 chars of [A-Za-z0-9._:-], must start alphanumeric, must not already be in use. Defaults to a UUID.
cwdNoWorking directory for the agent
labelNoFree-text note shown in `sessions`, e.g. what this delegate is for
modelNoModel as "provider/modelId", e.g. "openrouter/stealth/ox-alpha"
toolsNoTool allowlist for this delegate. [] disables all tools. Omit for defaults: read, grep, find, ls. Permitted on this server: read, grep, find, ls.
promptYesThe task for the pi agent
extensionsNoLoad pi extensions for this delegate. Off by default; they add startup cost and can misbehave.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.1
    • changedInput schema / properties / tools / description
      Previous value: -"Tool allowlist for this delegate. Default: read, grep, find, ls. Permitted on this server: read, grep, find, ls."New value: +"Tool allowlist for this delegate. [] disables all tools. Omit for defaults: read, grep, find, ls. Permitted on this server: read, grep, find, ls."
  2. First observedv0.1.0

TDQS

A4.4/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 burden, and it discloses the most consequential trait: the call blocks until the delegate finishes, and it returns the final answer. It does not cover failure/timeout behavior, cost, or isolation of the delegate, which leaves some gaps for an unattended blocking call.

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?

Three short sentences, zero waste, and the blocking constraint plus the routing guidance are front-loaded. Every sentence conveys a decision-relevant fact.

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 7-parameter delegation tool with full schema coverage and no output schema, the description supplies the missing return semantics ('final answer') and the blocking contract, which the schema cannot express. Minor gap: no mention of what happens on delegate failure or timeout.

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 all seven parameters (including id, tools allowlist, extensions, model) are already documented in the schema. The description adds no syntax or format meaning beyond that, so the baseline of 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 ('Delegate a task to a pi agent') and clarifies the interaction model ('wait for the final answer'), then explicitly differentiates itself from the `spawn` sibling. An agent can distinguish this from spawn, spawn_batch, and follow_up without opening any schema.

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

Usage Guidelines5/5

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

Names the alternative (`spawn`) and the exact condition that selects it ('long work') versus the condition for this tool ('quick questions'). This is an explicit when/when-not/alternative statement, which is the top of the scale.

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