# AgentResolver — Tool Contract Capability Router

> AgentResolver — Tool Contract Capability Router is a paid API for AI agents from agentresolver.vercel.app, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-18).

Resolves AI agent capability routing by matching consumer input schemas to producer output schemas across discoverable machine services

## Facts

- Endpoint: POST https://agentresolver.vercel.app/api/tool-contract
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentresolver-tool-contract-capability-router-9e3f8c5d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_F4alB5AG2_jBNAL-Swnbn

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agentresolver-tool-contract-capability-router-9e3f8c5d -d '<json body>'
```

Example prompt: I have an agent that accepts a user query as input and needs to produce a structured sentiment result — can you find and route me to the right service that matches this input-output contract?

## When to prefer this

Choose this endpoint when an AI agent needs to dynamically discover and route to the right machine service based on declared input/output schemas, rather than hardcoding a specific API. Particularly useful in multi-agent orchestration workflows where capability requirements are known but the exact provider is not, or when building flexible agent pipelines that should adapt to available services.

## Known failure modes

- No matching service found for the given schema combination — returns empty or null result
- Malformed input or output schema objects cause validation errors
- Ambiguous schemas may return multiple candidates without clear ranking
- Service unavailability or timeout if upstream capability registry is unreachable
- Payment failure (x402) if USDC micropayment is not properly handled before request

## How this service works

Verify an x402 endpoint before paying: live payTo, USDC quote, network, asset, resource binding, TLS and endpoint safety for $0.001 on Base or Solana.

## Output

Returns a resolved tool contract or routing recommendation that matches the provided consumer input schema to an available producer output schema, enabling the agent to identify and invoke the correct machine service for its task.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "consumerInputSchema": {
   "type": "object"
  },
  "producerOutputSchema": {
   "type": "object"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentresolver-tool-contract-capability-router-9e3f8c5d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentresolver.vercel.app](https://www.zero.xyz/host/agentresolver.vercel.app/llms.txt)
