calculate_ibs_cbs
Simulate IBS/CBS per item and in total. Issues nothing.
Not a fiscal document: say so to the user. Rates left out use the official 2026 ones in 2026; outside 2026 they are required.
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": {
"items": "<items>",
"operation_date": "<operation_date>"
},
"name": "calculate_ibs_cbs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | The items. | |
| rate_city | No | pIBSMun, %. | |
| rate_state | No | pIBSUF, %. | |
| rate_federal | No | pCBS, %. | |
| document_type | No | Model the cClassTrib is checked for; amounts are the NF-e's. | nfe |
| operation_date | Yes | YYYY-MM-DD; picks vigência and rates. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | ||
| total | No | ||
| notice | No | ||
| simulated | No |