Skip to main content
Glama

Tailor a component

tailor_component
Read-only

Configures one component for the direction: its colours from the palette, its text from the user's copy, its pace from the motion. Returns the tailored JSX and what was changed, and says when a component's own colours cannot 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": {
      "direction_id": "<direction_id>",
      "slug": "<slug>"
    },
    "name": "tailor_component"
  }
}

Input Schema

NameRequiredDescriptionDefault
copyNoText for this part, in the user's words.
roleNoThe part it plays.
slugYesComponent slug, for example "blob-type". Slugs come from recommend_components or search_components.
direction_idYesThe direction_id from create_direction.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true and openWorldHint=false, so the description earns credit for disclosing the return payload (tailored JSX plus a change report) and a real limitation: it reports when a component's own colours cannot be overridden. "Configures" sits in slight tension with readOnlyHint=true, but the framing of returning computed JSX rather than persisting anything keeps it consistent.

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 sentences, front-loaded with the core action and its scope, followed by the return contract. Nothing is redundant, though the middle clause is a compressed list that an agent must parse carefully.

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 correctly takes on the job of describing the return value and even surfaces an edge-case behavior. For a 4-parameter tool with full schema coverage and a declared safety profile, the main remaining gap is the prerequisite chain (valid direction_id and slug source), which is left entirely to the schema.

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 100%, so every parameter including the nested copy object and the role enum is already documented, which sets the baseline at 3. The description loosely maps its three clauses onto copy, role and direction but adds no format, default, or constraint detail beyond 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?

The description uses a specific verb ("Configures") on a specific resource ("one component for the direction") and enumerates the three dimensions it aligns: colours from the palette, text from the user's copy, pace from the motion. An agent can tell this is per-component styling, not whole-page composition. It stops short of naming a sibling such as fit_component or preview_component to sharpen the boundary.

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?

There is no explicit when-to-use or when-not-to-use guidance, and no alternative is named. The only usage signal is implicit — "one component" and "for the direction" hint that a direction and slug must already exist — but that prerequisite is stated in the schema descriptions, not in the description itself.

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