ask_services
ActiveTool of agent-tools (x402 + MCP + A2A directory)
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.
Parameters schema
{
"type": "object",
"title": "ask_servicesArguments",
"required": [
"intent"
],
"properties": {
"chain": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Chain",
"default": null
},
"top_k": {
"type": "integer",
"title": "Top K",
"default": 5
},
"intent": {
"type": "string",
"title": "Intent"
},
"has_mcp": {
"type": "boolean",
"title": "Has Mcp",
"default": false
},
"use_llm": {
"type": "boolean",
"title": "Use Llm",
"default": true
},
"category": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Category",
"default": null
},
"max_price_usd": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Max Price Usd",
"default": null
},
"min_confidence": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Min Confidence",
"default": null
},
"require_healthy": {
"type": "boolean",
"title": "Require Healthy",
"default": true
}
}
}Parent server
agent-tools (x402 + MCP + A2A directory)
https://github.com/AgentTools-Cloud/AgentToolsCollection
1/7 registries