Skip to main content
Glama

tool_check_language_picker

Validates Ren'Py language picker buttons in screens.rpy against tl/ folders and config.language, detecting dead buttons, missing entries, and miswired Language(None) calls.

Instructions

Verify the language picker in screens.rpy against tl/ folders and config.language.

Catches the common misconfiguration where the "English" button is wired to Language(None) (show source text) instead of Language("english") (apply the english translation) -- when the source language is not English, Language(None) shows the source (e.g. Chinese) text, so clicking "English" appears to do nothing.

Also detects: dead buttons pointing at tl/ folders that don't exist, and missing buttons for translations that do exist.

Args: project_path: Absolute path to the Ren'Py project root directory.

Returns: dict with {ok, source_language, available_languages, buttons, issues}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does reasonably well: it enumerates the failure modes detected and lists the return keys (ok, source_language, available_languages, buttons, issues). It does not explicitly state that the check is non-mutating or whether it requires a valid compiled project, but the read-only nature is strongly implied by 'Verify' and the diagnostic framing.

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 is front-loaded in the first sentence, followed by the diagnostic detail and the args/returns blocks. The parenthetical explaining Language(None) vs Language("english") is long but earns its place by clarifying the exact bug being detected; nothing is pure 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?

There is no output schema, so the description appropriately documents the return dict keys, and it covers the sole argument. For a focused static-check tool this is close to complete, though it omits any note on prerequisites (e.g., whether the project must be compiled) or the shape of the 'issues' entries.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% and the schema only gives the parameter name and type, so the description's 'Absolute path to the Ren'Py project root directory' adds real meaning (root directory, absolute requirement) that the schema lacks. With a single parameter fully explained, this is solid.

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 states a specific verb and resource: verifying the language picker in screens.rpy against tl/ folders and config.language. It is concrete enough to distinguish from generic file tools, but it never names the closely related siblings tool_check_translation or tool_list_translations, which an agent could plausibly confuse it with.

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 usage scenario: catching the misconfiguration where the English button appears to do nothing, plus the dead/missing button cases. It supplies context for when the tool is relevant but offers no explicit when-not-to-use guidance or alternative routing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.