Discover Capabilities
discover_capabilitiesGive a task in plain English and get back the services that can perform it: their price, their input and output schema, what they cost in total, which are essential and which are optional, and the capabilities you asked for that NO service provides. Free, and it never invokes anything.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "discover_capabilities"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | No | What you want to do, in your own words. The Gateway derives the capability requirements from it. | |
| limit | No | How many matches to return. Maximum 25. | |
| budget_usd | No | The most you are willing to spend, in USD. The Gateway reports whether the matched services fit inside it. It never spends. | |
| protocol_preference | No | Preferred protocols (for example 'x402'). Recorded and echoed. | |
| capabilities_required | No | The capabilities you need. When you give this list it IS the requirement set and the Gateway does not second-guess it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | No | The task that was matched. | |
| notes | No | Anything the caller should know about this answer. | |
| matches | No | The catalogue services that can perform the task. | |
| catalogue | No | Which catalogue artefact answered, its sha256 and its service count. | |
| budget_usd | No | The budget that was asked for. | |
| confidence | No | 'high' only when every match carries a measured price and measured latency and nothing is unmet; otherwise 'low'. | |
| match_count | No | How many services matched. | |
| alternatives | No | Other services that cover the same requirement. | |
| budget_status | No | 'within_budget', 'over_budget', 'unknown' or 'not_requested'. | |
| confidence_reason | No | Why the confidence is what it is. | |
| matches_truncated | No | True when more services matched than the limit allowed. | |
| budget_shortfall_usd | No | How much over the budget the matches are, when they are. | |
| missing_capabilities | No | The capabilities the task needs that NO catalogue service provides. Empty when everything the task needs is covered. | |
| recommend_none_reason | No | Why nothing is recommended, when nothing is. | |
| required_capabilities | No | The capabilities the Gateway derived from the task. | |
| estimated_total_cost_usd | No | The sum of the matched prices, or null when at least one price is unknown. Never an estimate. | |
| estimated_total_cost_reason | No | Why the total is what it is. | |
| estimated_total_cost_status | No | 'measured', 'unknown' or 'not_requested'. | |
| required_capabilities_source | No | Where the requirements came from: 'task', 'capabilities_required' or 'none'. |