Skip to main content
Glama
fabkho
by fabkho

Scaffold Locale

scaffold_locale

Creates empty locale files for new languages, copying the default locale's key structure with blank values. Supports JSON and PHP formats, so missing locales can be added before translating.

Instructions

Create empty locale files for new languages. Copies the key structure from the default locale with all values set to empty strings. Supports both JSON (Nuxt) and PHP (Laravel) formats. Does NOT modify framework config — the agent must add the locale to the framework config before calling this tool.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
layerNoScope scaffolding to a single layer (e.g., "root", "app-admin"). If omitted, scaffolds across all layers. Call discover to discover available layers.
dryRunNoWhen true, returns what files would be created without writing them. Default: false.
localesNoLocale codes to scaffold empty files for (e.g., ["sv", "ja", "pt-BR"]). If omitted, auto-detects locales defined in config that are missing locale files.
projectDirNoAbsolute path to the project root. Defaults to I18N_PROJECT_DIR, then server cwd. Example: "/home/user/my-app".
Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses that values are set to empty strings, that JSON and PHP formats are supported, and that it does not modify the framework config. It does not mention what happens if files already exist or what the return value is, which prevents a perfect score.

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?

Every sentence earns its place: the main action, the key-structure behavior, supported formats, and the all-important config caveat are all front-loaded and concise. No filler or redundancy.

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 write/scaffold tool with 4 params and no output schema, the description is reasonably complete. It explains the behavior, the data format, and the critical prerequisite about config. The only notable gap is that it does not describe what the tool returns (e.g., created file paths or summary) for non-dry-run calls.

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 the schema already documents all 4 parameters. The description does not add new parameter-level semantics, but it provides useful background about locale structure and formats, which slightly supports understanding. 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?

The description opens with a specific verb and object ('Create empty locale files for new languages') and explains the exact behavior: copying the default locale's key structure with empty values. This clearly distinguishes it from sibling tools like write_translations, get_translations, or translate_missing.

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 explicitly states when to use it (new languages needing scaffolded files) and provides the key prerequisite warning that the agent must add the locale to the config first. It also explicitly prescribes 'Does NOT modify framework config.' It does not name alternative tools, but the usage 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/fabkho/the-i18n-kit'

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