TreeBeam MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
TreeBeam is a financial management API for accounting projects. Each project contains entities, account groups, accounts, periods, unadjusted balances, adjustments, and adjustment line items.
Search Tool Filter Syntax
All search tools (search_*) support a consistent filter system. Filter parameters are arrays of strings. Each element applies a filter condition.
Operators
Operator | Meaning | Applies to |
[eq] | Exact match | All field types |
[contains] | Case-insensitive substring match | Text and ID fields |
[gt] | Greater than | Date, numeric fields |
[lt] | Less than | Date, numeric fields |
[ge] | Greater than or equal | Date, numeric fields |
[le] | Less than or equal | Date, numeric fields |
Defaults
When you pass a bare value without an operator prefix, the default operator is applied:
Text fields (name, number, description, reference, adjustmentStatus): default is [contains]
ID fields (periodId, entityId, accountId, accountGroupId, adjustmentId, adjustmentTypeId, interimPeriodId): default is [eq]
Boolean fields (isLocked, isPreparedByClient): only [eq] is supported, values are "true" or "false"
Date fields (startDate, endDate): default is [eq], format is yyyy-MM-dd
Numeric fields (amount): default is [eq]
Combining Filters
Different fields are ANDed: name: ["[contains]Cash"] with entityId: ["[eq]abc"] returns records matching BOTH conditions.
Multiple array elements for the same field are ANDed: name: ["[contains]Cash", "[contains]Equivalents"] returns records whose name contains "Cash" AND contains "Equivalents".
Multiple operator-value pairs within a single element are ORed: name: ["[contains]Cash[contains]Bank"] returns records whose name contains "Cash" OR "Bank".
Range Queries
For numeric and date fields, use multiple array elements to create ranges:
amount: ["[gt]1000", "[lt]5000"] — amounts between 1,000 and 5,000
startDate: ["[ge]2024-01-01", "[lt]2025-01-01"] — start dates in the year 2024
amount: ["[lt]0"] — negative amounts only
periodId: ["[eq]abc", "[eq]def"] — records for period "abc" AND period "def"
Common Parameters
All search tools also accept:
since (string, date-time): Only return records modified after this timestamp.
includeDeprecatedItems (boolean): Include archived/deprecated records. Default: false.
continuationToken (string): Pagination token from a previous response.
Filter Errors
Invalid filter syntax returns a 400 error. Bad filters never silently return unfiltered results.
Pivot Tools
For financial summaries, trial balances, and aggregated reporting, prefer the pivot_* tools over search_* tools. Pivot tools return pre-calculated totals in a single response with no pagination.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| treebeam_loginA | Start device flow authentication for TreeBeam. Returns a URL and code for the user to complete in their browser. The server polls for the token in the background automatically. ALWAYS display the entire output message from this tool to the user in your instructions. |
| treebeam_logoutA | Log out of TreeBeam by removing stored credentials from the OS keychain. |
| treebeam_auth_statusA | Check current TreeBeam authentication status — whether a valid token is stored and when it expires. If the user is not authenticated, log them in with the treebeam_login tool before using other tools that would require authentication. |
| list_organizationsB | List all accounting organizations accessible to the user. Results are paginated — if a continuationToken is returned, pass it in the next call to retrieve more. |
| list_projectsA | List all accounting projects accessible to the user, optionally filtered by organization. Results are paginated — if a continuationToken is returned, pass it in the next call to retrieve more. |
| list_adjustment_typesA | List all available adjustment types (e.g. PAJE, TAJE). These are global reference values not scoped to a project. Results are paginated — if a continuationToken is returned, pass it in the next call to retrieve more. |
| get_adjustment_typeB | Get a single adjustment type by ID. |
| search_entitiesB | Search/list entities within a project. Supports filtering — see server instructions for filter syntax. Results are paginated — if a continuationToken is returned, pass it in the next call to retrieve more. |
| get_entityB | Get a single entity by ID within a project. |
| create_entityC | Create a new entity within a project. |
| update_entityC | Update an existing entity within a project. |
| delete_entityB | Delete an entity from a project. Requires the entity ETag for optimistic concurrency control. |
| search_account_groupsA | Search/list raw account group records within a project. Supports filtering — see server instructions for filter syntax. Use this tool to look up a specific subset of account groups by type. DO NOT use this tool to build financial summaries by account group — use the pivot_trial_balance_by_account_group or pivot_trial_balance_by_fs_group tools instead, which return pre-aggregated totals in a single response with no pagination. Results are paginated — if a continuationToken is returned, pass it in the next call to retrieve more. |
| get_account_groupB | Get a single account group by ID within a project. |
| create_account_groupC | Create a new account group within a project. |
| update_account_groupC | Update an existing account group within a project. |
| delete_account_groupA | Delete an account group from a project. Requires the account group ETag for optimistic concurrency control. |
| search_entity_relationship_setsB | Search/list entity relationship sets within a project. Results are paginated — if a continuationToken is returned, pass it in the next call to retrieve more. |
| get_entity_relationship_setB | Get a single entity relationship set by ID within a project. |
| create_entity_relationship_setC | Create a new entity relationship set within a project. |
| update_entity_relationship_setC | Update an existing entity relationship set within a project. |
| delete_entity_relationship_setB | Delete an entity relationship set from a project. Requires the ETag for optimistic concurrency control. |
| search_accountsA | Search/list raw account records within a project. Supports filtering — see server instructions for filter syntax. Use this tool to look up a specific subset of accounts by entity or account group. DO NOT use this tool to build trial balances or financial summaries — use the pivot_trial_balance_* tools instead, which return account-level balances pre-calculated in a single response with no pagination. Results are paginated — if a continuationToken is returned, pass it in the next call to retrieve more. |
| get_accountB | Get a single account by ID within a project. |
| create_accountC | Create a new account within a project. |
| update_accountC | Update an existing account within a project. |
| delete_accountB | Delete an account from a project. Requires the ETag for optimistic concurrency control. |
| search_periodsB | Search/list accounting periods within a project. Supports filtering — see server instructions for filter syntax. Results are paginated — if a continuationToken is returned, pass it in the next call to retrieve more. |
| get_periodA | Get a single accounting period by ID within a project. |
| create_periodC | Create a new accounting period within a project. |
| update_periodC | Update an existing accounting period within a project. |
| delete_periodC | Delete an accounting period from a project. Requires the ETag for optimistic concurrency control. |
| search_unadjusted_balancesA | Search/list raw unadjusted balance records within a project. Supports filtering — see server instructions for filter syntax. Use this tool to look up a specific subset of balance records by period, account, or amount. DO NOT use this tool to calculate trial balances or summarize financial data — use the pivot_trial_balance_* tools instead, which return pre-calculated totals in a single response with no pagination. Results are paginated — if a continuationToken is returned, pass it in the next call to retrieve more. |
| get_unadjusted_balanceB | Get a single unadjusted balance by ID within a project. |
| create_unadjusted_balanceC | Create an unadjusted balance within a project. |
| update_unadjusted_balanceC | Update an existing unadjusted balance within a project. |
| delete_unadjusted_balanceB | Delete an unadjusted balance from a project. Requires the ETag for optimistic concurrency control. |
| search_adjustmentsA | Search/list raw adjustment records within a project. Supports filtering — see server instructions for filter syntax. Use this tool to look up a specific subset of adjustments by period, type, status, or other criteria. DO NOT use this tool to summarize or analyze adjustment data across periods or accounts — use the pivot_adjustments_* tools instead, which return pre-aggregated totals in a single response with no pagination. Results are paginated — if a continuationToken is returned, pass it in the next call to retrieve more. |
| get_adjustmentB | Get a single adjustment by ID within a project. |
| create_adjustmentA | Create a new adjustment header within a project. To add line items, call create_adjustment_line_item for each line after this returns. |
| update_adjustmentA | Update an existing adjustment header within a project. Line items are managed separately via the *_adjustment_line_item tools. |
| delete_adjustmentA | Delete an adjustment from a project. Requires the ETag for optimistic concurrency control. |
| search_adjustment_line_itemsA | Search/list raw adjustment line item records within a project. Supports filtering — see server instructions for filter syntax. Use this tool to look up a specific subset of line items by adjustment, account, or amount. DO NOT use this tool to analyze adjustment activity across accounts or periods — use the pivot_adjustments_* tools instead, which return pre-joined and pre-aggregated data in a single response with no pagination. Results are paginated — if a continuationToken is returned, pass it in the next call to retrieve more. |
| get_adjustment_line_itemB | Get a single adjustment line item by ID within a project. |
| create_adjustment_line_itemC | Create a new adjustment line item within a project. |
| update_adjustment_line_itemC | Update an existing adjustment line item within a project. |
| delete_adjustment_line_itemA | Delete an adjustment line item from a project. Requires the ETag for optimistic concurrency control. |
| pivot_trial_balance_by_accountA | PREFERRED for financial data retrieval. Returns a trial balance pivoted by account — one row per account with the unadjusted balance, total adjustments, and adjusted balance for each requested period. All data is returned in a single response with NO pagination. Use this tool whenever the user asks about account balances, trial balances, or financial position at the account level. You must provide at least one periodId — use search_periods first to find period IDs if needed. |
| pivot_trial_balance_by_account_groupA | PREFERRED for financial data retrieval. Returns a trial balance pivoted by account group — one row per account group with amounts summed across all accounts in that group, for each requested period. All data is returned in a single response with NO pagination. Use this tool whenever the user asks about balances or totals grouped by account group (e.g. "Cash and Cash Equivalents", "Accounts Payable"). You must provide at least one periodId — use search_periods first to find period IDs if needed. |
| pivot_trial_balance_by_fs_groupA | PREFERRED for high-level financial summaries. Returns a trial balance pivoted by financial statement group — one row per financial statement type (Asset, Liability, Equity, Revenue, Expense) with amounts summed across all account groups of that type, for each requested period. All data is returned in a single response with NO pagination. Use this tool whenever the user asks about high-level financial position, total assets vs liabilities, or financial statement summaries. You must provide at least one periodId — use search_periods first to find period IDs if needed. |
| pivot_adjustments_by_adjustmentA | 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. |
| pivot_adjustments_by_accountA | 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. |
| pivot_adjustments_by_account_groupA | PREFERRED for analyzing adjustment impact by account group. Returns one row per impacted account group with summed adjustment amounts and distinct adjustment counts, for each requested period. Only account groups 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 totals grouped by account group. You must provide at least one periodId — use search_periods first to find period IDs if needed. |
| pivot_adjustments_by_fs_groupA | 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. |
| pivot_consolidation_by_account_groupA | 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. |
| pivot_consolidation_by_fs_groupA | 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. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 56 tools
Each tool maps to a distinct resource+action (search/get/create/update/delete on period, entity, account, account group, adjustment, adjustment line item, unadjusted balance, entity relationship set), and the nine pivot tools are cleanly separated by pivot dimension. Descriptions explicitly steer agents away from using raw search tools for aggregation, which removes the main overlap risk. Boundaries between similarly named pivot tools (by_account vs by_account_group vs by_fs_group, single-entity vs consolidation) are spelled out clearly.
The dominant pattern is consistent verb_noun (create_account, update_period, delete_adjustment_line_item, pivot_trial_balance_by_fs_group). Minor deviations: list_organizations/list_projects/list_adjustment_types use list_ where the rest of the surface uses search_, and the three auth tools use a treebeam_ prefix with noun-style suffixes (treebeam_login, treebeam_auth_status). Still highly readable and predictable.
56 tools is heavy; while the accounting domain is genuinely broad, the surface is dominated by repetitive CRUD quads across eight resource types plus nine pivot variants. Several parallel pivot_* tools (by_account, by_account_group, by_fs_group, across trial_balance, adjustments_, and consolidation) could be parameterized rather than enumerated, and the auth trio is ancillary to the core surface. Volume is well past the comfortable 3-15 range and increases selection cost.
Coverage is strong: full lifecycle (search/get/create/update/delete with ETag concurrency) for accounts, account groups, periods, entities, adjustments, adjustment line items, and unadjusted balances, plus read-only reference data (organizations, projects, adjustment types) and aggregation pivots. Minor gaps: no update/delete for projects or organizations, and adjustment types are read-only, which is reasonable for reference data. No obvious dead ends for core accounting workflows.