Skip to main content
Glama

Send a task to an agent

send_message

Send a task or message to an OpenBot agent and optionally wait for its reply; skip waiting to get a delivery ID immediately.

Instructions

Send a message to an OpenBot agent through its normal conversation queue. wait=true returns the agent's answer (or what it needs from a person); wait=false returns the deliveryId at once. Counts toward the agent's hourly limit (30 by default). Attachments are not supported.

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": {
      "agent": "<agent>",
      "text": "<text>"
    },
    "name": "send_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe message / task for the agent.
waitNoWait for the turn to end. Default false.
agentYesAgent ID or agent name (case-insensitive), as list_agents shows it.
timeoutSecondsNoHow long to wait. Timing out stops only the wait; the agent keeps working.
clientMessageIdNoRetry key. Reuse the same key when retrying the same message (deduplicated for 24h); omit for new work.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the hourly rate limit (30 by default), the fact that attachments are unsupported, and how waiting behaves, including that a timeout does not stop the agent's work. These are exactly the operational constraints an agent needs before calling a non-read-only, non-idempotent tool.

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?

Four short sentences, front-loaded with the core action, then mode behavior, then limits and the attachment caveat. No sentence is redundant and nothing is buried.

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?

With no output schema, the description carries the return-value burden and does so for both wait modes, plus quota and attachment constraints. A minor gap is not explaining what to do with the returned deliveryId or how errors surface.

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 baseline is 3, but the description adds outcome-level meaning the schema lacks: what wait=true actually returns (an answer or a human-input request) versus wait=false returning a deliveryId. It does not elaborate on clientMessageId deduplication or timeoutSeconds bounds, which the schema already covers.

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 verb (send) and resource (message to an OpenBot agent) plus the delivery mechanism (normal conversation queue), so the operation is unambiguous. It does not explicitly contrast with the sibling send_to_agents, leaving the agent to infer the difference from names alone.

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?

Clearly explains the two operating modes: wait=true to get the agent's answer or its request for human input, wait=false to get a deliveryId immediately. What is missing is an explicit next step (e.g., use get_delivery or wait_for_delivery to collect the result when not waiting).

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