Skip to main content
Glama

analyze journal entries

analyze_journal_entries
Read-onlyIdempotent

Journal-entry analytics for audit and internal control: Benford first-digit distribution with MAD conformity (Nigrini bands), weekend/Korean public holiday postings, exact duplicates (date+account+amount), amounts just below an approval limit (95-100%), round millions and period-end postings; returns counts and the riskiest entries first. Signals are an order to review, not evidence of fraud or an audit opinion.

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": {
      "entries": "<entries>"
    },
    "name": "analyze_journal_entries"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNoHow many flagged entries to return (default 30)
entriesYesJournal lines
approvalLimitNoApproval limit (KRW); amounts at 95-100% of it are flagged

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already establish the read-only, idempotent, non-destructive, closed-world profile, so the bar is lower; the description adds real value by disclosing output shape ('returns counts and the riskiest entries first') and by warning that results are review signals, not fraud evidence. It does not mention the 1500-line input cap or how much data volume is practical, which would complete the picture.

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 test battery is front-loaded ahead of the output note and the interpretive caveat, so the most scannable information comes first and no sentence is filler. It is a dense, semicolon-chained single sentence that takes some parsing, but the density buys coverage across six distinct detection rules.

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 fairly complex analytics tool with no output schema, the description covers input expectations, the rule set, return ordering, and the interpretive framing of results. The main remaining gap is the absence of any statement about output structure per rule (e.g. whether each test reports its own count) or behavior on sparse/invalid rows.

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%, so a baseline of 3 already applies, but the description goes further by explaining how entry fields feed the tests: date drives weekend/holiday and period-end detection, account+amount define duplicates, and amounts at 95-100% of approvalLimit are flagged. That clarifies semantics of the nested fields beyond the per-property schema text, though it largely restates the approvalLimit description.

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 names a specific resource (journal entries) and enumerates the exact analytics performed: Benford first-digit/MAD with Nigrini bands, weekend and Korean holiday postings, exact duplicates on date+account+amount, amounts at 95-100% of an approval limit, round millions, and period-end postings. This is far more specific than a generic 'analyze' verb, and an agent can tell it apart from any calculation sibling 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 Guidelines3/5

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

Usage context is stated ('for audit and internal control') and the output is framed as 'an order to review' rather than fraud evidence or an audit opinion, which sets expectations about interpretation. However, there is no explicit when-to-use/when-not guidance, no prerequisites, and no named alternative for the case where the agent only wants a single test rather than the full battery.

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.