jp-keigo-guard
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
After writing Japanese business text, call jp_keigo_check. Fix every error (or call jp_keigo_fix) and rewrite the items in unfixed before sending.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| jp_keigo_checkA | Before you send a Japanese business email, notice or reply you wrote, pass the text here. Finds 二重敬語 (お読みになられる, おっしゃられる, いらっしゃられる, ご覧になられる, 召し上がられる) and the honorific chains that the Japanese government guideline 「敬語の指針」 (文化審議会答申 2007, p.31-32) lists as inappropriate (伺っていただく, ご案内していただく, ご説明してくださる). Forms the guideline accepts as settled by custom (お召し上がりになる, お見えになる, お伺いする/いたす/申し上げる) are not flagged. Returns ok, issues (code, severity, text, start, end, fix, reason, source), accepted, counts. Codes: E_DOUBLE_KEIGO, W_DOUBLE_KEIGO_NOUN (ご+noun+になられる, may be correct), E_BAD_KEIGO_LINK, W_BAD_KEIGO_LINK. Deterministic, offline. It checks word forms only, not whether 尊敬語 is used for the writer's own action. 二重敬語と不適切な敬語連結を見つけて直し案を返す。 |
| jp_keigo_fixA | Returns the text with error-level fixes applied (お読みになられました → お読みになりました, おっしゃられた → おっしゃった, ご案内していただけますか → ご案内いただけますか). Warning-level fixes only when apply_warnings is true. Issues that need a different verb (伺っていただく → お越しいただく) are returned in unfixed for you to rewrite. Returns text, applied, unfixed, remaining. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 2 tools
jp_keigo_check is read-only diagnosis (returns issues, codes, severities) while jp_keigo_fix applies those fixes and returns the rewritten text. The descriptions make the analyze-vs-mutate split explicit, and the fix tool even references the same issue model, so an agent cannot reasonably pick the wrong one.
Both tools follow an identical namespace_verb pattern (jp_keigo_check, jp_keigo_fix) with the same domain prefix and a clear action verb. No mixing of conventions or vague verbs anywhere in the set.
Two tools is thin in the abstract, but this server is a single-purpose linter and the detect/fix pair is exactly the surface such a utility needs. Nothing is padded or redundant; a third tool would only be justified by a new capability, not a new wrapper.
The check-then-fix lifecycle is closed: detection returns codes, fixes, reasons and sources, and the fixer reports both applied and unfixed items so the agent knows where to rewrite manually. Minor gaps remain (no batch/multi-paragraph mode, no way to filter severity from the check call, no explanation-only output for teaching), but agents can work around all of these.