Skip to main content
Glama

log_trade

Log a trade (buy / sell / swap), expressed as from-asset to to-asset. Same body and validation as POST /api/transactions.

Input Schema

NameRequiredDescriptionDefault
to_riskNo
tx_dateYesToday or tomorrow at the latest (the user's own calendar day); later dates are rejected
tx_timeNoOptional HH:MM on the user's own clock; orders rows within the same day. Omitted: an edit keeps the stored time, a new row takes the current time
to_assetYes
from_riskNo
to_amountYes
to_tickerYes
from_assetYes
to_accountYes
descriptionNo
from_amountYes
from_tickerYes
to_categoryNo
to_providerYes
from_accountYes
from_categoryNo
from_providerYes
to_descriptionNo
allow_new_valuesNoCreate accounts/providers/tickers not yet in reference-data. Default false.
from_descriptionNo
overall_eur_valueYesThe trade's total value in the ledger's base currency (the field name is historical: EUR was the only base)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / tx_time
      Added value: +{
      +  "description": "Optional HH:MM on the user's own clock; orders rows within the same day. Omitted: an edit keeps the stored time, a new row takes the current time",
      +  "example": "14:30",
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / tx_date / description
      Added value: +"Today or tomorrow at the latest (the user's own calendar day); later dates are rejected"
  3. Changed1 schema field changed
    • changedInput schema / properties / overall_eur_value / description
      Previous value: -"The trade's total value in the ledger's base currency (the field name is historical — EUR was the only base)"New value: +"The trade's total value in the ledger's base currency (the field name is historical: EUR was the only base)"
  4. First observed

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations at all, the description carries the full behavioral burden, and it largely fails to. It signals this is a write with validation ('Same body and validation as POST /api/transactions') but discloses nothing about permissions, whether the trade is reversible/editable, side effects on balances or reference data, or the fact that new accounts/providers require an explicit opt-in flag.

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?

Two tight sentences with the core purpose front-loaded and no filler. It loses a point because the second sentence offloads meaning to an external API endpoint the agent may not know, rather than stating the constraint directly.

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

Completeness2/5

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

For a 12-required-parameter write operation with no annotations, no output schema, and 19% schema coverage, this is far too thin. The description should at minimum explain the from/to ledger model, the currency-value field, and the new-reference-data opt-in, none of which it covers.

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

Parameters2/5

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

Schema description coverage is only 19% across 21 parameters, so the description must compensate and it does not. The from-/to- framing hints at how the paired fields relate, but risk, category, description, ticker, account, and provider fields are left entirely unexplained, and there is no indication of which fields must agree or how amounts are validated.

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?

The description gives a specific verb ('Log') and resource ('trade'), and clarifies the operation's shape by naming the buy/sell/swap variants and the from-asset → to-asset model. It is readily distinguishable from read siblings like list_transactions or record_balance_adjustment, though it does not explicitly name those neighbors.

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

Usage Guidelines2/5

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

There is no explicit when-to-use/when-not-to-use guidance. The reference to 'POST /api/transactions' is a backend implementation hint rather than a routing rule, and nothing tells the agent how this differs from sibling record_balance_adjustment, which is a plausible confusion point for balance-affecting writes.

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