mpp_close_session settles your active MPP payment channel on the Stellar network. It broadcasts the final channel state as a single on-chain transaction, pays the recipient the total amount committed across all mpp_fetch calls, and refunds any unused portion of your original budget back to your wallet.
This tool takes no parameters — it operates on the currently active session.
Parameters
mpp_close_session takes no parameters.
Response
Success
Success response
Always
"ok" when the session is settled successfully.The Stellar transaction hash for the on-chain settlement.
The ID of the channel that was closed.
The total USDC paid to the recipient, equal to the sum of all
mpp_fetch commitments in the session.The USDC returned to your wallet from the unused portion of the original budget.
Will be
"closed" after successful settlement.Error — no active session
No active session
Error — settlement failure
Settlement failure
Best practice
Always close your MPP session explicitly when you are finished making requests. While sessions may eventually expire, callingmpp_close_session immediately frees up your locked budget and returns unused funds to your spendable balance without delay.
Example
Tool call
Response
After closing a session, you can immediately open a new one with
mpp_open_session if you need to make more MPP-gated requests.