Skip to main content
Glama
TreeBeam MCP Server

TreeBeam MCP Server

search_account_groups

Search and list raw account group records in a project, filtered by name, number, type, or modified date. Use pagination tokens to retrieve additional results.

Instructions

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.

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>"
    },
    "name": "search_account_groups"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoAccount group name (text filter, default: [contains])
sinceNoOnly return records modified after this timestamp
numberNoAccount group number/code (text filter, default: [contains])
descriptionNoAccount group description (text filter, default: [contains])
collectionIdYesThe project ID
continuationTokenNoPagination token returned by a previous call. Pass this to retrieve the next page of results.
accountGroupTypeCodeNoAccount group type code — a (asset), l (liability), q (equity), r (revenue), x (expense) (ID filter, default: [eq])
includeDeprecatedItemsNoInclude deprecated account groups (default: false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.1

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description must carry the behavioral load. It does disclose pagination semantics and the continuationToken round-trip, and it signals the records are raw rather than aggregated. It stops short of covering read-only safety, permissions, or result ordering, but the pagination disclosure is the operationally critical piece.

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-loaded with purpose, then the exclusion rule, then pagination behavior — a sensible priority order with little wasted text. The 'see server instructions for filter syntax' pointer pushes essential information outside the definition, which is a minor structural weakness.

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 an 8-parameter read tool with full schema coverage and no output schema, the description covers the pieces an agent could not infer: raw vs. aggregated output, when to prefer siblings, and pagination continuation. It could say more about what a record contains or default ordering, but nothing essential to calling it correctly is missing.

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 the schema already explains every filter, its default match mode (contains/eq), and the accountGroupTypeCode enumeration. The description only adds the general notion of type-based subsetting and the pagination token, which the schema also covers — 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 ('Search/list raw account group records within a project') and immediately frames the scope as raw, unaggregated records, which distinguishes it from the pivot siblings that return totals. An agent can tell what this returns without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives both a positive condition ('look up a specific subset of account groups by type') and an explicit negative one ('DO NOT use this tool to build financial summaries'), naming the two concrete alternatives (pivot_trial_balance_by_account_group, pivot_trial_balance_by_fs_group) and the reason (pre-aggregated, no pagination). That is a complete routing rule.

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