mpp_fetch fetches an MPP-gated URL by committing a payment against your active payment channel. Unlike x402_fetch, this does not broadcast a Stellar transaction on every call — instead, the Hub advances the channel state off-chain. All committed amounts are settled in a single on-chain transaction when you call mpp_close_session.
This makes mpp_fetch ideal for high-frequency, low-cost API calls where submitting a Stellar transaction per request would be impractical.
Prerequisites
You must have an active MPP session before callingmpp_fetch. Open one with mpp_open_session. If no session is open when you call mpp_fetch, the tool returns an error immediately without making any network request.
Parameters
The MPP-gated URL to fetch. Must be a valid HTTP or HTTPS URL. The server at this URL must support the MPP payment protocol and accept channel payment proofs from the Hub.
Response
Success
Success response
Always
"ok" on success.The response body returned by the MPP-gated server.
The USDC amount committed to the channel for this specific call.
How much USDC remains in the channel budget after this commitment.
The ID of the active channel used for this request.
Error — no active session
No active session
Error — budget exhausted
Budget exhausted
Example
Tool call
Response