nfe_settings_get
NF-e and NFC-e settings of a company (state registration, CRT, default series, NFC-e series, nature of operation and tax defaults) and what is still missing (missing) before it can issue an NF-e. readiness says whether the company can issue NF-e and NFC-e: by default it is the last answer kept (null if never checked); with check_sefaz=true it asks the SEFAZ now (Consulta Cadastro, with the company certificate) which state registrations (IE) the CNPJ has and whether they are enabled, and answers status, a plain pt-BR message and suggestedStateRegistration (the IE the SEFAZ has for the CNPJ). The check is most useful before the first NF-e or NFC-e of a company and after a 245 rejection ("CNPJ Emitente não cadastrado"): a company with no IE (service-only) cannot issue NF-e or NFC-e. unavailable means the state has no consulta or the SEFAZ did not answer: nothing is known.
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": {
"company_id": "<company_id>"
},
"name": "nfe_settings_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| company_id | Yes | UUID of the company | |
| check_sefaz | No | true asks the SEFAZ now and fills `readiness` with the live answer. Default false: no SEFAZ call. |