Skip to main content
Glama

Dispatch Prompt, Wait & Read Agent Output

agent_dispatch_and_read

Submit a prompt to a Herdr agent, wait for it to settle, then return its final status and terminal output in one call.

Instructions

High-level one-shot helper for Gemini: submit a prompt to a Herdr agent, wait until it reaches a settled state (idle, done, or blocked), and immediately return both its final status and unwrapped terminal output.

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": {
      "target": "<target>",
      "text": "<text>"
    },
    "name": "agent_dispatch_and_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesPrompt text to submit to the agent.
linesNoNumber of output lines to read back upon completion (default 200).
sourceNoOutput snapshot source (default 'recent-unwrapped').
targetYesUnique live agent name or hosting pane ID (for example 'reviewer' or 'w1:p2').
timeout_msNoMaximum wait time in milliseconds (default 300000 = 5 minutes).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.1

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and idempotentHint=false, so the mutating and non-repeatable nature is covered structurally. The description usefully adds the settled-state semantics (idle, done, or blocked) and the return content, but omits critical blocking behavior: what happens when timeout_ms (default 5 min) expires, whether the call errors or returns a partial status, and what the unwrapped output excludes.

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?

A single dense sentence that front-loads the framing and then walks through the three phases in order, with no filler. Minor inefficiency: 'for Gemini' is audience context rather than tool information and could be dropped.

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?

With no output schema, the description does its job of saying the return comprises final status plus unwrapped output, which is the key missing piece. But for a long-blocking composite tool it leaves error and timeout outcomes unexplained, which an agent needs in order to decide whether to call it or fall back to the primitive siblings.

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% and all five parameters carry their own descriptions, including defaults for lines, source and timeout_ms, so the baseline is 3. The description only touches parameters indirectly via 'unwrapped terminal output' matching the default 'recent-unwrapped' source, adding essentially no semantics beyond the schema.

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 specific compound action on a specific resource: submit a prompt to a Herdr agent, wait for a settled state, and return status plus terminal output. The phrase 'one-shot helper' signals this bundles the step-by-step siblings (agent_prompt / agent_wait / agent_read) without naming them, so the distinction is clear but not explicit.

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?

'High-level one-shot helper' implies you use it when you want dispatch, wait and read in a single call rather than composing primitives, which is a reasonable implied usage rule. However, it never states when NOT to use it (e.g. when you need non-blocking behavior or incremental polling) and names no alternative tool for those cases.

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