Skip to main content
Glama

Design Studio

penpot_apply_tokens

Create a token set proposal the user has explicitly approved. CHANGES THE FILE: adds one new token set; nothing existing changes. Single use. Stops at the first failure; it is not atomic. Returns success, failed-before-edit, partially-applied or uncertain with the set id, then a verification. Never call it again for the same proposal: after uncertain or partially-applied, call penpot_verify_tokens.

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": {
      "proposalId": "<proposalId>"
    },
    "name": "penpot_apply_tokens"
  }
}

Input Schema

NameRequiredDescriptionDefault
proposalIdYes

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.6/5.0
Behavior5/5

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

Annotations cover the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false), and the description adds genuinely new behavioral detail: additive-only mutation, non-atomic execution, stop-at-first-failure semantics, and the enumerated outcome states. This is consistent with the annotations rather than contradicting them.

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?

Front-loaded with the mutation and its blast radius, then single-use constraint, then failure semantics, then recovery routing. No sentence is filler and the ordering matches the agent's decision sequence.

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?

With no output schema, the description reasonably enumerates the result states and the verification step. The one gap is guidance on the failed-before-edit outcome — whether that state leaves the file untouched and safe to retry — which would matter for a non-idempotent write.

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 description coverage is 0%, so the description must compensate for the single proposalId parameter. It adds useful meaning by tying the id to an approved proposal ("for the same proposal"), but never says where the id comes from (presumably penpot_propose_tokens) or how it relates to the t_ pattern in the schema.

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?

"Create a token set proposal the user has explicitly approved" states a specific verb and resource, and the following clause ("adds one new token set; nothing existing changes") pins down the exact scope of mutation. It is clearly distinguishable from sibling write paths such as penpot_apply_changes and penpot_propose_tokens.

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?

Explicit when-to-use (an approved proposal), when-not ("Never call it again for the same proposal"), and a named alternative for the failure path ("after uncertain or partially-applied, call penopt_verify_tokens" — i.e., penpot_verify_tokens). It also declares the single-use nature, which prevents repeat invocation.

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.

Resources