Skip to main content
Glama

classify_transaction

Classify Japanese tax accounting transactions by matching keywords and falling back to AI analysis when needed, returning account title, tax classification, and confidence score.

Instructions

Two-stage classifier for Japanese tax accounting. Stage 1: keyword dictionary match (14 categories × ~50 keywords). Stage 2 (= deferred to Phase 1.B): Claude API fallback. Returns 勘定科目 + 税区分 + confidence.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateYesISO 8601 date YYYY-MM-DD
memoYes取引摘要
amountYesTransaction amount (JPY)
partner_nameNo取引先名 (optional)
Behavior4/5

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

No annotations provided, but description fully discloses the two-stage process, deferred fallback, and return values. No contradictions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with purpose, no wasted words. Perfectly concise.

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?

Covers purpose, stages, output, and deferred phase. Missing confidence score range or interpretation details, but adequate for a classifier with no output schema.

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%, so parameters are well-documented in schema. Description adds no additional parameter details beyond the schema, but baseline 3 is appropriate.

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?

Explicitly states it is a two-stage classifier for Japanese tax accounting, specifying stages (keyword dictionary match and Claude API fallback) and outputs (勘定科目, 税区分, confidence). Clearly distinguishes from sibling tools.

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?

Describes when to use (for Japanese tax accounting classification) and the two-stage process. Doesn't explicitly state when not to use or compare to siblings like correct_classification, 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.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/michielinksee/bantou'

If you have feedback or need assistance with the MCP directory API, please join our Discord server