splitwise_create_comment
Post a comment on a Splitwise expense to leave a shared note everyone on it can see. Writes must be enabled (SPLITWISE_ALLOW_WRITES=1).
Instructions
Add a comment to a Splitwise expense.
Write — refused unless SPLITWISE_ALLOW_WRITES=1. Calls POST /create_comment with
expense_id and content. Everyone on the expense can see the comment. Not
idempotent: calling it twice posts the comment twice.
When to Use:
To leave a note on an expense ("paid in cash", "includes the tip").
When NOT to Use:
To change the expense's own description or notes — use
splitwise_update_expense.To read existing comments — use
splitwise_get_comments.
Returns: A confirmation echoing the comment Splitwise returned: its id, the expense id, the author, the type, the creation time and the text.
Examples:
params = {"expense_id": 51023, "content": "Paid in cash, settled at dinner."}
Error Handling:
Refused with Error: … writes are disabled unless SPLITWISE_ALLOW_WRITES=1. A blank
content is rejected before any call. 404 = the expense does not exist or was
deleted; 403 = you are not part of it. On a timeout or 5xx the outcome is UNKNOWN —
read the comments back with splitwise_get_comments before retrying, or the comment
may be posted twice. Undo with splitwise_delete_comment.
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": {
"params": "<params>"
},
"name": "splitwise_create_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |