create_commitment
Add a commitment by hand when it is missing, such as a promise made by phone. First list_commitments to avoid duplicates. Find conversationId with list_whatsapp_conversations and optional evidenceMessageIds with get_whatsapp_conversation. Explain the exact title, delivery and who owes it, then obtain confirmation immediately before writing. Requires commitments:write. The new card starts owed, createdBy api, and shows Added by hand; Observer reads it on later chat activity to avoid making another copy. Evidence must be available in this chat; use update_commitment.addContext for other chats. Reuse the same idempotencyKey only for an exact retry. Returns commitmentId and version; use get_commitment for details.
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": {
"conversationId": "<conversationId>",
"title": "<title>",
"delivery": "<delivery>",
"owedBy": "<owedBy>",
"confirmed": "<confirmed>",
"idempotencyKey": "<idempotencyKey>"
},
"name": "create_commitment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| title | Yes | ||
| origin | No | ask | |
| owedBy | Yes | Who must deliver; the other side is owed | |
| delivery | Yes | Exactly what must be delivered | |
| confirmed | Yes | Must be true only after the user explicitly confirms this exact operation | |
| conversationId | Yes | Chat ID from list_whatsapp_conversations; every commitment belongs to a chat | |
| idempotencyKey | Yes | A unique identifier generated once for this intended write. Reuse exactly when retrying. | |
| evidenceMessageIds | No | Optional proof from this chat; use update_commitment.addContext for other chats |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| success | No |