Skip to main content
Glama

post_to_capability

Route an FYI or coordination message to the current owner of a capability by exact-match tag, removing the need to know the recipient. Recipients read it via the capability message lane.

Instructions

Route an FYI/coordination message to the current owner(s) of a capability (v2.10 — capability routing, principle #1).

When to use: surface a finding, status, or cross-cutting update to whoever owns a domain WITHOUT knowing their name — e.g. an ad-hoc agent tags a 'relationships' finding and the agent that owns that capability picks it up on its next get_messages. FYI/COORDINATION LANE ONLY: action-required completions (a STAGED build needing an audit, a SHIP that triggers a merge) MUST stay point-to-point completion reports via send_message — that point-to-point reliability is what triggers the orchestrator's next action. A capability-routed message never triggers an action.

Behavior: exact-string matches capability against every registered agent's declared capabilities (same lookup as post_task_auto), then fans the message out — one messages row per owner, stamped with routed_capability so recipients + dashboards distinguish the FYI lane from point-to-point mail. Recipients drain via the normal get_messages (use lane='capability' to read only the FYI lane, lane='direct' for only point-to-point). The sender is excluded by default (exclude_self). No current owner → routed_to:[] and nothing stored (fire-and-forget to current owners, NOT queued-until-owner). Fires one message.capability_routed webhook for the batch. Content encrypted at rest if RELAY_ENCRYPTION_KEY is set; same payload cap as send_message.

Returns: { success: true, capability, routed_to: string[], message_ids: string[], count, note }. routed_to is empty (with an explanatory note) when no agent currently owns the capability.

Errors: AUTH_FAILED, SENDER_NOT_REGISTERED, PAYLOAD_TOO_LARGE, RATE_LIMITED, VALIDATION.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fromYesSender agent name
contentYesFYI/coordination content (max 64KB by default; see RELAY_MAX_PAYLOAD_BYTES)
priorityNoMessage prioritynormal
capabilityYesThe single domain/capability tag to route on (exact-match against registered agent capabilities)
agent_tokenNoYour agent token (from register_agent response). Optional here — also resolvable from RELAY_AGENT_TOKEN env or X-Agent-Token header.
exclude_selfNoWhen true (default), the sender is excluded from recipients even if it owns the capability.
Behavior4/5

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

No annotations are provided, so the description carries full responsibility for behavioral disclosure. It does well: explains exact-match lookup behavior, fan-out semantics (one row per owner with routed_capability stamp), fire-and-forget (NOT queued-until-owner, no owner → routed_to:[] and nothing stored), webhook firing, encryption-at-rest conditionality, the exclude_self default behavior, and the distinction from point-to-point triggering. It even discloses the return shape. The only minor gap is no explicit side-effect/airtable-style side effect discussion, but the fire-and-forget disclosure is thorough.

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?

The description is well-structured with clear labeled sections (When to use, Behavior, Returns, Errors) and front-loaded purpose. Despite covering considerable ground, every sentence earns its place — no filler. The section headers make it scannable for an agent parsing behavior quickly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's moderate complexity (6 params, routing semantics, ambiguous lane behavior), the description is remarkably complete. It explains the return contract, error conditions, edge cases (no owner), auth resolution paths, encryption behavior, and how recipients read messages. Since there's no output schema, the explicit Returns section covers that gap well. No significant missing information for correct invocation.

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 the baseline is 3. The description adds modest value: it clarifies the lane semantics for reading recipients (lane='capability'), explains exclude_self's default behavior, and references RELAY_ENCRYPTION_KEY/RELAY_MAX_PAYLOAD_BYTES context. However, most parameter meaning is already well-documented in the schema itself, so the description doesn't dramatically elevate beyond baseline.

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?

The description clearly states what the tool does: routes an FYI/coordination message to the current owner(s) of a capability. It uses a specific verb+resource construction ('Route... to the current owner(s)') and explicitly distinguishes it from send_message (point-to-point) and post_task_auto (task posting), showing clear sibling differentiation within the same messaging family.

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?

The description gives excellent when-to-use guidance: 'surface a finding, status, or cross-cutting update to whoever owns a domain WITHOUT knowing their name.' It explicitly states what should NOT use this tool (action-required completions MUST stay point-to-point via send_message, noting the reliability trigger implication) and names the alternative (send_message). This is exemplary usage guidance with explicit exclusions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Maxlumiere/bot-relay-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server