Skip to main content
Glama

Languages (BM, English, ...)

site_languages

Make the site bilingual (e.g. English and Bahasa Melayu; also Chinese or Tamil) and see which pages still need translating (on React sites: which texts, kept in src/i18n/.json). Set main and also once; then translate each page with write_page at the path listed (e.g. "ms/menu.html", served at /ms/menu). The server adds the lang attribute, hreflang tags for Google and a language switch, sends /ms/... to the original page until it is translated, and marks a translation outdated when its original changes. Call without changes to see the status. Use the languages in the brief (save_brief languages) when the owner wants more than one.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "site": "<site>"
    },
    "name": "site_languages"
  }
}

Input Schema

NameRequiredDescriptionDefault
alsoNoOther languages, each in its own folder; [] makes the site single-language again
mainNoThe main language (pages at the root): en, ms (Bahasa Melayu), zh, ta
siteYesSite slug (e.g. "kopitiam-muar") or id

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

With only readOnlyHint=false and destructiveHint=false supplied, the description carries real behavioral burden and does so: it discloses server-generated output (lang attribute, hreflang tags, language switch), fallback routing (/ms/... serves the original until translated), and stale-marking when the original page changes. It also implies idempotency ("Set main and also once") and non-destructiveness ([] reverts to single-language), which is more than the annotations convey.

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?

Front-loads the purpose and the translate-next workflow, and most clauses earn their place by describing distinct behavior. It is a dense single paragraph with stacked parentheses and Semicolon-heavy phrasing that an agent must parse carefully, so it is efficient but not cleanly structured.

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?

No output schema exists, and the description compensates by describing what a no-change call returns (which pages still need translating / texts in src/i18n/<language>.json) and what the server does afterward. For a three-parameter configuration tool this is nearly complete, though it omits how to query status of an individual page and any limits beyond the schema's maxItems.

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 coverage is 100%, so the schema already documents site, main, also, their enums and the [] reset behavior; the description largely restates those semantics (main at root, one folder per additional language). It adds only modest extra meaning, such as calling the set once, and does not explain edge cases like removing a single language or the maxItems=3 limit.

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?

States a concrete, specific outcome: make the site bilingual and see which pages still need translating, plus the follow-on action of translating pages via write_page. The resource (site languages) and the effect (main + also, per-language folders such as "ms/menu.html") are unambiguous and separable from siblings like write_page and save_brief.

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?

Explicitly says "Call without changes to see the status" for the read path, and names the alternatives to use for the write path: write_page at the listed path, and save_brief languages for the owner's intent. It never states when not to use this tool (e.g. single-language sites, or sites where languages are managed elsewhere), so it stops just short of full when/when-not routing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources