Skip to main content
Glama

Install a component, fitted to the site

fit_component
Idempotent

Installs a component licensed to the account, fully fitted to the direction: its colours and type become the product's, and its motion speed and intensity, corners, stroke and border weight, density, light or dark build and sample copy change to suit the site. Costs exactly what install_component costs (its price in coins on Pro 30, free on Max, free again for 30 days). By default a one-line shell command; pass as "source" to get the file itself when you cannot run commands. Call fit_preview first to see what will change.

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": {
      "slug": "<slug>",
      "direction_id": "<direction_id>"
    },
    "name": "fit_component"
  }
}

Input Schema

NameRequiredDescriptionDefault
asNo"command" (default): a curl command, valid for 15 minutes. "source": the licensed, fitted file.
dirNoProject-relative folder (default "components/ui").
slugYesThe component slug, for example "glow-button".
direction_idYesThe direction_id from set_direction (or create_direction).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations declare readOnly=false, idempotent=true, destructive=false, so safety is already covered; the description adds real context beyond that — licensing constraints ('licensed to the account'), the full pricing model (coins on Pro 30, free on Max, 30-day free period), and the notable fact that the default output is a time-limited shell command rather than a written file. It does not mention what happens to files already in the target folder.

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-loads what the tool does and what fitting entails, then pricing, then output mode, then the prerequisite call. Dense but every clause carries information an agent needs to invoke it correctly; nothing is restated from the schema verbatim.

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?

Given four parameters with full schema coverage, a real pricing/licensing model, and two output modes, the description covers the decision-relevant surface: cost, prerequisite preview, and command-versus-file delivery. Minor gaps remain around filesystem effects (overwrites, existing files in dir) and what a successful invocation returns beyond the command string.

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 would be 3; the description earns a bump by explaining the practical reason to choose as="source" ('when you cannot run commands') and by reinforcing that command is the default. It adds nothing about direction_id or dir, but the schema already describes both, including defaults.

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?

Names a specific verb and resource ('Installs a component') plus the distinguishing scope ('fully fitted to the direction'), and enumerates exactly what fitting changes (colours, type, motion, corners, stroke weight, density, light/dark, sample copy). An agent can separate this from install_component (unfitted) and fit_preview purely from the text.

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 fit_preview first to see what will change') and states the cost relationship to install_component, which is the main selection question between the two. It never explicitly says when to prefer the plain install_unfitted alternative, leaving that routing to inference.

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