Skip to main content
Glama
KasayoDotCom

Identity Forge MCP

Official

Apply a theme to the current project

apply_theme

Write a design kit into a project (DESIGN.md, tokens, stamp). Detects conflicts and aborts by default to save user edits; preview for dry run, force to overwrite.

Instructions

Write a design kit into a project on disk: DESIGN.md, a tokens file named for the chosen format, and identityforge.json, a stamp recording the applied kit and a hash of every file written. This is the only tool here that touches the filesystem. It reads the stamp before writing, so it can tell its own output from the user's work. A file that already exists but is not recorded in the stamp, or one whose content changed since it was written, is a CONFLICT: by default the tool then writes NOTHING, names every conflicting file, and returns an error, so a hand-written DESIGN.md survives. Files whose content already matches the kit are left untouched. Set preview to plan without writing anything at all, and force to overwrite conflicting files, which destroys their current content permanently with no recovery path. Everything is computed before the first write, so a failed fetch cannot half-apply. Call it once the user has settled on a kit; get_design_md and get_tokens inspect a kit without writing. The stamp also records the kit's permanent id and its version as the export reported them, which is what a later apply diffs against: re-applying tells you whether the kit itself moved to a new version, or whether only the rendered file changed. A version of null means the export did not report one, and must never be read as version 0. Free kits are public, and a Pro kit returns 403 unless the key is entitled.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dirNoTarget directory to write into, absolute or relative to the server's working directory. Default: the MCP server's working directory. The stamp identityforge.json is written at its root.
slugYesPermanent id or slug of the kit to apply, from list_themes / search_themes. Prefer the id: it never moves, while a slug can be renamed and a retired slug keeps resolving through an alias.
forceNoApply despite conflicts. Default false. DESTRUCTIVE: it overwrites files this tool did not write or that were edited after it wrote them, their current content is gone permanently, and the result names each one. Only pass it after the user has seen the conflicting files and agreed to lose them.
previewNoDry run. Default false. When true nothing is written at all, not even the stamp, and the result is the plan: which files would be created, which overwritten, which are already identical, and which conflict. Use it before applying into a project that may already have a DESIGN.md, and to show the user what would change.
tokensEntryNoAdvisory note for the stamp: the project-relative path where the tokens file gets wired in, e.g. 'src/app/globals.css'. Recorded for the next agent, nothing is written to it. Carried forward from the previous stamp when omitted.
tokensFormatNoToken file format to write: dtcg (W3C JSON) | css (variables) | tailwind-v3 (config) | tailwind-v4 (@theme) | shadcn-registry. Default dtcg. Match it to the project's styling layer.
Behavior5/5

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

With no annotations provided, the description carries the full burden and does so thoroughly: it discloses conflict detection and the write-nothing-on-conflict behavior, names the destructive consequences of force, explains preview as a no-write dry run, guarantees no partial application, and clarifies version null semantics and Pro kit 403 errors. This far exceeds the minimum required for behavioral disclosure.

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?

The description is long but every sentence carries substantive behavioral information, and it is front-loaded with the core action and outputs. It could be improved by using bullet points or headings for conflict, preview, and stamp semantics, but the density is justified by the tool's complexity and safety implications.

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?

Given the tool's complexity, the absence of annotations, and the absence of an output schema, the description is exceptionally complete. It covers what files are written, conflict handling, error responses, the preview plan, the force destructive path, atomicity, stamp behavior, version interpretation, and access restrictions. An agent has enough context to select and invoke this tool safely without further documentation.

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% and each parameter already has a detailed description, so the baseline is 3. While the tool description adds conflict-related context around force and preview, these are largely repeated in the schema parameter descriptions. No parameter meaning is significantly enhanced beyond 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?

The description leads with a specific verb and resource: 'Write a design kit into a project on disk' and enumerates exactly what gets written (DESIGN.md, tokens file, identityforge.json). This clearly distinguishes it from siblings like get_design_md and get_tokens, which only inspect without writing.

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 states 'This is the only tool here that touches the filesystem' and advises calling it 'once the user has settled on a kit', while naming the alternatives 'get_design_md and get_tokens inspect a kit without writing'. This gives clear when-to-use and alternative guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/KasayoDotCom/identityforge-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server