Skip to main content
Glama

Delete a style guide

delete_style_guide
Destructive

Delete one text of a style guide Asset, by its assetId (from list_assets) and locale; the Asset itself stays. 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 deletes 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": "delete_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 delete (from get_project)

Output Schema

NameRequiredDescriptionDefault
localeNoBy assetId only: the locale of the text; null for a global Asset
assetIdNoBy assetId only
deletedYes
projectLanguageIdNoWith 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. Changed9 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 delete"New value: +"With project only: target project_language id whose guide to delete (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 / locale
      Added value: +{
      +  "description": "By assetId only: the locale of the text; null for a global Asset",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / projectLanguageId / description
      Added value: +"With project only"
    • changedOutput schema / required
      Previous value: -[
      -  "deleted",
      -  "projectLanguageId"
      -]New value: +[
      +  "deleted"
      +]
  3. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true, and the description earns extra credit by specifying the exact blast radius: only one locale's text is removed, the Asset survives, and a global Asset has a single text so takes no locale. It also discloses that ids from a prior listing are the expected inputs and that repository-backed style guides are out of scope for this deletion path.

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 deletion semantics are front-loaded and clear, but the middle of the description drifts into Workflow repository file paths, web-app Style setup, and pull-request draft behavior that is tangential to invoking this delete. The closing instruction about never showing UUIDs to the user is a global style rule that does not help select or invoke this specific tool.

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?

An output schema exists, so return values need no explanation, and the description covers the addressing modes, source tools for ids, and the out-of-scope repository-backed case. What is missing is the failure/edge behavior — e.g. what happens when the text for a given locale does not exist — which matters for a destructive call with no required parameters.

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 exceeds it by tracing each id back to its source tool (assetId from list_assets, locale as list_style_guides shows it, projectLanguageId from get_project) and clarifying that locale substitutes for projectLanguageId in project mode. It stops short of describing error behavior for a mismatched assetId/locale combination.

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 specific verb and precisely scoped resource: 'Delete one text of a style guide Asset... the Asset itself stays' — an agent immediately knows this removes a language text, not the Asset. It further distinguishes the two addressing modes (per-locale Asset vs global Asset vs project target language) that separate this tool from anything else in the sibling list.

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?

Gives concrete routing rules: use assetId + locale for stored Assets, project/projectLanguageId for project target languages, and — critically — a when-not clause stating that Workflows listed in `repositoryWorkflows` read files from the repo and must be edited via pull request instead. It does not name set_style_guide or get_style_guide as the sibling pairing for comparison, but the exclusions it does give are substantive.

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.