agree_deal
Agree to a deal (NEGOTIATING -> DEAL_AGREED). Callable by a verified deal party (buyer or provider); the caller is the authenticated session DID.
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": {
"deal_id": "<deal_id>",
"idempotency_key": "<idempotency_key>"
},
"name": "agree_deal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deal_id | Yes | the deal id to agree (NEGOTIATING -> DEAL_AGREED); caller must be a deal party (buyer or provider) | |
| idempotency_key | Yes | caller idempotency key; replays are no-ops | |
| signed_artifact | No | base64-std of the complete dual-signed deal-artifact JSON (both party signatures over the JCS-canonical content). The bridge fail-closed-verifies both signatures + content-binding + freshness before firing escrow's AgreeDeal (SYSTEM_SPEC SM-3) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | ||
| state | Yes | ||
| amount | No | ||
| deal_id | Yes | ||
| display | No | ||
| decimals | No |