Skip to main content
Glama

contaazul_list_contracts

Read-onlyIdempotent

Lista contratos no intervalo de data de início (data_inicio/data_fim, YYYY-MM-DD — obrigatórios na API; se omitidos, usa janela ampla = listar todos). Filtros: pagina, tamanho_pagina (10, 20 ou 50), cliente_id, busca_textual. A API v2 não tem GET contrato por id nem cancelar/excluir.

Bulk support: accepts cliente_ids for batched execution.

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_contracts"
  }
}

Input Schema

NameRequiredDescriptionDefault
paginaNo
accountNo
data_fimNo
cliente_idNo
cliente_idsNo
data_inicioNo
busca_textualNo
tamanho_paginaNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 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."
    • addedInput schema / properties / busca_textual
      Added value: +{
      +  "type": "string"
      +}
    • removedInput schema / properties / cliente_ids / description
      Removed value: -"Bulk mode: multiple values for cliente_id"
    • addedInput schema / properties / data_fim
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / data_inicio
      Added value: +{
      +  "type": "string"
      +}
    • 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 / status
      Removed value: -{
      -  "type": "string"
      -}
    • 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"
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds genuinely useful behavior beyond that: omitting the date range silently broadens the query to all records, and cliente_ids enables batched execution. It also discloses API limitations (no per-id GET, no cancel/delete) that shape what the agent can accomplish with this tool.

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?

The date-range scoping and the omission fallback are front-loaded, and the filter list is compact. The final sentence about missing GET/cancel endpoints and the separate bulk paragraph are slightly disjointed but each carries information an agent needs.

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

Completeness4/5

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

For an eight-parameter list tool with no annotations gaps and no output schema, the description covers filtering, defaults and bulk behavior adequately. Remaining gaps are the meaning of pagina/account and any indication of what a returned contract contains or the default page size, which matter given there is no output schema.

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

Parameters4/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 burden and mostly does: it gives the date format (YYYY-MM-DD), the allowed tamanho_pagina values (10, 20, 50), the meaning of cliente_id and busca_textual, and the bulk cliente_ids behavior. Two parameters, pagina and account, are left undocumented in both schema and description.

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?

States a specific verb and resource ('Lista contratos') plus the scope it operates on (start-date range) and the available filters, which distinguishes it from other list tools. The added note that 'A API v2 não tem GET contrato por id' is a scope clarification but sits awkwardly next to a sibling named contaazul_get_contract, which could momentarily confuse an agent about whether per-id retrieval is possible.

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

Usage Guidelines3/5

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

Gives concrete usage context: date range is API-mandatory but the tool substitutes a wide window when omitted, and it enumerates the filters that narrow results. It does not explicitly route the agent between this tool and alternatives (e.g., get_contract or contract_write), so the when-to-use guidance is implied rather than stated.

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.