Skip to main content
Glama

Learn classification defaults

learn-classification-defaults
DestructiveIdempotent

Seed each counterparty's default account from the bank lines already committed to the books, one for each entity whose lines it has: the account most of those lines went to becomes the default, with the lines that agreed counted as confirmations. A default already there is kept. Its still-open lines are then suggested from the default. Run it once on books that were classified before defaults were learned; after that, every commit teaches the default by itself. dry_run reports what would be learned without writing it.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "learn-classification-defaults"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNoReport what would be learned without writing it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, readOnlyHint=false and idempotentHint=true, so the safety profile is known. The description earns credit for going beyond that: it discloses that existing defaults are preserved rather than overwritten, that still-open lines get suggested as a secondary side effect, and that dry_run previews without writing. What is missing is any statement of scope of impact (how many counterparties are touched) or reversibility.

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?

Purpose and side effects are front-loaded in the first sentence, and each subsequent sentence adds new information (preservation rule, post-run learning, dry-run). Some phrasing is tangled, notably 'one for each entity whose lines it has,' which costs a re-read, but there is no filler.

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 destructive, one-parameter batch mutation with no output schema, the definition covers the important ground: what gets written, what is left alone, what side effect follows, and how to preview. An output schema is absent, so the description's silence on return shape is acceptable, though it could say what dry_run actually reports.

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?

There is a single optional boolean, and the schema already documents it at 100% coverage with essentially the same wording ('Report what would be learned without writing it'). The description repeats that phrasing rather than adding nuance such as what the report contains or whether the run is a no-op in every respect. With full schema coverage, the baseline of 3 applies.

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 names a specific operation: seeding each counterparty's default account from bank lines already committed, with the majority-target line winning. That is a concrete verb-plus-resource statement an agent can act on. It does not differentiate itself by name from any sibling, but no sibling in the list plausibly overlaps, so the gap is minor.

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

Usage Guidelines4/5

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

It gives a clear trigger and a clear exclusion: 'Run it once on books that were classified before defaults were learned; after that, every commit teaches the default by itself.' That tells the agent both when this tool is needed and when running it again is pointless. It stops short of naming an alternative tool or stating prerequisites such as permissions, so it is not a full 5.

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.