Skip to main content
Glama

SmartAccounts MCP by usefulapi

Create a payment

smartaccounts_create_payment
Destructive

Record a bank or cash payment against one or more invoices (purchasesales/payments:add): a client paying a sales invoice, or a payment to a vendor for a purchase invoice. Use smartaccounts_list_bank_accounts or _list_cash_accounts for account_name, and the invoice ids from the invoice lists. The currency must match the account's currency. Returns paymentId, number and amount. This creates a real accounting record in the company's books. This server cannot edit or delete it; correct it in SmartAccounts. It never retries: if a reply is unclear, look in SmartAccounts before calling again. The vendor limit is 60 requests per minute and 1000 per 24 hours; every call here is one request.

Input Schema

NameRequiredDescriptionDefault
dateYesPayment date, yyyy-mm-dd.
rowsYesThe invoices this payment settles.
commentNoInternal comment.
currencyYesCurrency code, for example EUR; must match the account's currency.
documentNoDocument number text.
partner_idYesThe client id (partner_type CLIENT) or vendor id (VENDOR).
account_nameYesThe name of the bank or cash account.
account_typeYesBANK or CASH.
partner_typeYesCLIENT = money received from a client; VENDOR = money paid to a vendor.
exchange_rateNoExchange rate; only for a currency without an ECB rate.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare the write/destructive/non-idempotent profile; the description adds substantial value beyond them: it creates a real book entry that this server cannot edit or delete, corrects must be made in SmartAccounts, it never retries and the caller should inspect SmartAccounts on an unclear reply, and it discloses rate limits (60/min, 1000/24h).

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?

Front-loads the core action, then layers operational detail (sources, currency rule, return fields, immutability, rate limit). It is on the longer side but each sentence carries distinct information, so little is wasted.

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?

No output schema exists, yet the description still names the returned fields (paymentId, number, amount), and it covers the mutation caveats, retry behavior and rate limits, leaving nothing essential for a correct call unstated.

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 coverage is 100%, so the baseline is 3, but the description adds cross-field meaning: the source of account_name (bank/cash account lists) and invoice ids (invoice lists) and the constraint that currency must match the account's currency.

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?

States a specific verb ('Record') and resource ('bank or cash payment against one or more invoices'), and disambiguates the two scenarios (client paying a sales invoice vs. payment to a vendor) so an agent can place it among the invoice-related siblings.

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?

Explicitly routes the agent to smartaccounts_list_bank_accounts / _list_cash_accounts for account_name and to the invoice lists for row ids, giving clear context for when this tool applies. It stops short of naming when NOT to use it or which siblings (e.g. create_ledger_entry) are the wrong choice, so no exclusions are given.

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.