Skip to main content
Glama

Install a component

install_component
Idempotent

Delivers a component licensed to the account. With a direction_id the file arrives restyled for the product: every colour moved into its palette and its type set in the product's faces, so it looks made for this app rather than taken from a catalog. By default a one-line shell command that downloads the file; pass as "source" to get the file itself when you cannot run commands.

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>"
    },
    "name": "install_component"
  }
}

Input Schema

NameRequiredDescriptionDefault
asNo"command" (default): a curl command, valid for 15 minutes. "source": the licensed file.
dirNoProject-relative folder (default "components/ui").
slugYesComponent slug, for example "blob-type". Slugs come from recommend_components or search_components.
direction_idNoThe direction to restyle the file for. Always pass it when the app has a direction.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare non-read-only, non-destructive, idempotent, closed-world behavior, but the description adds real substance beyond that: the file is restyled into the product palette and typefaces when direction_id is supplied, and delivery defaults to a command rather than a file. It does not say where files land on disk or what happens to an existing file at the same path, which matters for a non-read-only tool.

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 delivery mechanism is front-loaded and the `as` alternative comes last, which is the right order. The clause "so it looks made for this app rather than taken from a catalog" is persuasive filler that could be cut without losing information.

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?

For a four-parameter, fully documented, non-read-only tool with no output schema, the description covers what is produced and how restyling works. The remaining gap is the `dir` parameter's actual effect and any overwrite behavior, which an agent needs before pointing it at a project folder.

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?

With 100% schema description coverage, the baseline is 3. The description does add meaning for direction_id by explaining the concrete restyling effect, but `dir` and `slug` receive no elaboration, and the 15-minute command expiry is only in the schema.

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?

"Delivers a component licensed to the account" is a specific verb + resource, and the rest of the text pins down the shape of the delivery (restyled file, shell command, or raw source). It does not distinguish itself from siblings like get_component or preview_component, so an agent comparing them must infer the difference from the name alone.

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

Usage Guidelines3/5

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

It gives actionable routing for the `as` parameter ("pass as 'source' ... when you cannot run commands") and states that direction_id should always be passed when a direction exists. It offers no when-to-use guidance against get_component, preview_component, or tailor_component, and no prerequisites such as licensing or account requirements.

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