Skip to main content
Glama

get_pnl_category_detail

Read-onlyIdempotent

The GL accounts (top 50 by amount) inside ONE category, for the P&L or — with statement "bs" — the balance sheet, where the amounts are the net movement per GL account. Amounts are in whole euros (EUR): positive = income, negative = expense. Call a summary first to obtain cat_code; 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>",
      "cat_code": "<cat_code>"
    },
    "name": "get_pnl_category_detail"
  }
}

Input Schema

NameRequiredDescriptionDefault
cat_codeYesThe exact `code` value from a prior summary row. Never guess a code.
to_monthYesLast month, "YYYY-MM" (inclusive). Required.
statementNoWhich statement the category belongs to (default "pnl").
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.

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/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/non-destructive annotations, the description discloses substantial behavior: results are truncated to the top 50 accounts by amount, amounts are net movement per account in whole EUR with an explicit sign convention (positive = income, negative = expense), and the months window is capped at 3. These are non-obvious traits an agent could not derive from annotations or schema.

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?

Content is front-loaded on the resource, then statement semantics, then units/sign, then prerequisites — all sentences carry information. The opening sentence is a long run-on with an em-dash aside, which slightly hurts parseability, but no words are wasted.

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 does the work of conveying return shape: top 50 accounts, net movement amounts, EUR units and sign convention. It leaves ordering detail and whether account code/name are returned unstated, but nothing an agent needs to call it correctly is missing.

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 already 100%, so the baseline would be 3, but the description adds real meaning: it explains that statement="bs" switches to the balance sheet, that cat_code must come from a prior summary (never guessed), and that the 3-month cap constrains from_month/to_month. It does not add detail on tenant_id or division_id narrowing beyond what the schema states.

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 resource and scope — 'The GL accounts (top 50 by amount) inside ONE category' — and explicitly separates the P&L case from the balance-sheet case via the statement parameter. An agent immediately knows this is a category-level drill-down, distinct from the summary 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?

It states a hard prerequisite ('Call a summary first to obtain cat_code') and a constraint ('at most 3 months'), which is strong when-to-use guidance. It stops short of naming which summary tool (get_pnl_summary vs get_pnl_functional_summary) supplies cat_code, leaving one inference for the agent.

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