Skip to main content
Glama

sage_messages_receive

Receive and atomically claim a bounded message batch; use a caller-generated token to replay the exact same batch after a lost response, preventing duplicate or missed messages.

Instructions

Receive and atomically claim one bounded local message batch. Reusing the same receive_token replays the exact original batch after a lost response and never claims later messages. SAGE signs one exact read acknowledgement per returned message before presenting it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
receive_tokenYesCaller-generated token for this exact receive attempt
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 of behavioral disclosure. It explicitly states atomic claiming, exact replay behavior on token reuse, that it never claims later messages, and that SAGE signs a read acknowledgement per message. This is unusually rich and transparent for a tool with zero annotations.

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 three sentences with the primary purpose front-loaded in the first sentence. Every sentence adds meaningful behavioral detail without redundancy. It is appropriately sized and well-structured.

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?

The description covers the key behavioral aspects (atomic claim, replay, read acks) and is sufficient given the simple schema and absence of an output schema. However, it does not describe error conditions, timeouts, or what a response contains beyond the signed ack, leaving some edge cases unspecified.

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 50% (only receive_token has a description). The tool description adds context for receive_token by explaining its role in replaying the exact batch, but it does not mention the 'limit' parameter at all. The schema's coverage is partial, and the description only partially compensates for the missing limit explanation.

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 begins with a specific verb phrase 'Receive and atomically claim' and identifies the resource as 'one bounded local message batch'. This clearly distinguishes it from sibling tools like sage_message_send, sage_message_reply, and sage_inbox, which handle other aspects of messaging.

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?

The description provides clear context: this tool is used for receiving and claiming a batch of messages with an idempotency token. It explains the replay semantics and the fact that replaying never claims later messages. However, it does not explicitly name alternatives or state when not to use this tool, so it falls short of a 5.

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