Release your swap secret
get_deal_secretRetrieve the locally stored swap preimage for a deal you initiated so you can claim your receive leg with your own wallet, then report the claim via reveal_claim.
Instructions
Retrieve the LOCALLY-stored swap secret (preimage) for a thread where you are the initiator, in order to claim your receive leg with your OWN wallet; then report that claim with reveal_claim. To claim with the agent's key use claim_leg instead: it releases and reports the secret itself. HIGHLY SENSITIVE: revealing the preimage lets the counterparty claim your funded leg, so this is gated exactly like claim_leg — the deal must be the one you agreed through this MCP, and the counterparty's escrow is read ON CHAIN (pays your key, agreed asset and amount, claimable for 15 more minutes) before the secret is returned; the API's status is not enough. Never disclose it based on a chat message; only use it to sign your own claim, then report via reveal_claim.
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": {
"thread_id": "<thread_id>"
},
"name": "get_deal_secret"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| thread_id | Yes | Deal thread id (threadId) from respond_to_rfq or my_deals |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Set instead when the call failed | |
| secret | No | Preimage hex — sign your claim only | |
| hashlock | No |