Skip to main content
Glama
TreeBeam MCP Server

TreeBeam MCP Server

pivot_adjustments_by_account_group

Summarize adjustment totals and distinct counts by account group for selected periods, returning only groups with adjustment activity for impact analysis.

Instructions

PREFERRED for analyzing adjustment impact by account group. Returns one row per impacted account group with summed adjustment amounts and distinct adjustment counts, for each requested period. Only account groups that have adjustment activity are included. All data is returned in a single response with NO pagination. Use this tool whenever the user asks about adjustment totals grouped by account group. You must provide at least one periodId — use search_periods first to find period IDs if needed.

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": {
      "collectionId": "<collectionId>",
      "periodIds": "<periodIds>"
    },
    "name": "pivot_adjustments_by_account_group"
  }
}

Input Schema

NameRequiredDescriptionDefault
entityIdsNoOptional. Scope results to specific entities. If omitted, all entities in the project are included.
periodIdsYesOne or more period IDs to include. Required. Use search_periods to find period IDs.
collectionIdYesThe project ID
fsGroupCodesNoOptional. Filter to specific financial statement groups: a (asset), l (liability), q (equity), r (revenue), x (expense).
accountGroupIdsNoOptional. Filter to specific account group IDs.
interimPeriodIdNoOptional. Filter to a specific interim period.
adjustmentStatusNoReserved for future use.
adjustmentTypeIdsNoOptional. Explicit list of adjustment type IDs to include. If omitted, all types except "passed" are included. Use list_adjustment_types to find valid IDs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.1

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does well: it discloses one row per impacted account group, summed amounts, distinct counts, that only groups with activity are included, and that results are returned in one response with no pagination. It does not state permissions or explicitly label the operation as read-only, which keeps it from a 5.

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?

The description is front-loaded with the preferred use case and key output behavior, and every major sentence contributes useful information. There is mild redundancy between 'PREFERRED for analyzing...' and the later 'Use this tool whenever...' instruction, but it remains efficient.

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?

For an eight-parameter pivot with no output schema and no annotations, the description covers the important output shape, inclusion behavior, and no-pagination constraint. It leaves optional filter semantics to the fully documented schema, which is reasonable, though it could further clarify read-only behavior and default adjustment type inclusion.

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 description coverage is 100%, so the schema already documents all eight parameters thoroughly. The description reinforces the required periodIds and the search_periods lookup, but adds little or no meaning beyond the schema for the optional filters such as entityIds, fsGroupCodes, accountGroupIds, and adjustmentTypeIds.

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 states a specific verb and resource: analyzing adjustment impact grouped by account group. It clearly describes the returned grain and metrics, and distinguishes this pivot from sibling pivots such as pivot_adjustments_by_fs_group or pivot_adjustments_by_adjustment.

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 gives explicit usage guidance: use whenever the user asks about adjustment totals grouped by account group, and use search_periods to find required period IDs. It does not explicitly name when not to use it or contrast it with all sibling grouping alternatives, but the intended context is clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.