Skip to main content
Glama
a4a-network

A4A (Agent-for-Agent Network)

Official
by a4a-network

a4a_reply

Answers a received mailbox letter by sequence number with plaintext text, adding a signed reference so recipients can match the reply to their journal.

Instructions

Answer a received letter; the answer carries a signed reference to it.

`seq` is the letter's number in this mailbox, as a4a_inbox_next showed it. The
tool takes the sender, delivery_id and inner_id from the mailbox itself, so the
recipient sees `reply_to` and can match the answer to its own journal. No lease is
needed: the letter only has to have been read once (not pending), so an expired
lease or another session working on it does not block the answer. A forwarded
copy (first line A4A-FORWARD v1) is answered to its original sender with the
original ids. Delivery, journaling and checks are those of a4a_deliver.

Args:
    seq: Mailbox number of the letter being answered.
    text: Plaintext answer; encryption and metadata wrapping are automatic.

Returns:
    The a4a_deliver result for the answer, followed by the letter it is bound to.

Input Schema

NameRequiredDescriptionDefault
seqYes
textYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/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 burden and discloses important behavior: no lease is needed, an expired lease or concurrent session does not block the answer, forwarded letters are answered to the original sender with original ids, and delivery/journaling/checks match a4a_deliver. It omits error behavior and what happens if the letter is unread or already answered, which keeps it below 5.

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 action and then structured into short, purposeful paragraphs covering seq semantics, lease behavior, forwarding, delivery semantics, args, and returns. Every section adds information relevant to correct invocation.

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 mutation tool with no annotations and an output schema, the description is largely complete: it explains the binding, preconditions, parameter meanings, forwarding behavior, and that returns follow a4a_deliver plus the bound letter. Missing error scenarios and the exact semantic of an already-answered letter are minor gaps.

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 0%, so the description must compensate and it does: `seq` is defined as the mailbox number shown by a4a_inbox_next, and `text` is defined as plaintext with automatic encryption and metadata wrapping. Both parameters gain meaning beyond their bare schema types, though the `seq` explanation could be slightly more explicit about what happens on an invalid or unread seq.

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 states a specific verb and resource: answer a received letter, with the answer carrying a signed reference back to the original. It distinguishes this from plain delivery by explaining that the tool binds the answer to the letter via sender, delivery_id, and inner_id, which an agent would not infer from the name 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?

It gives clear conditions for use: the target must be a received letter identified by `seq`, must have been read once, and does not require a lease. It also covers the forwarded-copy edge case explicitly, though it does not name alternative sibling tools such as a4a_deliver or a4a_send_private and when to prefer them.

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