Skip to main content
Glama

Fatura do cartão (atual ou próxima)

invoice_for_period

Fatura de um cartão pro período pedido em period (default 'current'). 'current': a mais antiga ainda não paga (isPaid = false), qualquer que seja seu status; se não houver nenhuma pendente, cai pra fatura do período vigente calculada pelo dia de fechamento/vencimento do cartão. 'next': fatura prevista pro ciclo seguinte ao atual (mês seguinte, mesma lógica de fechamento/vencimento) — use pra saber quanto já está comprometido no próximo fechamento antes dele fechar. Sem transações completas (só os vínculos de valor). Efeito colateral em ambos os casos: se a fatura do período pedido ainda não existir, ela é criada (linha OPEN com total 0) — não é uma leitura pura. cardId é o id do cartão, não da fatura.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cardIdYesId do cartão (Card)
periodNoDefault: 'current'

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNo
yearNo
monthNo
cardIdNo
isPaidNo
statusNo
userIdNo
dueDateNo
paidDateNo
createdAtNo
updatedAtNo
paidAmountNo
closingDateNo
totalAmountNo
transactionsNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

A descrição revela de forma direta o efeito colateral: se a fatura não existir, ela é criada como linha OPEN com total 0, e afirma explicitamente 'não é uma leitura pura'. Isso complementa a anotação readOnlyHint=false com contexto importato de mutação que o agente precisa saber antes de invocar.

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

Conciseness5/5

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

A descrição é densa mas bem organizada, com cada frase agregando informação necessária: definição dos períodos, uso de `next`, ausência de transações completas, efeito colateral e disambiguação do parametro. Não há texto ocioso e a informação central vem primeiro.

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

Completeness5/5

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

Para um ferramenta com essa complexidade semântica, a descrição cobre os principais riscos: efeito de criação, siginificado de cada período, fallback e escopo do retorno. Como há output schema, não é necessário detahar o retorno; a descrição é suficiente para invocar corretamente.

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

Parameters5/5

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

Embora o schema cubra 100% dos parâmetros, a descrição agregra muito significado: explica detalhadamente o comportamento de `current`, a lógica de `next`, o fallback para o período vigente, e desambígua `cardId` como id do cartão e não da fatura. Isso vai muito além do enum e do default já presentes no schema.

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?

Descreve com clareza que a ferramenta retorna a fatura de um cartão para um período específico (`current` ou `next`), com verb/resource específico. No entando, não nomeia alternativas entre os irmãos, embora a disambiguação de `cardId` contra a fatura ajude indiretamente a separá-la de ferramentas como `get_invoice`.

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?

Fornece contexto claro de uso: `current` é definido como a fatura pendente mais antiga com fallback, e `next` é explicitamente recomendado 'pra saber quanto já está comprometido no próximo fechamento'. Não menciona explicitamente exclusions ou alternativas, mas o quando-usar é compreensível.

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.

TDQS

A3.7/5.0
Disambiguation3/5

The tools are individually well-described and many cross-reference their closest neighbors, but the set contains several easily confused clusters: create_transaction/confirm_new_transaction, update_equity/add_equity_valuation, the invoice tools (current_invoice, next_invoice, list_pending_invoices, get_invoice), and the many analytics/projection tools. The descriptions help a careful reader, but with 81 tools an agent is likely to misselect among these overlapping surfaces.

Naming Consistency3/5

CRUD operations consistently use create_/list_/update_/delete_ plus a resource noun, and all names are snake_case. However, there is a large second group of noun-phrase analytics tools (cashflow_forecast, spending_projection, categories_insights, transport_routine) plus one-off verbs such as can_afford, pay_invoice, and validate_current_invoices, so the naming convention is mixed even though it remains readable.

Tool Count1/5

81 tools is far beyond the practical MCP tool surface and exceeds the rubric's 50+ extreme-mismatch threshold. Even if each tool maps to a real finance endpoint, the volume overwhelms an agent's context window and makes selection much harder.

Completeness4/5

The server covers the finance lifecycle extensively: accounts, cards, invoices, transactions, recurring rules, budgets, goals, debts, equities, categories, tags, cost centers, profile, projections, and insights all have working read/write paths. Minor gaps remain, such as no update/delete for tags and no direct update/delete for system-generated invoices, but agents can usually work around these.