Skip to main content
Glama
TreeBeam MCP Server

TreeBeam MCP Server

pivot_adjustments_by_account

Analyze adjustment impact by account: returns per-account sums of adjustment line amounts and distinct adjustment counts for requested periods, only for accounts with activity.

Instructions

PREFERRED for analyzing adjustment impact by account. Returns one row per impacted account with the sum of adjustment line item amounts and count of distinct adjustments, for each requested period. Only accounts that have adjustment activity are included. All data is returned in a single response with NO pagination. Use this tool whenever the user asks which accounts were adjusted, or how much adjustment activity hit a particular account. 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"
  }
}

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.
accountIdsNoOptional. Filter to specific account 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/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden, and it does add real value: it states that only accounts with adjustment activity appear (so absence is meaningful), that all data comes back in one response with no pagination, and what each row contains. It does not cover permission requirements or how the default exclusion of 'passed' adjustment types affects totals, leaving some behavioral gaps for a 9-parameter aggregation 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?

Front-loaded with the 'PREFERRED' selection signal, then output shape, then inclusion semantics, then call instructions. Every sentence carries information an agent needs; the emphatic 'NO pagination' earns its emphasis because it prevents unnecessary paging logic.

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 a 9-parameter, no-output-schema pivot, the description supplies the row structure, inclusion rule, and pagination behavior, which is the information an agent cannot get elsewhere. Minor gaps remain around default adjustment type exclusion and whether zero-amount accounts are dropped, but the core calling contract is complete.

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 explains each parameter, setting the baseline at 3. The description adds only that at least one periodId is required and points to search_periods, both of which largely restate what the schema already declares.

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?

States a specific verb and resource ('analyzing adjustment impact by account') and immediately defines the output grain: one row per impacted account with summed line item amounts and distinct adjustment counts per period. This clearly separates it from the sibling pivots that group by account group, adjustment, or FS group.

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?

'PREFERRED for...' plus 'Use this tool whenever the user asks which accounts were adjusted, or how much adjustment activity hit a particular account' gives a concrete selection condition, and it routes the agent to search_periods for prerequisite IDs. It stops short of explicitly excluding the sibling pivot variants, so the agent must infer that grouping by account group should use a different tool.

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