Skip to main content
Glama
TreeBeam MCP Server

TreeBeam MCP Server

search_accounts

Search and list raw account records within a project, filtering by entity, account group, name, number, or description. Use continuation tokens to page through results when a call returns more records.

Instructions

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.

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_accounts"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoAccount name (text filter, default: [contains])
sinceNoOnly return records modified after this timestamp
numberNoAccount number/code (text filter, default: [contains])
entityIdNoFilter by entity ID (ID filter, default: [eq])
descriptionNoAccount description (text filter, default: [contains])
collectionIdYesThe project ID
accountGroupIdNoFilter by account group ID (ID filter, default: [eq])
continuationTokenNoPagination token returned by a previous call. Pass this to retrieve the next page of results.
includeDeprecatedItemsNoInclude deprecated accounts (default: false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.1

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations supplied, the description does meaningful work: it discloses that results are paginated, that a continuationToken must be echoed to continue, and that returned data is raw rather than pre-computed. Gaps remain — no statement of page size, result ordering, or any permission/collection scoping beyond the required project ID.

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 usage rule, the exclusion, and pagination — a sensible order with no filler sentences. The only weakness is the dangling external reference ("see server instructions for filter syntax"), which sends the agent out of the description for information it needs at call time.

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 9-parameter, no-annotation, no-output-schema search tool, the definition covers the critical pieces: what it returns (raw records), how to page, and which sibling class to prefer for aggregates. It is not fully self-contained because filter syntax and the returned field set are left implicit or external, but nothing essential to invoking it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3; the description adds value on top by naming entity and account group as the intended filter axes and by explaining the continuationToken's role in the workflow rather than just defining it. It loses the top mark for pushing filter semantics out to "server instructions" instead of stating the operators itself.

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 records within a project") and immediately scopes what the results are: raw records, not aggregated balances. It explicitly contrasts itself with the pivot_trial_balance_* family, so an agent can route between the two 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 Guidelines5/5

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

Gives both a positive selection rule ("look up a specific subset of accounts by entity or account group") and a hard exclusion ("DO NOT use this tool to build trial balances or financial summaries — use the pivot_trial_balance_* tools instead"), with the reason the alternative wins (pre-calculated, single response, no pagination). This is exactly the when/when-not/alternative pattern.

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