Skip to main content
Glama
TreeBeam MCP Server

TreeBeam MCP Server

pivot_consolidation_by_fs_group

Generate a consolidated trial balance by financial statement group across multiple entities, with totals per statement type and a per-entity breakdown.

Instructions

PREFERRED for high-level multi-entity consolidated reporting. Returns a consolidated trial balance by financial statement group — one row per financial statement type (Asset, Liability, Equity, Revenue, Expense) with totals summed across all included entities, plus a per-entity breakdown. All data is returned in a single response with NO pagination. Use this tool whenever the user asks about consolidated financial position at the highest level, or needs a summary across all entities by financial statement type. 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_fs_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).
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

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 behavioral burden and does well: it discloses that all data returns in a single response with NO pagination, that omitted entityIds consolidates everything, and that a periodId is mandatory. It omits permissions, error behavior, and how adjustments affect totals beyond what the schema already states.

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 'PREFERRED' marker and the purpose are front-loaded, and the output shape and pagination note follow logically. A few clauses (the restated highest-level summary guidance) could be trimmed without losing information.

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 six-parameter consolidation tool with no annotations and no output schema, the description covers the return shape (per-FS-group rows plus per-entity breakdown), the no-pagination guarantee, and the entity scoping default, which is enough to call it correctly. It would be complete with an explicit pointer to the account-group variant for drill-down needs.

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%, so all six parameters are already documented, including the fsGroupCodes codes and the entityIds omission default. The description reinforces the periodIds requirement and the all-entities default but adds little syntax or semantic detail beyond the schema, which is the expected baseline when the schema does the heavy lifting.

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 names a specific verb and resource ('Returns a consolidated trial balance by financial statement group') and states the exact output shape: one row per FS type with totals across entities plus a per-entity breakdown. The 'PREFERRED for high-level multi-entity consolidated reporting' framing distinguishes it from the account-group and trial-balance siblings without needing their schemas.

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?

Usage is explicit for the primary case ('use this tool whenever the user asks about consolidated financial position at the highest level, or needs a summary across all entities by financial statement type') and it routes the agent to search_periods for required period IDs. It does not explicitly name the alternative (pivot_consolidation_by_account_group) or state when not to use it, so it falls short of full when/when-not guidance.

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