Skip to main content
Glama

What fitting a component changes

fit_preview
Read-only

Lists, in plain words, what fit_component will change in one component for a direction (colours, motion, corners, stroke, density, light or dark build, copy) and what stays as made and why, plus the JSX to use it with. Never returns source and costs nothing.

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_preview"
  }
}

Input Schema

NameRequiredDescriptionDefault
copyNoOptional copy: brand, headline, subline, cta.
roleNoThe part it plays.
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.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, and the description stays consistent while adding behavior not in the annotations: it explains the change in prose with reasons for what stays, returns usable JSX, does not return component source, and spends no credits. That cost/side-effect disclosure is genuinely useful, though the return shape could be described more concretely.

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?

A single front-loaded sentence that leads with the verb and output format; the parenthetical enumeration of affected attributes makes the scope concrete. It is dense but every clause carries information, with only mild redundancy in 'in plain words' and 'and why'.

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 does the needed work by saying it returns a plain-language explanation of changes and non-changes plus JSX. For a read-only preview tool with fully documented parameters, that covers what an agent needs before calling it, though details like whether it errors on an invalid direction are unstated.

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%, including descriptions for slug, direction_id, role, and nested copy fields, so the schema already carries parameter meaning. The description only gestures at 'direction' and 'copy' without adding format, defaults, or interaction details beyond what the schema states.

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?

States a specific verb and resource: it 'lists, in plain words, what fit_component will change in one component for a direction' and what stays the same. This cleanly separates it from the sibling fit_component, which applies the change, and names the concrete output (diff explanation plus JSX).

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?

The framing 'what fit_component will change' plus 'costs nothing' clearly signals the preview-before-apply workflow, so an agent can infer when to call it. It stops short of explicitly naming fit_component as the alternative to call after reviewing the preview, so the routing is implied rather than stated.

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