Skip to main content
Glama

Criar transação

create_transaction

Cria uma transação (EXPENSE/INCOME/TRANSFER). Requer accountId ou cardId. Se a transação vai ser considerada paga agora (isPaid não-false e sem scheduledDate futura), valida saldo suficiente na conta (EXPENSE/TRANSFER) ou limite disponível no cartão (EXPENSE) e retorna 400 se faltar — para permitir saldo negativo use confirm_new_transaction. scheduledDate no futuro agenda a transação sem tocar saldo/limite até ser confirmada depois (confirm_pending_transaction). installments > 1 divide amount em parcelas iguais e cria as ocorrências futuras automaticamente. category 'INVESTMENT' + EXPENSE/INCOME atualiza o valor/custo de um Equity (cria um novo via ticker/exchange se não existir nenhum, ou usa/cria um 'Investimentos Gerais' default). Para TRANSFER com goalId, incrementa o progresso da meta. Dispara recálculo de projeções e insights (best-effort) e um alerta de orçamento (push) se estourar categoria.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateYesData ISO ou dd/mm/yyyy (normalizada automaticamente)
typeYes
amountYesValor total da transação — se installments > 1, é o valor total, dividido igualmente entre as parcelas
cardIdNoCartão usado (só para EXPENSE). Obrigatório se accountId não for informado
goalIdNoMeta financeira vinculada — só tem efeito (incrementa progresso) quando type é TRANSFER
isPaidNoDefault: calculado a partir de date/scheduledDate (passado/hoje = true). Force false para lançar como pendente mesmo com data passada
natureNoPERSONAL, PROFESSIONAL, MIXED ou BUSINESS. Default: PERSONAL
sharesNoQuantidade de cotas/ações da operação de investimento, se aplicável
tickerNoTicker do ativo (ex: PETR4) — usado só quando categoryId aponta pra categoria 'INVESTMENT', pra achar/criar o Equity correspondente
agentIdNoContato/agente (Agent) vinculado à transação
equityIdNoInvestimento (Equity) a atualizar diretamente, alternativa a ticker/exchange
exchangeNoBolsa do ativo, usado junto com ticker ao criar um novo Equity
paidDateNoData ISO em que foi efetivamente paga, se diferente de date
accountIdNoConta debitada/creditada. Obrigatório se cardId não for informado
categoryIdNoId da Category do usuário
descriptionYesDescrição/título da transação
costCenterIdNoCentro de custo vinculado
installmentsNoNúmero de parcelas (>1 gera parcelas futuras adicionais, tipicamente usado com cardId)
scheduledDateNoData ISO futura — agenda a transação como pendente sem afetar saldo/limite até ser confirmada
destinationAccountIdNoObrigatório para TRANSFER — conta de destino

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNo
cardNo
dateNo
tagsNo
typeNo
agentNo
amountNo
cardIdNo
goalIdNo
isPaidNo
natureNo
userIdNo
accountNo
agentIdNo
categoryNo
equityIdNo
paidDateNo
accountIdNo
createdAtNo
updatedAtNo
categoryIdNo
costCenterNo
externalIdNo
descriptionNo
costCenterIdNo
categoryModelNo
scheduledDateNo
totalInstallmentsNo
billReminderSentAtNo
currentInstallmentNo
destinationAccountNo
destinationAccountIdNo
recurringTransactionIdNo

Schema Changelog

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

  1. Changed2 schema fields changed
    • addedInput schema / properties / costCenterId / description
      Added value: +"Centro de custo vinculado"
    • addedInput schema / properties / description / description
      Added value: +"Descrição/título da transação"
  2. Changed17 schema fields changed
    • addedInput schema / properties / accountId / description
      Added value: +"Conta debitada/creditada. Obrigatório se cardId não for informado"
    • addedInput schema / properties / agentId / description
      Added value: +"Contato/agente (Agent) vinculado à transação"
    • addedInput schema / properties / amount / description
      Added value: +"Valor total da transação — se installments > 1, é o valor total, dividido igualmente entre as parcelas"
    • addedInput schema / properties / cardId / description
      Added value: +"Cartão usado (só para EXPENSE). Obrigatório se accountId não for informado"
    • addedInput schema / properties / categoryId / description
      Added value: +"Id da Category do usuário"
    • changedInput schema / properties / date / description
      Previous value: -"Data ISO ou dd/mm/yyyy"New value: +"Data ISO ou dd/mm/yyyy (normalizada automaticamente)"
    • changedInput schema / properties / destinationAccountId / description
      Previous value: -"Obrigatório para TRANSFER"New value: +"Obrigatório para TRANSFER — conta de destino"
    • addedInput schema / properties / equityId / description
      Added value: +"Investimento (Equity) a atualizar diretamente, alternativa a ticker/exchange"
    • addedInput schema / properties / exchange / description
      Added value: +"Bolsa do ativo, usado junto com ticker ao criar um novo Equity"
    • addedInput schema / properties / goalId / description
      Added value: +"Meta financeira vinculada — só tem efeito (incrementa progresso) quando type é TRANSFER"
    • changedInput schema / properties / installments / description
      Previous value: -"Número de parcelas (cartão)"New value: +"Número de parcelas (>1 gera parcelas futuras adicionais, tipicamente usado com cardId)"
    • addedInput schema / properties / isPaid / description
      Added value: +"Default: calculado a partir de date/scheduledDate (passado/hoje = true). Force false para lançar como pendente mesmo com data passada"
    • addedInput schema / properties / nature / description
      Added value: +"PERSONAL, PROFESSIONAL, MIXED ou BUSINESS. Default: PERSONAL"
    • addedInput schema / properties / paidDate / description
      Added value: +"Data ISO em que foi efetivamente paga, se diferente de date"
    • changedInput schema / properties / scheduledDate / description
      Previous value: -"Se futura, agenda sem tocar saldo"New value: +"Data ISO futura — agenda a transação como pendente sem afetar saldo/limite até ser confirmada"
    • addedInput schema / properties / shares / description
      Added value: +"Quantidade de cotas/ações da operação de investimento, se aplicável"
    • changedInput schema / properties / ticker / description
      Previous value: -"Ticker do ativo, para transação de investimento"New value: +"Ticker do ativo (ex: PETR4) — usado só quando categoryId aponta pra categoria 'INVESTMENT', pra achar/criar o Equity correspondente"
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations are minimal (all flags false), so the description carries the burden — and it delivers: validation failure mode with 400 on insufficient balance/limit, conditional validation gated on isPaid and scheduledDate, side effects (best-effort recalculation of projections/insights, budget push alert), and per-parameter behavioral branching (installments generating future occurrences, Equity create/update with a default fallback, goal progress on TRANSFER). Nothing contradicts the 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?

A single dense paragraph of roughly 170 words with zero filler — every clause carries semantic weight, and the core action plus required-field note come first. However, the density hurts scannability: the investment/Equity portion stacks multiple conditionals into one sentence, and bullet structure would make the conditional behaviors easier for an agent to parse.

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?

For a 20-parameter tool with an output schema present, the description covers the cross-cutting behaviors that the flat schema cannot convey: validation gates, scheduling semantics, installments, Equity creation/update with default fallback, goal interaction, and post-creation side effects. Only minor edge cases are uncovered (e.g., both accountId and cardId supplied together), and those are marginal given the rich schema and 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?

With 95% schema coverage, the baseline is 3 and the schema already documents most parameters. The description adds genuinely cross-parameter semantics the flat schema cannot express: the accountId XOR cardId requirement summarized, the isPaid × scheduledDate gate that toggles fund validation, the amount/installments relationship, and the default 'Investimentos Gerais' Equity fallback that appears nowhere in the schema.

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

Purpose5/5

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

The description opens with a specific verb and resource — 'Cria uma transação (EXPENSE/INCOME/TRANSFER)' — and immediately delimits scope: a single transaction of three possible types. It semantically separates from the confirm_* siblings (which confirm rather than create) and from create_recurring_transaction (which creates a recurring pattern rather than a single transaction with installments).

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?

The description explicitly names alternatives with conditions: 'para permitir saldo negativo use confirm_new_transaction' and the scheduling flow that later routes to confirm_pending_transaction. However, it gives no guidance about when to prefer create_recurring_transaction — the closest sibling, also a transaction-creating tool — nor about update/delete fallbacks.

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.