Skip to main content
Glama

Set a Project's Design Config

set-design-config
DestructiveIdempotent

Merge validated theme values into an owned project to configure design tokens; requires the owner workspace capability key.

Instructions

Merge validated theme values into an owned project. Requires the owner workspace capability key.

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": {
      "projectId": "<projectId>",
      "config": "<config>"
    },
    "name": "set-design-config"
  }
}

Input Schema

NameRequiredDescriptionDefault
configYes
contextNo
projectIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the risk profile is largely covered. The description adds real value with 'merge' (existing keys are preserved, matching values overwritten) and the owner-workspace capability-key requirement, but it never says which existing values are destroyed by the merge, which is the key open question for a destructive write.

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?

Two tightly written sentences with the action front-loaded and the authorization prerequisite following it. No filler, though the brevity comes partly at the cost of the missing behavioral and parameter detail.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, nested-object mutation with no output schema and zero schema-level parameter descriptions, the definition is too thin. It should clarify merge-vs-replace semantics on nested objects, whether omission clears a field, and what the caller gets back on success or validation failure.

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

Parameters2/5

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

Schema description coverage is 0% across three parameters, including a deeply nested config object with colors, fonts, radius, icons and density sub-fields. The description only gestures at 'theme values' and 'owned project'; the 'context' string parameter (max 280 chars) and the semantics of the nested config keys are documented nowhere.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and object: 'Merge validated theme values into an owned project,' which is clearly distinct from the read-side sibling get-design-config. It does not name siblings or explicitly contrast with them, but the write/merge framing is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

The word 'merge' hints that this is a partial update rather than a replacement, and 'validated' implies values must be checked beforehand. However, there is no explicit when-to-use, when-not-to-use, or pointer to an alternative such as preview-design-system for testing a config before applying it.

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