Skip to main content
Glama

apply_brand_kit

DestructiveIdempotent

Apply a reusable Brand Kit to an existing deck and, by default, validate and report planned field changes without writing. Existing deck settings stay unless overrides are enabled.

Instructions

Apply a reusable Brand Kit from config/brands/<brand_kit>.json to an existing deck inside decks/. Dry-run by default (write=false): validates the updated deck and reports planned field changes without modifying the file. Explicit deck settings are preserved unless override_existing=true. Fails closed on unknown brand_kit IDs, invalid slugs, or schema violations. Call list_brands first to inspect available kits.

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": {
      "deck": "<deck>",
      "brand_kit": "<brand_kit>"
    },
    "name": "apply_brand_kit"
  }
}

Input Schema

NameRequiredDescriptionDefault
deckYesPath to the deck JSON file inside decks/ (e.g. decks/radar-pro.json)
writeNoWhen true, atomically save the updated deck; when false (default), dry-run only
brand_kitYesBrand Kit ID from list_brands (e.g. dup-labs, investor-clean, dev-launch)
override_existingNoWhen true, overwrite explicit deck fields with kit values; when false (default), only fill missing fields

Output Schema

NameRequiredDescriptionDefault
okYes
pathYes
changesYes
writtenYes
brand_kitYes
override_existingYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.13

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, but the description goes well beyond them: it discloses dry-run-by-default behavior, that validation and a planned-change report occur without file modification, that explicit deck fields are preserved, and that the tool fails closed on unknown IDs, invalid slugs, or schema violations. That is exactly the mutation-safety context an agent needs before setting write=true.

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

Conciseness5/5

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

Five tight sentences, front-loaded with what the tool does and the default safe behavior, then the preservation rule, the failure modes, and the prerequisite. No filler or repetition beyond necessary parameter restatement.

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 mutation tool with four parameters, the description covers the default mode, the override rule, failure behavior, and the prerequisite lookup step, while return values are covered by the existing output schema. Nothing an agent needs in order to invoke it safely is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so every parameter is already documented in the input schema. The description largely restates those semantics ('Dry-run by default (write=false)', 'preserved unless override_existing=true') and adds only marginal new meaning, so the baseline of 3 applies.

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: apply a reusable Brand Kit from config/brands/<brand_kit>.json to an existing deck inside decks/. It also names the source and target locations, so an agent can distinguish it from deck-editing siblings like update_slide or auto_fix_deck 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 Guidelines4/5

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

Gives a clear prerequisite ('Call list_brands first to inspect available kits') and explains the default safe mode (dry-run) versus the opt-in write path, plus when override_existing should be used. It stops short of explicitly naming which sibling to use instead when the task is not brand application, but the context is otherwise clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.