Skip to main content
Glama

Set a style guide

set_style_guide
Destructive

Create or replace the style guide (free-text translation instructions) for one target language of a project, keyed by its project_language id (from get_project). You draft the instructions yourself, at most 60000 characters. A brand-new guide always marks that language's translation memory stale so future translations follow it; for an update, set recheckExistingTranslations to also re-check already-translated content (it defaults to off). When referring to a project or language in your reply to the user, use its name and locale (e.g. "French (fr-FR)") — ids (UUIDs) are for tool calls only, never show them to the user.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectYesProject id (UUID) or slug
instructionsYesThe style-guide instructions for this language (max 60000 chars)
projectLanguageIdYesTarget project_language id the guide applies to (from get_project)
recheckExistingTranslationsNoWhen updating an existing guide, also mark this language's translation memory stale (re-check existing translations). Defaults to false. A new guide always marks stale.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
styleGuideYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / instructions / description
      Previous value: -"The style-guide instructions for this language"New value: +"The style-guide instructions for this language (max 60000 chars)"
    • addedInput schema / properties / instructions / maxLength
      Added value: +60000
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, so the replace semantics are known; the description adds the 60000-character cap, the side effect that a brand-new guide marks the language's translation memory stale, and the default-off recheck flag. It does not state whether a replaced guide is recoverable, but the destructive side effects are well disclosed.

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 front-loaded: purpose and keying first, then side effects, then the UX rule about showing names/locales instead of UUIDs. Every sentence carries information, though the trailing id-formatting instruction slightly widens the scope.

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?

With annotations and an output schema present, the description covers all an agent needs to invoke correctly: required ids, the size limit, update-vs-create behavior, and the stale-memory side effect. Only the recoverability of a replaced guide is unaddressed.

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; the description goes further by clarifying that recheckExistingTranslations only matters on update and defaults to off, and that a new guide always marks memory stale. It also implicitly distinguishes project/projectLanguageId roles that the schema labels.

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 specific verb pair (create or replace), the resource (style guide / free-text translation instructions), and the scope (one target language of a project, keyed by project_language id). This cleanly separates it from get_style_guide, list_style_guides, and delete_style_guide.

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?

Explains the create-vs-update distinction and how to obtain the required project_languageId via get_project, plus the condition that selects recheckExistingTranslations. It stops short of naming sibling alternatives explicitly, but the operational context is clear.

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.