Skip to main content
Glama

contaazul_list_invoices_nfe

Read-onlyIdempotent

Lista NF-e (notas fiscais de produto) EMITIDAS ou CORRIGIDAS COM SUCESSO (a API não filtra por status). data_inicial e data_final (AAAA-MM-DD) são OBRIGATÓRIAS na API e a janela máxima dela é de 15 dias: se omitidas, usamos os últimos 15 dias; se vier só uma, a outra fica a 15 dias de distância; janela maior (ex.: um mês) é consultada em partes de 15 dias e devolvida junta (todas as páginas, campo janelas). Outros filtros: documento_tomador (CPF/CNPJ), numero_nota, id_venda. Paginação (só em janela de até 15 dias): pagina + tamanho_pagina (10, 20, 50 ou 100).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "contaazul_list_invoices_nfe"
  }
}

Input Schema

NameRequiredDescriptionDefault
paginaNo
accountNo
id_vendaNo
data_finalNo
numero_notaNo
data_inicialNo
tamanho_paginaNo
data_emissao_fimNo
documento_tomadorNo
data_emissao_inicioNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / data_final
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / data_inicial
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / documento_tomador
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / id_venda
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / numero_nota
      Added value: +{
      +  "type": "string"
      +}
    • removedInput schema / properties / status
      Removed value: -{
      -  "type": "string"
      -}
  2. Changed7 schema fields changed
    • removedInput schema / properties / account / description
      Removed value: -"Quando o install tem mais de uma empresa Conta Azul: company_id, label, ou parcial. Ver contaazul_list_accounts."
    • removedInput schema / properties / pagina / maximum
      Removed value: -9007199254740991
    • removedInput schema / properties / pagina / minimum
      Removed value: -1
    • changedInput schema / properties / pagina / type
      Previous value: -"integer"New value: +"number"
    • removedInput schema / properties / tamanho_pagina / maximum
      Removed value: -100
    • removedInput schema / properties / tamanho_pagina / minimum
      Removed value: -1
    • changedInput schema / properties / tamanho_pagina / type
      Previous value: -"integer"New value: +"number"
  3. First observed

TDQS

A4/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly/idempotent/non-destructive, and the description adds real behavior beyond them: the hard 15-day API window, the auto-fill/padding logic, server-side chunking of larger windows returned merged with a `janelas` field, and the constraint that pagination only applies within a ≤15-day window. That is exactly the kind of hidden trait an agent cannot infer from schema or annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One dense paragraph but front-loaded with the result-set definition, then the mandatory-date mechanics, then secondary filters, then pagination — a sensible ordering. Slightly overloaded with parenthetical asides, but nearly every clause carries information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter list tool with no output schema, the description covers the hard parts (date windowing, splitting, merging, pagination limits) but leaves the duplicate date parameter pairs and `account` unexplained, so an agent can still construct a technically valid but semantically wrong call.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the load: it documents data_inicial/data_final format (AAAA-MM-DD), documento_tomador as CPF/CNPJ, numero_nota, id_venda, and tamanho_pagina's allowed values (10/20/50/100). However it never explains `account`, nor the coexistence of data_emissao_inicio/data_emissao_fim alongside data_inicial/data_final, which is the most likely source of a wrong call.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb+resource ("Lista NF-e (notas fiscais de produto)") and scopes the result set to notas EMITIDAS ou CORRIGIDAS COM SUCESSO, noting the API does not filter by status. That implicitly separates it from contaazul_list_invoices_nfse (service invoices) and contaazul_get_invoice_nfe (single record), but no sibling is named explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete operating conditions: dates are mandatory on the API, omission defaults to the last 15 days, a single date pads the other end, and a wider window is split into 15-day chunks. It does not state when to prefer get_invoice_nfe for a single nota or mention the account parameter's role.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.