Query Government Central revenue, expenditure, and result
get_tesouro_rtnRetrieve monthly current-value RTN accounts from 1997 onward. Defaults to total revenue, transfers, net revenue, total expenditure, and the above-the-line primary result; select exact account IDs or search account labels for detail.
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": {
"dataset_id": "<dataset_id>"
},
"name": "get_tesouro_rtn"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Inclusive last month, YYYY-MM. | |
| from | No | Inclusive first month, YYYY-MM. | |
| limit | No | Maximum account rows to return. | |
| query | No | Account-label search; omit accounts to search the full tree. | |
| accounts | No | Exact account IDs returned by get_tesouro_rtn_schema. | |
| dataset_id | Yes | The official Tesouro Nacional RTN dataset identifier. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Source-preserving data or schema payload for the selected official dataset. | |
| meta | Yes | Response metadata and source provenance. | |
| links | No | Related API links. |