market_invoke
Runs a capability found with market_search, returning its result and a hub-signed receipt nonce so the output can be verified; pass only IDs returned by search.
Instructions
Run one capability found with market_search and return its result plus the nonce of the hub-signed receipt, so the result can be checked against the hub's public key. Use only capability_id/product_id/source_hub values market_search returned. Payment: a few free trial invokes per installation (see market_status for what is left), then the prepaid balance of AIMARKET_API_KEY (a key from the hub's /start page, topped up with USDC); listings sold only on chain need x402. When nothing can pay, it says what the call costs and how to pay instead of inventing a result. Side effects are the capability's own: most listings are read-only lookups, but some act (e.g. set a timer that calls back a URL) — read the market_search name first and ask the user before a priced or acting call. To check an answer, use metis_verify instead.
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": {
"capability_id": "<capability_id>"
},
"name": "market_invoke"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | No | The capability's own input, as its listing describes it, e.g. {"city": "Paris"} for weather or {"vat": "NL004495445B01"} for a VAT check; omit or {} when it takes none. | |
| product_id | No | The product_id from market_search, e.g. 'prod-skopos'. Inferred from the capability_id prefix when empty, which is often wrong — pass it. | |
| source_hub | No | The source_hub from market_search, when it showed one. Required for federated capabilities — most of the catalogue; without it the hub looks for the capability locally and answers 404. | |
| capability_id | Yes | Exact capability_id from market_search, e.g. 'skopos.fleet.status@v1'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |