Skip to main content
Glama

Get a style guide

get_style_guide
Read-only

Get one text of a style guide Asset — its full free-text translation instructions — 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 gets the style guide of one target language of the project, by locale or project_language id (from get_project or list_style_guides). 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

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_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.
projectLanguageIdNoWith project only: target project_language id whose guide to read (from get_project)

Output Schema

NameRequiredDescriptionDefault
idNoWith project only
localeNoBy assetId only: the locale of the text; null for a global Asset
assetIdNoBy assetId only
projectIdNoWith project only
updatedAtNoBy assetId only
instructionsYes
targetLanguageNoWith project only

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. Changed12 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 whose guide to read"New value: +"With project only: target project_language id whose guide to read (from get_project)"
    • removedInput schema / required
      Removed value: -[
      -  "project",
      -  "projectLanguageId"
      -]
    • addedOutput schema / properties / assetId
      Added value: +{
      +  "description": "By assetId only",
      +  "type": "string"
      +}
    • addedOutput schema / properties / id / description
      Added value: +"With project only"
    • addedOutput schema / properties / locale
      Added value: +{
      +  "description": "By assetId only: the locale of the text; null for a global Asset",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / projectId / description
      Added value: +"With project only"
    • addedOutput schema / properties / targetLanguage / description
      Added value: +"With project only"
    • addedOutput schema / properties / updatedAt
      Added value: +{
      +  "description": "By assetId only",
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "id",
      -  "projectId",
      -  "targetLanguage",
      -  "instructions"
      -]New value: +[
      +  "instructions"
      +]
  3. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered; the description adds genuine behavioral context beyond that — what is returned (full free-text instructions), how per-locale vs. global Assets differ in whether locale applies, and the repository-backed Workflow exception where this tool's model doesn't hold. It does not cover error behavior for a bad assetId/locale or size of the returned text, so it stops short of a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded, but the body is a single dense block interleaving three unrelated concerns (parameter modes, repository Workflow behavior, web-app Style setup, plus a general instruction about never showing UUIDs). The Style setup / pull-request detail and the final user-facing formatting rule consume significant space without helping an agent invoke this read tool.

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 read-only tool with four optional parameters and an output schema (so return values need not be described), the definition covers the branching call paths, the id sources, and the important exception for repository-backed Workflows. Nothing an agent needs in order to call it correctly is 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 would be 3, but the description adds conditional meaning the schema states only tersely: locale is required for a per-locale Asset and omitted for a global one, and locale substitutes for projectLanguageId in the project path. It also points at the source tools for each id (list_assets, get_project, list_style_guides), which materially helps selection.

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 and resource ("Get one text of a style guide Asset — its full free-text translation instructions") and immediately scopes it by assetId and locale, which is clearly distinct from list_style_guides (listing) and set_style_guide (writing). An agent can identify the operation without opening the schema.

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 lays out the two calling modes (by assetId+locale vs. by project with locale or projectLanguageId) and states the precondition that assetId and project are mutually exclusive. It also names a case where this tool does NOT apply — Workflows listed in `repositoryWorkflows` whose style guides live as files in a repo and are edited via pull request — and routes the agent to the web app's Style setup for missing files.

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.