Skip to main content
Glama

hub_queue_send

Append a message to a role's queue for cross-agent or cross-node handoffs, delivering it to that role's queue reader.

Instructions

Append a message to a role's queue (queues/..queue.md) for cross-agent/cross-node handoffs. Delivered to whoever calls hub_queue_wait (or hub queue wait) for that role, here or on a mesh-synced peer node. Prose, not cargo: over 16 KB, or carrying a base64/hex run over 2 KB, a git diff, a git bundle or a PEM block, it is refused — put the artifact in a file and send its path, size and sha256. Refused too while the role already holds 50 unread messages or 256 KB: its reader is behind, check it before sending more. And refused when the queue has no reader at all (never read anywhere, nobody of the role present, no role on record), unless new_reader; the owner and broadcast queues never are.

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": {
      "role": "<role>",
      "text": "<text>",
      "from": "<from>"
    },
    "name": "hub_queue_send"
  }
}

Input Schema

NameRequiredDescriptionDefault
fromYeswho is sending — the function you are performing, e.g. "dev-hubd" or "orchestrator". NOT which model you are, and NOT the target role. Required like every other write: the delivered block says "from <sender>" forever.
roleYesqueue/role to deliver to, e.g. "dev" or "owner"
taskNothe task id this message is ABOUT, if any. Stamped into the delivered block and handed back to the consumer, so a reply (a blocker, a HOLD, a result) can be reported onto the task instead of being lost with the message. A bare number that names one task is stamped as that task's whole id (taskAsGiven keeps what you sent). An id matching no task comes back as taskKnown:false — the ref is still recorded.
textYes
new_readerNotrue for a role whose first session is about to start: a send to a queue with no sign of a reader (never read on any node, no session present, no role on record) is otherwise refused

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.9.90
    • addedInput schema / properties / new_reader
      Added value: +{
      +  "description": "true for a role whose first session is about to start: a send to a queue with no sign of a reader (never read on any node, no session present, no role on record) is otherwise refused",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changedv0.9.88
    • changedInput schema / properties / task / description
      Previous value: -"the task id this message is ABOUT, if any. Stamped into the delivered block and handed back to the consumer, so a reply (a blocker, a HOLD, a result) can be reported onto the task instead of being lost with the message. An id matching no task comes back as taskKnown:false — the ref is still recorded."New value: +"the task id this message is ABOUT, if any. Stamped into the delivered block and handed back to the consumer, so a reply (a blocker, a HOLD, a result) can be reported onto the task instead of being lost with the message. A bare number that names one task is stamped as that task's whole id (taskAsGiven keeps what you sent). An id matching no task comes back as taskKnown:false — the ref is still recorded."
  3. Changed2 schema fields changedv0.9.0
    • changedInput schema / properties / role / description
      Previous value: -"queue/role to deliver to, e.g. \"zaika\" or \"owner\""New value: +"queue/role to deliver to, e.g. \"dev\" or \"owner\""
    • addedInput schema / properties / task
      Added value: +{
      +  "description": "the task id this message is ABOUT, if any. Stamped into the delivered block and handed back to the consumer, so a reply (a blocker, a HOLD, a result) can be reported onto the task instead of being lost with the message. An id matching no task comes back as taskKnown:false — the ref is still recorded.",
      +  "type": [
      +    "integer",
      +    "string"
      +  ]
      +}
  4. Addedv0.5.0

TDQS

A4.1/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 behavioral burden and does much of it: payload limits (16 KB prose, >2 KB base64/hex runs, git diff/bundle/PEM rejected), backpressure thresholds (50 unread / 256 KB), and the no-reader refusal with its new_reader escape hatch. What it omits is the success side — what a send returns (message id? ack token?), whether it is idempotent, and whether retry after a refusal is safe.

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 core action, then limits, then refusals — a sensible order, and every clause carries information. The telegraphic run-on sentences ('Prose, not cargo: over 16 KB, or carrying...') are dense enough to slow parsing, which costs it a point.

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 5-parameter mutation tool with no annotations and no output schema, the description covers delivery path, size/content limits, backpressure and the reader-existence guard. The remaining gap is the return contract and any permission/ownership constraints on who may send as a given 'from', which an agent needs before retrying or chaining.

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 80%, so the schema already documents from, role, task and new_reader in depth; the description mostly restates the delivery/refusal semantics those parameters trigger. It does add useful framing (role maps to a queue file name, refusal conditions keyed to new_reader), but that is marginal over an already well-described schema. Baseline 3 is appropriate.

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 concrete verb+resource ('Append a message to a role's queue') and even names the backing file path (queues/<role>.<node>.queue.md), plus the consumer (hub_queue_wait). An agent can distinguish this from hub_inbox, hub_report, or hub_agenda 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 Guidelines4/5

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

It names the counterpart tool that drains the queue and spells out three concrete conditions under which a send is refused, which effectively tells the agent when this tool will not work. It does not compare against other messaging-ish siblings (hub_inbox, hub_report) or state positively when to prefer queueing over those, leaving that inference to the agent.

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