create_expense
create_expenseAdd a new expense to Productive.io with required fields: name, date, amount, currency, service ID, and person ID. Retrieve service ID via get_project_services.
Instructions
Create a new expense record in Productive.io. Use get_project_services to find a valid service_id first.
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": {
"name": "<name>",
"date": "<date>",
"amount": "<amount>",
"currency": "<currency>",
"service_id": "<service_id>",
"person_id": "<person_id>"
},
"name": "create_expense"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name/title of the expense (required) | |
| date | Yes | Date of the expense (YYYY-MM-DD) (required) | |
| amount | Yes | Expense amount (required) | |
| currency | Yes | Currency code, e.g. EUR, USD (required) | |
| service_id | Yes | Service ID to link this expense to — use get_project_services to find valid IDs (required) | |
| person_id | Yes | Person ID who incurred the expense. Use "me" if PRODUCTIVE_USER_ID is configured. (required) | |
| note | No | Additional notes (optional) | |
| billable | No | Whether the expense is billable to the client (default: false) |