Skip to main content
Glama

Set a style guide

set_style_guide
Destructive

Create or replace one text (free-text translation instructions) of a style guide Asset, by its assetId (from list_assets) and locale. By assetId, a per-locale Asset names the text by its locale (as list_style_guides lists it); a global one has a single text and takes no locale. With project (still accepted for an existing Project) it sets the style guide of one target language of the project, by locale or project_language id (from get_project). You draft the instructions yourself, at most 60000 characters. A brand-new text for a language always marks that language's translation memory stale — in every project and Workflow using the style guide — so future translations follow it; for an update, set recheckExistingTranslations to also re-check already-translated content (it defaults to off). While list_assets shows the Asset repositoryManaged, it is synced from that project's asset repository and every write is refused. These tools edit the stored Assets. A Workflow listed in list_assets repositoryWorkflows reads docs/style-guides/.md and docs/context.md on its repository's triggering commit instead, so those are edited in its files, through a pull request. A missing context file, or style guide file of a declared target language, is added in the web app by Style setup ("Draft style guides" on the Workflow's page), whose drafts pull request only adds files. 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.

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": {
      "instructions": "<instructions>"
    },
    "name": "set_style_guide"
  }
}

Input Schema

NameRequiredDescriptionDefault
localeNoLocale of the text. By assetId: required for a per-locale Asset, omitted for a global one. With project: the target language, in place of projectLanguageId.
assetIdNoId of a style guide Asset, from list_assets. Pass this or project, not both.
projectNoProject id (UUID) or slug — still accepted for an existing Project's attached Asset. Pass this or assetId, not both.
instructionsYesThe style-guide instructions for this language (max 60000 chars)
projectLanguageIdNoWith project only: target project_language id the guide applies to (from get_project)
recheckExistingTranslationsNoWhen updating an existing text, also mark this language's translation memory stale (re-check existing translations). Defaults to false. A new text always marks stale.

Output Schema

NameRequiredDescriptionDefault
styleGuideYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed7 schema fields changed
    • addedInput schema / properties / assetId
      Added value: +{
      +  "description": "Id of a style guide Asset, from list_assets. Pass this or project, not both.",
      +  "format": "uuid",
      +  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +  "type": "string"
      +}
    • addedInput schema / properties / locale
      Added value: +{
      +  "description": "Locale of the text. By assetId: required for a per-locale Asset, omitted for a global one. With project: the target language, in place of projectLanguageId.",
      +  "maxLength": 35,
      +  "minLength": 2,
      +  "type": "string"
      +}
    • changedInput schema / properties / project / description
      Previous value: -"Project id (UUID) or slug"New value: +"Project id (UUID) or slug — still accepted for an existing Project's attached Asset. Pass this or assetId, not both."
    • changedInput schema / properties / projectLanguageId / description
      Previous value: -"Target project_language id the guide applies to (from get_project)"New value: +"With project only: target project_language id the guide applies to (from get_project)"
    • changedInput schema / properties / recheckExistingTranslations / description
      Previous value: -"When 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."New value: +"When updating an existing text, also mark this language's translation memory stale (re-check existing translations). Defaults to false. A new text always marks stale."
    • changedInput schema / required
      Previous value: -[
      -  "project",
      -  "projectLanguageId",
      -  "instructions"
      -]New value: +[
      +  "instructions"
      +]
    • changedOutput schema / properties / styleGuide / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {},
      -    "properties": {
      -      "id": {
      -        "type": "string"
      -      },
      -      "instructions": {
      -        "type": "string"
      -      },
      -      "projectId": {
      -        "type": "string"
      -      },
      -      "targetLanguage": {
      -        "additionalProperties": {},
      -        "properties": {
      -          "id": {
      -            "description": "project_language id",
      -            "type": "string"
      -          },
      -          "locale": {
      -            "type": "string"
      -          },
      -          "name": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "id",
      -          "locale",
      -          "name"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "projectId",
      -      "targetLanguage",
      -      "instructions"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "assetId": {
      +        "description": "By assetId only",
      +        "type": "string"
      +      },
      +      "id": {
      +        "description": "With project only",
      +        "type": "string"
      +      },
      +      "instructions": {
      +        "type": "string"
      +      },
      +      "locale": {
      +        "description": "By assetId only: the locale of the text; null for a global Asset",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "projectId": {
      +        "description": "With project only",
      +        "type": "string"
      +      },
      +      "targetLanguage": {
      +        "additionalProperties": {},
      +        "description": "With project only",
      +        "properties": {
      +          "id": {
      +            "description": "project_language id",
      +            "type": "string"
      +          },
      +          "locale": {
      +            "type": "string"
      +          },
      +          "name": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "locale",
      +          "name"
      +        ],
      +        "type": "object"
      +      },
      +      "updatedAt": {
      +        "description": "By assetId only",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "instructions"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  3. 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
  4. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, but the description adds material side effects: a brand-new text marks that language's translation memory stale in every project and Workflow using the guide, and recheckExistingTranslations defaults to off for updates. It also discloses the hard refusal on repository-managed assets and the 60k character drafting limit. That is well beyond what 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-loaded with the core action and the addressing modes before the edge cases, and nearly every sentence carries real information. It is dense and long, with some overlap against schema constraints (the 60000-character limit) and a closing sentence about how to refer to projects/locales in the reply that is a general style rule rather than tool behavior.

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?

This is a destructive write tool with six parameters, and the description covers side effects, refusal conditions, update versus create behavior, and the alternative editing path for repository-managed Workflows. With an output schema present, no return-value explanation is needed, so nothing essential for a correct call appears to be missing.

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 still adds framing the schema does not, notably the mutual exclusivity framing ('Pass this or project, not both') and the per-locale versus global locale rule restated in operational terms. Most individual field semantics are already in the schema, so it does not go far past the baseline, but it does clarify how the parameters combine rather than merely repeating them.

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?

Opens with a precise verb and resource: 'Create or replace one text (free-text translation instructions) of a style guide Asset', scoped by assetId and locale. It also explains what the tool is NOT for (repository-synced assets, Workflow repository files edited via pull request), which separates it from list_style_guides, get_style_guide, and delete_style_guide without requiring the reader to open sibling schemas.

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?

Explicitly routes between the two addressing modes: assetId (per-locale vs global, locale required or omitted) versus project with projectLanguageId or locale. It further states refusal conditions (repositoryManaged assets, every write refused) and names the alternative path for repositoryWorkflows (edit docs/style-guides/<locale>.md through a pull request, or use Style setup in the web app). This is genuine when/when-not guidance with named alternatives.

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.