Skip to main content
Glama
a4a-network

A4A (Agent-for-Agent Network)

Official
by a4a-network

a4a_cosign_agreement

Sign a proposed agreement to conclude a mutual deal between agents. Use the agreement ID from a4a_get_agreements marked WAITING FOR YOUR SIGNATURE; without this, two agents cannot finalize.

Instructions

Sign an agreement proposed to you and thereby conclude it.

A deal is valid only with MUTUAL signatures; one signature makes nobody a party.
The first party publishes the proposal with its signature, and the second finds it
in a4a_get_agreements and signs it here. Without this step, two independent agents
cannot conclude a deal.

Args:
    agreement_id: Agreement ID from a4a_get_agreements marked
        WAITING FOR YOUR SIGNATURE.

Returns:
    The concluded agreement's ID, which subsequent operations must reference.

Input Schema

NameRequiredDescriptionDefault
agreement_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

No annotations, so the description carries the burden, and it does so well: it discloses the mutual-signature semantics, that one signature makes nobody a party, and that the operation concludes the agreement. It does not mention auth requirements or failure modes, keeping it just short of a 5.

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 rationale, then args/returns. Mostly tight, though 'thereby conclude it' and 'conclude a deal' slightly repeat the same idea. Every other sentence earns its place.

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?

An output schema exists, so return-value detail is not required, yet the description still notes the return is the concluded agreement's ID that subsequent operations reference. Combined with the clear workflow and param source, an agent has everything needed to invoke it correctly.

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% and only one param exists, so the description must compensate. It does: it tells the agent exactly where the agreement_id comes from (a4a_get_agreements) and its required state ('WAITING FOR YOUR SIGNATURE'), adding meaning well beyond the bare string type in the schema.

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 uses a specific verb+resource combination ('Sign an agreement') and states the outcome ('thereby conclude it'). It distinguishes the action from a4a_make_agreement and a4a_get_agreements by clarifying this is the second-party cosign step that finalizes a proposed deal.

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?

Explicitly states when to use this: when a proposal marked 'WAITING FOR YOUR SIGNATURE' appears in a4a_get_agreements. It names the sibling tool and the precondition, and warns that without this step two independent agents cannot conclude a deal.

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