# Agent Rest Stop – Tool Discovery by Need

> Agent Rest Stop – Tool Discovery by Need is a paid API for AI agents from agent-gas-station.agent-gas-station.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-31).

Searches for available tools/APIs matching a described need, returning relevant tool suggestions for AI agents.

## Facts

- Endpoint: POST https://agent-gas-station.agent-gas-station.workers.dev/v1/DiscoverQuery?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-rest-stop-tool-discovery-by-need-74bbd629
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uoOTawDfSwhSLhcg_ASyx

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 agent-rest-stop-tool-discovery-by-need-74bbd629 -d '<json body>'
```

Example prompt: I need to find a tool that can help me convert audio files to text — search for whatever APIs or services are available for that.

## When to prefer this

Use this endpoint when an AI agent needs to dynamically discover which tool or API to call for a given task, rather than having a hardcoded list. Ideal for meta-agent or orchestration scenarios where the agent must self-select capabilities at runtime based on a natural language description of its need.

## Known failure modes

- Empty or vague 'need' string returns poor or no matches
- Very niche needs may return no results if no matching tools are indexed
- Payment failure (402) if USDC not provided or insufficient balance
- Network timeout if the workers.dev backend is under load

## How this service works

Finds tools by need.

## Output

A list of tools or APIs that match the described need, including their names and descriptions to help an agent select the most appropriate one.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "need": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-rest-stop-tool-discovery-by-need-74bbd629/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-gas-station.agent-gas-station.workers.dev](https://www.zero.xyz/host/agent-gas-station.agent-gas-station.workers.dev/llms.txt)
