Skip to main content
Glama

Get classification stats

get-classification-stats
Read-onlyIdempotent

How one month's bank-feed lines were classified: taken as suggested, overridden, split, or chosen with no suggestion, and the share that needed a person's choice.

WHEN TO USE:

  • "How much of the month did the suggestions get right?" after an accept-suggestions run

  • Month-end review of the inbox: what is still open, and where suggestions were overridden

PARAMETERS:

  • period (required): the month, YYYY-MM, over the lines' own dates

  • entity_id (optional): omit for the group parent

RETURNS: lines (committed lines that recorded an outcome), accepted, overridden, unsuggested, split, unstamped (committed before outcomes were recorded, outside the share), human_choice_share (null when no line recorded an outcome), open_lines (still captured or classified), and by_source: the same counts per suggestion source (such as agent_default, open_item, or tier0 for the bank's own category; none for lines with no suggestion), largest first.

RELATED TOOLS:

  • list-event-blocks — the lines themselves

  • accept-suggestions — take the open suggestions in bulk

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": {
      "period": "<period>"
    },
    "name": "get-classification-stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
periodYesThe month, YYYY-MM.
entity_idNoThe entity whose books this acts on, by id (get-graph-info lists them). Omit for the group parent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover read-only/idempotent/non-destructive, but the description adds real behavioral context: 'unstamped' lines are excluded from the share, and human_choice_share is null when no line recorded an outcome. These are non-obvious semantics an agent could not infer. It stops short of noting cost or ordering caveats beyond 'largest first'.

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?

Sectioned and front-loaded, with the one-line summary ahead of WHEN TO USE and PARAMETERS. The RETURNS block is dense but justified because no output schema exists; a few phrases ('such as agent_default, open_item, or tier0') could be tightened.

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?

With no output schema, the description carries the return-shape burden and does so, defining every counter and the by_source breakdown. Slight gap: it does not indicate whether counts are per-line or per-transaction, or any period-boundary behavior.

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 coverage is 100%, so the schema already explains both parameters; baseline is 3. The description does add meaning by specifying the period is applied 'over the lines' own dates', clarifying which date basis governs the aggregation, which the schema does not state.

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 resource with scope: 'How one month's bank-feed lines were classified,' enumerating the outcome categories (accepted, overridden, split, unsuggested) so it is clearly a stats/aggregate tool, not a line lister like list-event-blocks.

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?

A dedicated WHEN TO USE block names two concrete situations ('after an accept-suggestions run', month-end inbox review) and the RELATED TOOLS section routes to list-event-blocks for the underlying lines and accept-suggestions for bulk action. The agent knows both when to call this and what to call instead.

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.