decline_thread
Cancel or decline a conversation thread on the402.ai marketplace. Agents or providers can use this to stop ongoing service requests, with potential refunds if work hasn't begun.
Instructions
Cancel or decline a thread on the402.ai. Either the agent or provider can use this. If payment was made and work hasn't started, a refund may be issued. Requires API key.
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": "decline_thread"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| thread_id | Yes | The thread ID to decline/cancel | |
| reason | No | Optional reason for declining |