Skip to main content
Glama

add_manual_transaction

Add a manual transaction in one of four categories. Every call needs txnCategory, trade, timestamp, baseCurrencyId and baseQuantity, plus the fields listed for its category; a missing field is rejected by name.

Trade (txnCategory='trade'): OTC buy/sell. Pass trade='sell'. Also required: quoteCurrencyId, quoteQuantity, exchangeName. Optional pricePerUnit for the sold asset. Buying crypto with fiat: there is no 'buy'; use a Trade with fiat sold (base) and crypto received (quote). Pick the search_currencies result whose assetClass is fiat. If the account ignores fiat, the crypto is acquired at cost. Transfer (txnCategory='transfer'): movement between the user's own accounts. Pass trade='deposit'. Also required: from, to. Optional pricePerUnit; a same-asset bridge also needs fromBlockchain and toBlockchain. Cross-chain trade (txnCategory='cross_chain_trade'): the same wallet on two chains, with different sent and received currencies. Pass trade='sell'. Also required: quoteCurrencyId, quoteQuantity, from, to, fromBlockchain, toBlockchain, pricePerUnit. Other (txnCategory='other'): a single-sided entry, in (income, staking, airdrop) or out (lost, stolen). Set trade to that word; txnCategory stays 'other'. Also required: from, and to except for lost or stolen.

Currencies: pass the id from search_currencies. Custom currencies can't be created here: with no match, don't retry; tell the user to add it on the web app Transactions page (/transactions)

On success it returns the new Transaction _id. Find it later with query_summ_transactions { type: "id", value: ["<id>"], showAssociated: 1 } (not actionId or txId); that row has the Action ID edits use.

Name categories to the user by their UI label, never the raw API enum: deposit→Receive, withdrawal→Send (others usually match). For the full rules (fiat, transfers, what must never be surfaced), read the User-facing wording section of read_me_first if you haven't already.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "txnCategory": "<txnCategory>",
      "trade": "<trade>",
      "timestamp": "<timestamp>",
      "baseCurrencyId": "<baseCurrencyId>",
      "baseQuantity": "<baseQuantity>",
      "context": "<context>",
      "llm_model": "<llm_model>"
    },
    "name": "add_manual_transaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoTransfer/Other — destination account, e.g. 'metamask'. Omit for lost or stolen: the destination is 'unknown', as on the web form.
fromNoTransfer/Other — source account, e.g. 'binance' or 'unknown'
tradeYesTool-argument enum only — never echo to the user. 'trade' → pass 'sell'; 'transfer' → pass 'deposit' (tell the user "Receive"); 'cross_chain_trade' → pass 'sell'; 'other' → the income-style category, e.g. 'income' / 'staking' / 'airdrop'.
contextYesWrite one short, abstract, third-person sentence about the task. Refer to the requester only as "the user". Refer to any selected customer, client profile, business, portfolio, account, or data source only as "the client". Never copy, abbreviate, initialize, quote, or paraphrase a user or client name from the conversation, request, or tool data. Never put a name, initials, label, possessive name, business name, email, account name, or identifier before or after "the user" or "the client". Rewrite every named reference to exactly "the user" or "the client". For example, rewrite "User wants to know the inventory method for the client Alex R" as "The user wants to know the inventory method for the client." Do not include wallet names, wallet addresses, transaction hashes, amounts, balances, prices, dates, tax identifiers, account identifiers, or other personal or financial values. Use only generic data categories such as "transactions", "accounts", "wallets", or "tax settings". If a safe abstract summary is not possible, write exactly "the request contains sensitive details".
clientIdNoThe client this call acts for — its ID comes from list_clients. Accountants and collaborators: set it on every client-scoped call to operate on that client's data. Only accountant/collaborator accounts have clients; individual accounts omit it.
llm_modelYesThe exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. "claude-opus-4-8", "gpt-5.2"). Used for analytics only. If you do not know your model identifier with certainty, pass "unknown" — never guess.
timestampYesTransaction date/time in ISO format (e.g., 2024-06-15T12:00:00Z)
feeQuantityNoFee amount
txnCategoryYesTransaction category: 'trade' (OTC buy/sell), 'transfer' (movement between accounts), 'cross_chain_trade' (same wallet on two DIFFERENT chains where the sent and received currency differ), or 'other' (income, staking, gifts, etc.).
baseQuantityYesAmount of the base currency
exchangeNameNoTrade only — account the trade happened on, e.g. 'OTC' or 'unknown'
pricePerUnitNoPer-unit price of the base asset in local currency; 0 allowed. Optional for 'trade', 'transfer' and 'other': omitted (or 0), Summ uses the market price at `timestamp`, as the web form does. Never invent a price.
toBlockchainNoChain the `to` wallet is on (see `fromBlockchain`).
feeCurrencyIdNoFee currency, when a fee applies. Pass the `id` field from a `search_currencies` result (e.g. 'bitcoin' or 'solana:5imL…'). The server resolves the id to the full currency; an unknown id is rejected, so always search first — never invent an id. Custom or unlisted currencies can only be added via the web app UI, not this tool.
quoteQuantityNoTrade only — amount of the quote asset received
baseCurrencyIdYesThe base asset. Pass the `id` field from a `search_currencies` result (e.g. 'bitcoin' or 'solana:5imL…'). The server resolves the id to the full currency; an unknown id is rejected, so always search first — never invent an id. Custom or unlisted currencies can only be added via the web app UI, not this tool.
fromBlockchainNoChain the `from` wallet is on. REQUIRED on both sides for a cross_chain_trade and for a same-asset cross-chain bridge (transfer); omit for an exchange or a single-chain wallet.
feePricePerUnitNoPer-unit price of the fee currency in the user's local currency, when the fee was paid in something other than the local currency (e.g. ETH gas). Omitted (or 0), Summ uses the market price.
quoteCurrencyIdNoTrade only — id of the asset received in the trade. Pass the `id` field from a `search_currencies` result (e.g. 'bitcoin' or 'solana:5imL…'). The server resolves the id to the full currency; an unknown id is rejected, so always search first — never invent an id. Custom or unlisted currencies can only be added via the web app UI, not this tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare a non-destructive write; the description adds substantial behavior beyond them — per-category required-field enforcement with named rejections, server-side currency id resolution that rejects unknown ids, the inability to create custom currencies here, and the success return of a new Transaction `_id`. It even warns which identifier field (`actionId`/`txId`) will not work when looking the row up later.

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?

Bold per-category headers make a long description scannable, and the invariant required-field list is front-loaded before the branching rules. It loses a point for repeated currency-lookup boilerplate (the same 'pass the `id` from `search_currencies`' advice appears in the body and in several schema fields) and for deferring the `read_me_first` pointer to the very end.

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 19-parameter, 7-required mutation with no output schema, the definition covers everything an agent needs: category selection, conditional required fields, currency sourcing and failure handling, the returned `_id` and how to retrieve it, and a guardrail on user-facing category labels. No obvious gap remains.

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 individual field meanings are already documented and the baseline is 3. The description earns above baseline by supplying cross-field conditional logic the schema cannot express: which fields are required per `txnCategory`, the category-to-`trade`-enum mapping (trade→'sell', transfer→'deposit'), and that `pricePerUnit` defaults to market price at `timestamp` when omitted.

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 opening sentence names a concrete verb and resource (create a manual transaction) and immediately partitions it into four categories, so an agent knows exactly what the tool produces and under which shape. It goes beyond the name by enumerating the invariant required fields and stating that a missing field is rejected by name.

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

Usage Guidelines5/5

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

Explicitly routes the agent between alternatives: it says there is no 'buy' and to model a fiat crypto purchase as a Trade with fiat as base, directs currency selection to `search_currencies` filtered by `assetClass='fiat'`, and forbids retrying when no currency matches, sending the user to the web app instead. It also cross-references `query_summ_transactions` for retrieval afterwards and `read_me_first` for user-facing wording.

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.

Resources