Skip to main content
Glama

Get Component

get_component
Read-onlyIdempotent

Returns component metadata by resource_key or legacy slug, with preview and entitlement state, without a Framer copy URL or source. agent_guide, when present, says what it is, when to use or avoid it, every editable setting (type, default, range, what it changes, the prop it maps to) and how to install it. Entitled source is returned by prepare_item_install. Does not consume a copy: use it to compare options before installing. With variations (2 to 6), it also returns variation_plan: built variants of this item to preview side by side (setting changes from its control panel, or takes restyled with another design family's DESIGN.md), the copies they need before anything is retrieved (cost, ask_first), an install-once recipe and the rules every variant keeps. It checks this account can install the item and delivers 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>"
    },
    "name": "get_component"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYes
directionNoWith variations: calmer, bolder, lighter or darker variants.
variationsNoHow many built variants to plan (2 to 6). Omit for the plain metadata.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / direction
      Added value: +{
      +  "description": "With variations: calmer, bolder, lighter or darker variants.",
      +  "enum": [
      +    "calmer",
      +    "bolder",
      +    "lighter",
      +    "darker"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / variations
      Added value: +{
      +  "description": "How many built variants to plan (2 to 6). Omit for the plain metadata.",
      +  "maximum": 6,
      +  "minimum": 2,
      +  "type": "integer"
      +}
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so the bar is lower, yet the description still adds real behavior: no copy is consumed, it verifies this account can install the item, and it 'delivers nothing' (no source). It also discloses the conditional return of variation_plan with cost/ask_first obligations when variations are requested. This goes meaningfully beyond the annotations without contradicting them.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The scoping statement is front-loaded, but the second sentence is a long run-on that crams the entire agent_guide contents (type, default, range, mapped prop) into a parenthetical, and the variation_plan sentence is similarly overloaded. The information is valuable but unstructured and hard to parse on a first read.

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 carries the return-value burden and does address it: metadata, preview, entitlement state, agent_guide contents, and variation_plan with install-once recipe and variant rules. What is missing is any mention of failure behavior (e.g., slug not found, item not installable) and a clearer breakdown of the variation_plan fields.

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?

The schema gives only 'slug: string' with no description, and the description supplies the key missing semantic — that it accepts a resource_key or a legacy slug. It also explains the effect of 'variations' (2–6 triggers variation_plan with built variants) rather than just restating the range. 'direction' adds little beyond its schema enum.

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?

States a specific verb and resource — returns component metadata by resource_key or legacy slug, including preview and entitlement state — and clarifies what it does not return (copy URL, source). It also routes source retrieval to prepare_item_install, which separates it from a sibling. The dense jargon (agent_guide, variation_plan, DESIGN.md) slightly muddies the opening sentence, keeping it below a 5.

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?

Explicitly tells the agent to use it 'to compare options before installing' and notes it does not consume a copy, giving a clear pre-install decision context. It also names prepare_item_install as the alternative when entitled source is needed. There is no explicit statement of when to avoid it (that is deferred to agent_guide), so it falls short of full when/when-not coverage.

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