Skip to main content
Glama
TreeBeam MCP Server

TreeBeam MCP Server

pivot_adjustments_by_fs_group

Summarizes adjustment impact by financial statement type, returning summed amounts and distinct counts per requested period for asset, liability, equity, revenue, and expense analysis.

Instructions

PREFERRED for high-level adjustment analysis. Returns one row per impacted financial statement type (Asset, Liability, Equity, Revenue, Expense) with summed adjustment amounts and distinct adjustment counts, for each requested period. Only financial statement types 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 impact at the financial statement 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_adjustments_by_fs_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).
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.2/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 burden and does well: it discloses the result shape (one row per FS type, only FS types with activity), that all data returns in a single response with no pagination, and the periodId prerequisite. It doesn't state read-only nature, permission/auth needs, or ordering, 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the 'PREFERRED' signal, then output shape, then inclusion rules, then usage trigger and prerequisite. Every sentence adds information an agent needs; nothing is repetitive filler.

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 7-parameter query tool with no output schema and no annotations, the description covers return shape, activity-based filtering, no-pagination behavior, and the required-period prerequisite. Remaining gaps (ordering, auth, treatment of adjustmentStatus being 'reserved for future use' beyond what the schema says) are minor.

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 the schema already documents every parameter including defaults like excluding 'passed' adjustment types and the fsGroupCodes letter values. The description only restates the periodId requirement and doesn't add syntax or semantics beyond the schema — baseline 3 is correct.

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 operation and output shape: one row per impacted financial statement type with summed adjustment amounts and distinct adjustment counts, per period. The 'PREFERRED for high-level adjustment analysis' framing cleanly distinguishes it from the more granular siblings (pivot_adjustments_by_account_group, pivot_adjustments_by_account, 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 an explicit trigger ('whenever the user asks about adjustment impact at the financial statement level') and a prerequisite (at least one periodId, obtainable via search_periods). It doesn't explicitly name the finer-grained alternatives to steer away from, but the 'high-level' framing and sibling names make the routing clear.

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