Skip to main content
Glama

HelloBooks AI Agents MCP Server

analyze_journal_variance

Compare two periods of journal-entry data (QBO or Xero — source auto-detected from headers) and flag accounts whose movement deviates materially between periods. Aggregates lines per account into a net total for each period, then surfaces accounts where the period-over-period change crosses a materiality threshold (≥5% relative AND ≥$100 absolute; severity high at ≥50%, medium at ≥20%, low at ≥5%). Inputs are two CSV exports — periodACsv (earlier period) and periodBCsv (later period). Optional periodALabel / periodBLabel for human-readable flag messages (e.g. "Q1 FY2024" vs "Q2 FY2024"). Max 5,000 rows per period; max 5 MB each. Use this when a user pastes two periods and asks "what changed?", "show me variances", "what jumped period-over-period". Returns a flag list ordered by largest delta, a roll-up, and a shareable URL. Both periods must be the same source — mixing QBO + Xero in one call returns an error.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
periodACsvYesRaw CSV text of the EARLIER period's journal-entry export (QBO Journal Entries or Xero Manual Journals). Source is auto-detected from the headers.
periodBCsvYesRaw CSV text of the LATER period's journal-entry export. Source is auto-detected from the headers (must match periodACsv).
periodALabelNoOptional human label for the earlier period — e.g. "Q1 FY2024". Used in flag messages.
periodBLabelNoOptional human label for the later period — e.g. "Q2 FY2024".

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description fully discloses behavior: auto-detection of source, aggregation per account, materiality thresholds (≥5% relative AND ≥$100 absolute), severity levels (high, medium, low), max limits (5,000 rows, 5 MB per period), and error conditions. It also describes the output (flag list, roll-up, shareable URL).

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?

The description is comprehensive but slightly long. It front-loads the core purpose and then details. Each sentence is informative, but some redundancy exists (e.g., repeating threshold details). Overall, it is well-structured and earns its length, but could be marginally tighter.

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

Completeness5/5

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

Given the complexity (two CSV inputs, auto-detection, threshold logic) and no output schema, the description covers inputs, limits, error conditions, and output ('flag list ordered by largest delta, a roll-up, and a shareable URL'). It also mentions severity levels. An agent has enough context to invoke or avoid this tool.

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 coverage is 100% with descriptions for each parameter. The tool description adds context beyond schema: it clarifies that periodACsv is earlier period, periodBCsv later, and explains optional labels for human readability. It also ties parameters to the overall logic (e.g., source auto-detection). This adds meaningful value.

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?

The description clearly states the tool compares two periods of journal-entry data and flags accounts with material variance. It specifies auto-detection of source (QBO or Xero) and defines thresholds. It distinguishes from sibling tools like analyze_balance_sheet or analyze_profit_loss by focusing on journal variance.

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?

The description explicitly tells when to use: 'when a user pastes two periods and asks "what changed?", "show me variances", etc.' It also sets constraints: both periods must be same source, mixing returns error, and provides max rows/sizes. No alternative tools are named, but the context is clear.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A3.8/5.0
Disambiguation4/5

Tools are largely distinct, each targeting a specific report type (balance sheet, P&L, trial balance) or functionality. Some overlap exists between QBO and Xero variants, but descriptions clearly differentiate them. Overall, an agent can reliably select the right tool.

Naming Consistency4/5

Most tools follow a consistent snake_case verb_noun pattern (e.g., analyze_balance_sheet, list_articles). A few exceptions like free_tier_eligibility and how_munimji_helps break the pattern but are still readable and predictable.

Tool Count3/5

With 29 tools, the count is on the higher side but justified by the domain's breadth (financial analysis, compliance, migration, pricing, etc.). Some reduction through parameterization (e.g., merging QBO/Xero variants) would improve scope.

Completeness4/5

The tool surface covers key areas: financial statement analysis, compliance, migration estimation, feature/pricing info, and partner programs. Missing are direct data manipulation tools (e.g., create/edit journal entries), which may be intentional for a read-only analysis agent.