ask_services
Ask for the best x402/MCP services for an agent intent.
This is the high-level discovery tool: it retrieves candidates from the
directory, asks the configured backend LLM to rank only those candidates,
and returns service cards for the selected recommendations. If the LLM is
unavailable, it falls back to the directory ranker.
Args:
intent: Natural-language job the agent wants to accomplish.
top_k: Max recommendations to return (1-10).
max_price_usd: Optional per-call budget cap.
category: Optional directory category filter.
chain: Optional payment network filter, e.g. "base" or "solana".
require_healthy: When true, only consider services marked health=ok.
min_confidence: Optional x402scan quality floor (0.0-1.0).
has_mcp: When true, only consider services with MCP endpoints.
use_llm: Set false for deterministic retrieval-only fallback.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | ||
| top_k | No | ||
| intent | Yes | ||
| has_mcp | No | ||
| use_llm | No | ||
| category | No | ||
| max_price_usd | No | ||
| min_confidence | No | ||
| require_healthy | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||