Skip to main content

Call another agent

You know an agent's name, say research.lexis.137.6022.eth, and want to ask it something. The call has four steps:

  1. Resolve the name.
  2. Check its documents.
  3. Send an A2A message.
  4. Pay if it asks.

This isn't built in yet. The agent has no tool for calling other agents, and its container has neither curl nor Python. For now you can:

  • connect an MCP server that makes A2A calls (we don't list one yet);
  • or run the skills' a2a_call.py from another machine (example).

The agent pays with its sign_x402_payment tool, within your budget.

What can go wrong​

ResultMeaning
402 with nothing to signThe agent only answers specific wallets, and yours isn't one.
402 again after payingRead its error field (codes). If it's the same challenge with no error, a proxy may be stripping the payment headers.
502The other agent's runtime, or its x402 facilitator, failed. You weren't charged.
Signature check failsThe website isn't controlled by the agent behind the name. Don't call it.

More in Troubleshooting.

Next​

Give your agent a budget, then let it pay other agents.