japan-ux
v2.1.1Japanese UI + UX correctness for AI coding agents — typography, forms, keigo, JLReq checks.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
review_jp_ui Review JP UI
Review CSS/markup against the Japanese UI standard (typography, colour, font performance) and return a pass/needs_work/fail verdict with violations, JLReq/JIS citations, and fixes. The front-end correctness enforcer — run on any UI (including Western-built) before shipping to Japan; call transform_for_japan to auto-apply form/copy fixes.
| Parameter | Type | Description |
|---|---|---|
css * | string | CSS content to review against the Japanese UI standard. |
context | string | Design context for the recommended font stack. |
markup | string | Optional HTML/JSX markup for context (e.g. text-on-photo detection). |
generate_jp_form Generate JP Form
Generate culturally correct Japanese form markup with proper field order (姓→名), furigana, 3-field phone, 〒 postal address, 年月日 dates, and context-appropriate keigo. Use this when building any form for a Japanese audience.
| Parameter | Type | Description |
|---|---|---|
context * | string | Business context — determines keigo politeness level |
fields * | array | Fields to include in the form |
type * | string | Type of form to generate |
format | string | Output format |
include_labels | boolean | Include field labels |
include_validation | boolean | Include validation patterns |
language | string | Label language |
validate_jp_form Validate JP Form
Audit an existing form against Japanese UX conventions. Checks for: name field order (姓/名), furigana, 3-field phone, postal code auto-fill, keigo-appropriate button text, full-width character handling. Returns score (0-100), issues with fixes, and what passed.
| Parameter | Type | Description |
|---|---|---|
context * | string | Business context for keigo expectations |
form_markup * | string | HTML/JSX form markup to audit |
generate_jp_placeholder Generate JP Placeholder Data
Generate realistic Japanese test data for prototypes and development. Returns names (kanji + katakana furigana + romaji), addresses (real postal codes and prefectures), phone numbers (correct 3-field format), company names, and dates (both Gregorian and Japanese era format like 平成4年3月15日).
| Parameter | Type | Description |
|---|---|---|
fields * | array | Data fields to include |
age_range | string | Age range like "20-40" for date_of_birth generation |
count | number | Number of records to generate |
gender | string | Gender for name generation |
suggest_keigo_level Suggest Keigo Level
Suggest appropriately polite Japanese UI text based on context. Maps business context to keigo level (casual → very_formal) and returns the right Japanese translation for buttons, error messages, empty states, confirmations, and more. Includes alternatives for different formality levels.
| Parameter | Type | Description |
|---|---|---|
context * | string | Business context — determines keigo level |
text * | string | English UI text to translate (e.g. 'Invalid email address', 'Submit', 'No results found') |
ui_element * | string | Type of UI element |
tone | string | Optional tone override |
score_japan_readiness Score Japan Readiness
Score any page or component for Japan-readiness on a 0-100 scale. Analyzes 5 categories: forms (name order, furigana, phone, postal), copy (keigo, Japanese text, placeholders), trust (特定商取引法, phone number, company info), typography (font, size, line-height), and cultural (seasonal awareness, imagery). Returns breakdown with issues and quick wins per category.
| Parameter | Type | Description |
|---|---|---|
context * | string | Business context |
markup * | string | HTML/JSX markup to analyze |
description | string | Description of the page/component for additional context |
include_suggestions | boolean | Include priority fix suggestions with impact estimates |
transform_for_japan Transform for Japan
Transform Western markup into Japan-ready markup. Automatically fixes: name field order (firstName/lastName → 姓/名), adds furigana, splits phone into 3 fields, restructures address to 〒 postal format, translates buttons with appropriate keigo, replaces Western placeholder data with Japanese examples. Shows before/after scores and explains every change.
| Parameter | Type | Description |
|---|---|---|
context * | string | Business context — determines keigo level and conventions |
markup * | string | Western HTML/JSX markup to transform |
format | string | Output format |
preserve_styling | boolean | Preserve existing CSS classes and styles |
check_jp_typography Check JP Typography
Audit CSS and markup for Japanese typography issues. Checks: font stacks (Noto Sans JP, Hiragino, Yu Gothic), line-height (1.7-2.0 for Japanese body text), font sizes (14px body minimum, 12px captions floor), kinsoku shori (line-break: strict), text-on-photo overlays, font-feature-settings 'palt' on headings, font-synthesis, and more. Returns score, issues, and a recommended font stack for your context.
| Parameter | Type | Description |
|---|---|---|
css * | string | CSS content to audit for Japanese typography issues |
context | string | Design context for font stack recommendation |
markup | string | Optional HTML/JSX markup for additional context (background images, text-on-photo detection) |
get_seasonal_context Get Seasonal Context
Get the current Japanese seasonal context for design decisions. Returns: current season with traditional colors, active events (正月, 花見, お盆, etc.), upcoming events, the current microseason (二十四節気), recommended design colors, and warnings (e.g., do not launch during Golden Week). Covers all 24 Japanese microseasons and 24+ major events.
| Parameter | Type | Description |
|---|---|---|
day | number | Day of month. Defaults to today when month is omitted, else 15. |
month | number | Month (1-12). Defaults to the current month (server local time). |
audit_japan_ux Audit Japan UX
Comprehensive Japanese UX audit covering 7 categories: layout (density, breadcrumbs, CTA placement), typography (fonts, line-height, kinsoku shori), visual (color meanings, red-name taboo, dark theme), navigation (phone number, footer links, hamburger rules), trust (会社概要, case studies, proof numbers, legal links), content (Japanese text, FAQ, pricing tables), and mobile (viewport, tel: links, touch targets). Returns letter grade (A-F), category scores, and prioritized fixes.
| Parameter | Type | Description |
|---|---|---|
markup * | string | HTML/JSX markup to audit |
site_type * | string | Type of site being audited |
css | string | CSS content for typography and visual checks |
target_audience | string | Target audience description |
url_description | string | Description of the page for additional context |
design_direction_for_japan Design Direction for Japan
Generate a Japan-specific visual direction for a website or interface. Takes a loose brand type, audience, and industry, then returns a practical design brief covering visual direction, information density, color palette, typography, imagery style, CTA style, trust layout, and section priorities.
| Parameter | Type | Description |
|---|---|---|
audience * | string | Target audience such as 'business buyers', 'families', 'seniors', 'domestic travelers' |
brand_type * | string | Brand expression such as 'modern minimal', 'premium', 'friendly', 'traditional craft' |
industry * | string | Industry or site type such as 'B2B SaaS', 'clinic', 'luxury ryokan', 'ecommerce', 'corporate' |