Skip to main content
Glama

Add a site language

add_site_language
Idempotent

Add one visitor language to a site's draft configuration while preserving the original language and all existing content. This does NOT publish anything: first use the returned preview_url to review the translated draft, and call publish_site separately only after the user explicitly approves publication. If the site still has several homepage designs, call list_variations first, show the choices, ask the user to select one, and pass that design's variation_id; never choose one on the user's behalf. The response includes translation/catalog progress. If complete is false or catalog.remaining is greater than zero, retry this same call later until the catalog is complete before publishing; retries reuse the added language and fill pending catalog entries rather than replacing the original. Requires the sites:refine scope and an editor (or stronger) site role.

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_id": "<site_id>",
      "language": "<language>"
    },
    "name": "add_site_language"
  }
}

Input Schema

NameRequiredDescriptionDefault
site_idYesThe site to add a language to, from list_sites
languageYesBCP 47 language tag, such as "es" or "pt-BR"
user_goalNoOptional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details.
variation_idNoThe selected homepage design id from list_variations. Required when the site still has several designs; omit for a built or single-design site.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=true), it discloses that nothing is published, that retries are additive rather than replacing the original language, that the response carries translation/catalog progress, and that it needs the sites:refine scope plus an editor role. The only minor gap is that preview_url's lifetime or sharing behavior isn't described.

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?

Dense but well ordered: purpose and non-publication first, then variation handling, then retry semantics, then permission prerequisites. Every sentence carries operational value, though the retry sentence is long enough to be slightly harder to scan.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a four-parameter mutation tool with no output schema, the description covers the mutation's boundaries, the prerequisite role/scope, the variation selection protocol, and the meaning of response fields (preview_url, complete, catalog.remaining), plus what to do when the operation is incomplete.

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 100%, so the baseline is 3, but the description adds real semantics: it explains why variation_id is conditional (multiple homepage designs) and constrains how to obtain and choose it, which the schema only states as a requirement without the selection protocol.

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 names a specific verb and resource ('Add one visitor language to a site's draft configuration') and immediately bounds the scope: it preserves the original language and existing content and does not publish. That distinguishes it from publish_site and from site-wide creation siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit sequencing: review preview_url first, then call publish_site only after explicit user approval; call list_variations first when multiple homepage designs exist and never pick one on the user's behalf. It also spells out the retry loop condition (complete=false or catalog.remaining>0) and what to do about it.

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