Skip to main content
Glama

get_gl_transactions_top

Read-onlyIdempotent

The 50 largest individual transaction lines for one GL account or one category, with date, description and amount. Amounts are in whole euros (EUR): positive = income, negative = expense. Balance-sheet rows keep their raw sign. Use it to name the bookings behind a deviation; at most 3 months.

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": {
      "from_month": "<from_month>",
      "to_month": "<to_month>"
    },
    "name": "get_gl_transactions_top"
  }
}

Input Schema

NameRequiredDescriptionDefault
cat_codeNoThe exact `code` value from a prior summary row; or pass gl_account_code.
to_monthYesLast month, "YYYY-MM" (inclusive). Required.
tenant_idNoThe tenant to query. Required when you have access to more than one tenant; may be omitted when you have exactly one. Call list_tenants for the ids.
from_monthYesFirst month, "YYYY-MM" (inclusive). Required.
division_idNoRestrict the answer to one administration. Omit to cover every administration you have access to. It can only narrow your access, never widen it.
gl_account_codeNoOne GL account code; or pass cat_code.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / division_id / description
      Previous value: -"Restrict the answer to one administration (Exact Online division). Omit to cover every administration you have access to. It can only narrow your access, never widen it."New value: +"Restrict the answer to one administration. Omit to cover every administration you have access to. It can only narrow your access, never widen it."
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent and non-destructive, so the description correctly spends its words elsewhere: currency and sign convention (whole EUR, positive = income, negative = expense), the exception that balance-sheet rows keep their raw sign, and the 3-month window cap. It leaves 'largest' undefined (by absolute value or signed amount?), which matters for a top-N tool.

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?

Three tight sentences: what it returns, then the amount/sign semantics, then the use case and window limit. No filler and the result shape is front-loaded before the usage hint.

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

Completeness4/5

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

With no output schema the description carries the return shape and does so well (date, description, amount), and the sign convention is exactly the kind of detail an agent needs for a financial tool. Missing only the sort key behind 'largest' and whether an empty or truncated result is signalled.

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

Parameters3/5

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

Schema coverage is 100% and the schema already explains cat_code vs gl_account_code, tenant_id and division_id in detail. The description only reinforces the either/or choice between account and category ('for one GL account or one category') without adding format or edge-case guidance, so the baseline 3 applies.

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?

States a concrete resource with a precise shape: the 50 largest individual transaction lines for one GL account or one category, returning date, description and amount. That distinguishes it from the aggregated siblings by the word 'individual' and the top-50 cap, though it never names get_gl_transactions or get_gl_transactions_aggregated explicitly.

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?

'Use it to name the bookings behind a deviation' gives a clear trigger: drill-down after a summary shows an anomaly. It also imposes a hard scoping rule ('at most 3 months'), but never states the inverse case (when to prefer the full get_gl_transactions listing instead).

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