Skip to main content
Glama
TreeBeam MCP Server

TreeBeam MCP Server

pivot_adjustments_by_adjustment

Review adjustments and journal entries by period with all detail line items pre-joined, including resolved account names and numbers, in a single response without pagination.

Instructions

PREFERRED for reviewing adjustments. Returns each adjustment with its line items pre-joined, including the resolved account name and account number on each line item. All data is returned in a single response with NO pagination. Use this tool whenever the user asks to see adjustments with their detail line items, or needs to review journal entries. 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_adjustment"
  }
}

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
adjustmentIdsNoOptional. Filter to specific adjustment 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 supplied, the description carries the burden and delivers the key traits: line items come pre-joined, account names/numbers are resolved server-side, and the whole result comes back 'in a single response with NO pagination' — a meaningful warning about response size. It does not explicitly state that the call is read-only or that the default type set excludes 'passed' adjustments, which are the remaining behavioral gaps.

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?

Four sentences with the strongest signal ('PREFERRED for reviewing adjustments') front-loaded, followed by return shape, response behavior, and the prerequisite. Slight redundancy between 'Returns each adjustment with its line items' and the later 'asks to see adjustments with their detail line items' keeps it from a 5.

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, 2-required read pivot with no annotations and no output schema, the description covers purpose, trigger conditions, the required-parameter rule, and the no-pagination behavior. Filtering semantics beyond periodIds (entity scoping, adjustmentTypeIds default exclusion of 'passed') are left to the schema, but they are documented there, so the definition is sufficient to invoke correctly.

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 all 7 parameters including the required periodIds and the search_periods pointer. The description's 'at least one periodId' constraint and search_periods hint merely restate what the schema says, adding no new syntax or semantics. Baseline 3 is appropriate.

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 ('returns each adjustment with its line items pre-joined') and names the returned fields (resolved account name and account number). The phrase 'with their detail line items' implicitly separates it from search_adjustments, which returns headers only, so an agent can distinguish them without opening a schema.

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 explicit when-to-use criteria ('whenever the user asks to see adjustments with their detail line items, or needs to review journal entries') and a hard prerequisite ('you must provide at least one periodId — use search_periods first'). It does not name exclusion conditions or point to pivot_adjustments_by_account as the alternative for account-scoped views, which keeps it from a 5.

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