Get payment result
get_payment_resultRead the result of a paid call, by its paymentId. Use it when pay_service answered {"status":"pending"} (the service was still working when the Router stopped waiting — a payment was attempted, the call keeps running and its outcome is not known yet), or to recover a result whose response you lost. Reading costs nothing and charges nothing. Every answer with a state carries payment.status. state: "Pending" — still running, call again in a few seconds. state: "Ready" — status is the service's HTTP status and body its response (bodyEncoding says whether it is parsed JSON, text, or base64). state: "Failed" — the call ended without a response; failureReason says why. That does not prove nothing was charged, so check deliveryStatus in list_payments before paying again. {"status":"not_available"} — nothing to return: results are kept for 24 hours for the account that paid, and only then. {"status":"not_retained"} — the service is a partner API whose licence forbids keeping a copy of its answers, so no result of it is ever stored: its answer went only to the original pay_service call, and reading again will not change that. Do NOT call pay_service again to get a pending result: that does not return a new one. A paid body that is binary (audio, images, PDFs) or whose JSON form is larger than this server's inline limit is not inlined once the Router is confirmed to have kept the result: bodyOmitted comes instead, and it does NOT mean the body is empty. It gives the contentType, the sizeBytes and how to get the bytes: contentUrl to download with your API key (see its instructions), or the MCP resource resourceUri, also sent as a resource_link content block, read with the credential you send to this server. Fetching it charges nothing; do not pay again to get it. Pass inline: true to get such a body in the result anyway, at its full size. Requires your Nevermined API key on the Authorization header.
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": {
"paymentId": "<paymentId>"
},
"name": "get_payment_result"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inline | No | Return the body in the result even when it is binary or larger than the inline limit, as base64 for binary. It can be very large (a paid audio file is hundreds of thousands of characters) and fill your context: set it only when you cannot fetch the body by `contentUrl` or `resourceUri`. | |
| paymentId | Yes | The `paymentId` a pay_service result returned. |