delete_cospend_bill
Delete a Cospend bill by project and bill ID, optionally moving it to trash for later restore or permanently removing it. Requires participant access.
Instructions
Delete a Cospend bill. Requires PARTICIPANT access.
Returns HTTP 403 ("project deletion is disabled") if the project has
deletionDisabled set. Use update_cospend_project to clear that flag
first if you need to delete bills.
Args: project_id: String project id. bill_id: Integer bill id. move_to_trash: If True (default), move to the project trash bin — the bill can be restored later by setting deleted=0 via update_cospend_bill. If False, hard-delete (irreversible).
Returns: JSON {"project_id": ..., "bill_id": ..., "moved_to_trash": }.
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": {
"project_id": "<project_id>",
"bill_id": "<bill_id>"
},
"name": "delete_cospend_bill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bill_id | Yes | ||
| project_id | Yes | ||
| move_to_trash | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |