Skip to main content
Glama
TreeBeam MCP Server

TreeBeam MCP Server

pivot_consolidation_by_account_group

Generates a consolidated trial balance by account group across selected entities, with totals and per-entity contributions in one response for cross-entity reporting and comparison.

Instructions

PREFERRED for multi-entity consolidated reporting. Returns a consolidated trial balance by account group — one row per account group with totals summed across all included entities, plus a per-entity breakdown showing each entity's contribution to the row totals. All data is returned in a single response with NO pagination. Use this tool whenever the user asks about consolidated balances, cross-entity totals, or needs to compare entities side by side at the account group level. 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_consolidation_by_account_group"
  }
}

Input Schema

NameRequiredDescriptionDefault
entityIdsNoOptional. Scope to specific entities for consolidation. If omitted, all entities in the project are consolidated.
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 unadjusted balances and adjustments to a specific interim period.
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

A3.6/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: no pagination, everything in a single response, and a per-entity breakdown alongside totals. However it says nothing about authorization requirements, response size limits for large multi-entity consolidations, default adjustment-type behavior, or error conditions.

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?

Front-loads the key differentiator ("PREFERRED for multi-entity consolidated reporting") and returns-shape detail before the usage sentence. Slightly redundant, since the single-response/no-pagination claim and the use-when clause partially overlap, but nothing is padded.

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

Completeness3/5

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

For a seven-parameter, no-output-schema read tool, the description does cover the return shape and the required-parameter prerequisite. It leaves gaps an agent would want filled: no indication of the result volume risk when consolidating many entities, and no guidance on how accountGroupIds, fsGroupCodes, and interimPeriodId interact.

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 every parameter is already documented, including the default that all adjustment types except "passed" are included and that omitted entityIds means all entities. The description only restates the periodId requirement, adding no format, constraint, or interaction detail beyond the schema.

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 specific verb and resource plus the exact return shape: one row per account group with totals summed across entities and a per-entity contribution breakdown. It is clearly a consolidated, account-group-grain tool, but it never distinguishes itself from the sibling pivot_trial_balance_by_account_group or pivot_consolidation_by_fs_group, leaving the agent to infer the difference from the name alone.

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?

Gives an explicit use case ("whenever the user asks about consolidated balances, cross-entity totals, or needs to compare entities side by side at the account group level") and a required prerequisite step ("use search_periods first to find period IDs if needed"). No when-not-to-use condition or named alternative is provided, so it stops short of full routing guidance.

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