Skip to main content
Glama
TreeBeam MCP Server

TreeBeam MCP Server

search_periods

Search and filter accounting periods within a project by name, number, dates, status, or currency. Use continuation tokens to retrieve paginated results.

Instructions

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.

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

Input Schema

NameRequiredDescriptionDefault
nameNoPeriod name (text filter, default: [contains])
sinceNoOnly return records modified after this timestamp
numberNoPeriod number/code (text filter, default: [contains])
endDateNoFilter by end date in yyyy-MM-dd format (date filter, default: [eq])
isLockedNoFilter by locked status — "true" or "false" (boolean filter)
startDateNoFilter by start date in yyyy-MM-dd format (date filter, default: [eq])
descriptionNoPeriod description (text filter, default: [contains])
collectionIdYesThe project ID
currencyCodeNoCurrency code, e.g. USD, EUR (ID filter, default: [eq])
continuationTokenNoPagination token returned by a previous call. Pass this to retrieve the next page of results.
includeDeprecatedItemsNoInclude deprecated periods (default: false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.1

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden: it discloses that results are paginated and how to continue them, and 'Search/list' implies a read-only operation. It does not state the default page size, sort order, or whether deprecated periods are silently excluded by default.

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?

Three short sentences, front-loaded with purpose and followed by filtering and pagination in priority order. The middle sentence is essentially a pointer to external documentation, which costs a little but is not wasteful filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 11-parameter search tool with no annotations and no output schema, the description covers filtering and pagination but leaves return shape, page size, and ordering unaddressed. The external deferral for filter syntax means the definition alone is not self-sufficient for correct invocation.

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%, including the continuationToken and includeDeprecatedItems semantics, so the schema already does the heavy lifting. The description's pagination sentence only restates what the continuationToken field description already says, adding no new syntax or filter-operator detail.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb-plus-resource ('Search/list accounting periods') and a scope ('within a project'), which is enough to distinguish it from the create_period, delete_period and get_period siblings. It stops short of naming any sibling explicitly, so an agent must infer that get_period is the single-record variant.

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

Usage Guidelines3/5

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

There is a real usage rule for pagination — 'if a continuationToken is returned, pass it in the next call' — which tells the agent how to iterate. However, filtering guidance is deferred entirely to 'see server instructions for filter syntax', and there is no statement of when to use this list tool versus get_period or how to narrow to a single period.

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