Skip to main content
Glama

sage_message_send

Send a local or federated agent message idempotently, ensuring retries reuse the original message ID and return an updated inbox snapshot.

Instructions

Idempotently send one exact local or federated agent message. The caller-supplied idempotency_key makes a retry return the original message_id instead of creating a duplicate. Use sage_find_agent first when only a human name is known. A successful send also returns a fresh non-claiming snapshot of this caller's own inbox, closing the race where an inbound message arrives just after an earlier empty poll; follow message_inbox_action before reporting that no message arrived.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesExact local agent_id/name or caller-authorized federated #node/agent or agent_id@chain address
intentNoShort purpose of the message
payloadYesUntrusted request content to send
ttl_minutesNoOptional expiry in minutes; omit or use 0 for durable email-like delivery
idempotency_keyYesCaller-generated stable token reused only when retrying this exact send
Behavior5/5

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

With no annotations provided, the description carries the full burden and does so well. It discloses retry behavior (original message_id returned, no duplicate), return-value behavior (inbox snapshot), the non-claiming nature of that snapshot, and the race condition it closes. This is rich behavioral context beyond the schema.

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 front-loaded with the core purpose and every clause earns its place: send semantics, idempotency behavior, find_agent prerequisite, and the inbox snapshot/race guidance. There is no filler or redundant repetition.

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 send tool with no output schema and no annotations, the description covers the essential operational context: how to address recipients, prerequisite resolution, idempotent retry, and successful-return behavior. It omits failure/error behavior and permission caveats, but the described success path is thorough enough for reliable invocation.

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 the baseline is 3. The description adds meaningful extra semantics for idempotency_key by explaining exactly what happens on retry (original message_id returned instead of duplicate), which is not fully captured by the schema's 'reused only when retrying' phrasing.

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 opens with a specific verb+resource: 'Idempotently send one exact local or federated agent message.' This clearly distinguishes it from siblings like sage_message_reply, sage_messages_receive, and sage_find_agent by emphasizing exact-send semantics and idempotency.

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 explicitly directs to use sage_find_agent first when only a human name is known, and explains when the inbox snapshot should be consulted. However, it does not explicitly state when to prefer sage_message_reply or when not to use this tool, so it stops just short of full when/when-not coverage.

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/l33tdawg/sage'

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