create_expense
Create a new expense entry for a project by specifying the category, date, and total cost, with options to mark as billable or attach notes.
Instructions
Create a new expense entry for a project with category and cost details. Supports receipt attachment and billable status.
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>",
"expense_category_id": "<expense_category_id>",
"spent_date": "<spent_date>",
"total_cost": "<total_cost>"
},
"name": "create_expense"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Notes or description for the expense | |
| units | No | Number of units for unit-based expenses | |
| user_id | No | The user ID who incurred the expense | |
| billable | No | Whether the expense is billable to the client | |
| project_id | Yes | The project ID to associate the expense with (required) | |
| spent_date | Yes | Date the expense was incurred (YYYY-MM-DD) (required) | |
| total_cost | Yes | Total cost of the expense (required) | |
| expense_category_id | Yes | The expense category ID (required) |