Skip to main content
Glama

x402-mcp

agent_context_relay

Secure cross-agent encrypted state relay & memory handoff using AES-256-GCM authenticated encryption with TTL and ACL. Requires $0.05 USD fee. [Price: $0.05 USD]

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "agent_context_relay"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionNoContext relay operation
payloadNoState data payload to encrypt and store
stateKeyNoUnique key within the session
sessionIdNoShared swarm/pipeline session ID
ttlSecondsNoTime-to-live expiration in seconds
paymentProofNox402 payment proof object
readerAgentIdNoReader agent ID for retrieval
writerAgentIdNoAuthor agent ID
readerAgentIdsNoAllowed reader agent IDs or ["*"]
customPassphraseNoOptional custom encryption key

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden; it does contribute real value by naming the cipher (AES-256-GCM authenticated encryption), TTL expiry, ACL-based reader restriction, and a paid x402-style fee. It still omits key behaviors: what revoke does to stored payloads, what retrieve returns, whether TTL expiry destroys data, idempotency of repeated store calls, and how payment proof failures are surfaced.

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?

Two compact sentences with the capability front-loaded and security properties immediately after. The trailing '[Price: $0.05 USD]' duplicates the preceding sentence, which is the only real waste.

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

Completeness2/5

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

For a 10-parameter, three-action, nested-object tool with no annotations and no output schema, the description is thin. It never explains the action lifecycle, the payment requirement mechanics, default TTL behavior, or what a caller gets back on retrieve — all of which the description is the only place to learn.

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 no parameter-level meaning beyond the schema — it does not explain the action enum semantics, the interaction between customPassphrase and the default AES key, how paymentProof must be formed, or how ttlSeconds defaults when omitted.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific capability: encrypted cross-agent state relay and memory handoff, with named mechanisms (AES-256-GCM, TTL, ACL). An agent can tell what the tool does, but nothing distinguishes it from siblings like agent_state_checkpoint_vault or swarm_semantic_cache, and the store/retrieve/revoke lifecycle is never surfaced.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase 'cross-agent ... handoff' implies the usage scenario (passing context between agents in a swarm/pipeline), and the $0.05 fee is disclosed as a call precondition. However there is no explicit when-to-use vs. when-not guidance, no mention of which sibling to prefer, and nothing about when a caller should store, retrieve, or revoke.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources