Ask for a recommendation
askGet a written answer on which x402, MCP, or A2A services match a task, with ranked candidates and next steps.
Instructions
Get a written answer on which x402 / MCP services best fit a task.
The only tool that returns prose: an LLM writes a short answer grounded
in directory candidates, plus the ranked services it used. Use it when
you want advice; use search / search_all for a plain list, or
recommend for a scored x402 shortlist with payment hints. Rate-limited;
read-only; never pays.
Args:
question: The task, e.g. "translate a document to Japanese under $0.05".
top_k: Max number of recommended services (default 5, max 10).
max_price_usd: Optional upper bound on per-call price in USD.
chain: Optional settlement chain filter (e.g. "base", "solana").
category: Optional category filter (see list_categories).
require_healthy: Only consider services whose latest probe was healthy.
use_llm: Set false for a faster deterministic ranking without the written answer.
Returns:
{query, answer, recommendations, follow_up_questions, llm_used, candidate_count}. Each recommendation has slug, name, url,
why, confidence, next_step and a service_card. answer is
empty when use_llm is false or the LLM is unavailable.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"question": "<question>"
},
"name": "ask"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | ||
| top_k | No | ||
| use_llm | No | ||
| category | No | ||
| question | Yes | ||
| max_price_usd | No | ||
| require_healthy | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||