Skip to main content
Glama

Send Prompt to Agent

agent_prompt

Submit a prompt to an idle or completed terminal agent using bracketed paste and Enter, optionally waiting for idle, done, or blocked; requests are rejected immediately if an approval dialog is open.

Instructions

Submit a prompt with bracketed paste + Enter to an idle/done agent. Rejects immediately with 'agent_blocked' if the agent is waiting on an approval dialog. Set wait=true to block until the agent settles into idle, done, or blocked.

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_prompt"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesPrompt text to submit to the agent.
waitNoWait for the agent to finish its turn (reach idle, done, or blocked). Default false.
untilNoOptional explicit target states after wait=true; omit to use Herdr defaults (idle, done, blocked).
targetYesUnique live agent name or hosting pane ID (for example 'reviewer' or 'w1:p2').
timeout_msNoTimeout in milliseconds when wait=true (default 120000).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.1

TDQS

A4/5.0
Behavior4/5

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

Beyond the annotations (which only declare non-readOnly, non-idempotent, non-destructive), the description discloses the exact failure mode and error string ('agent_blocked'), the paste-plus-Enter delivery, and what wait=true blocks on. It does not say what a successful call returns or whether submitted text is preserved when blocked.

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 tight sentences, front-loaded with the mechanism and precondition, followed by the rejection case and the wait option. No filler and nothing repeated.

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 five-parameter mutating tool with annotations but no output schema, the description covers precondition, failure mode, and blocking semantics well. The remaining gap is what a successful call returns and any constraints on prompt content or size.

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%, so the schema already documents all five parameters including wait, until, and timeout_ms defaults. The description only restates the wait behavior (settle into idle, done, or blocked) at a high level, adding little 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?

The description gives a specific verb (submit a prompt), the target resource (an agent), and the delivery mechanism (bracketed paste + Enter), plus a precondition (idle/done agent). It does not explicitly contrast itself with near siblings like agent_send_keys or pane_send_text, so the differentiation is only implicit.

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?

It states a clear usage context: the agent must be idle/done, and the call is rejected when the agent is waiting on an approval dialog. That is useful routing information, but there is no explicit statement of when to prefer a different sibling tool instead.

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