Skip to main content
Glama

monorail_component

Retrieves Figma component information for a node, including main component, variant properties, component set, and sibling variants; works with instances, components, and component sets.

Instructions

Get component info for a Figma node. Returns main component, variant properties, component set, and sibling variants. Works on instances (returns source component), components, and component sets.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "monorail_component"
  }
}

Input Schema

NameRequiredDescriptionDefault
node_idNoFigma node ID. Can be an instance, component, or component set. If omitted, uses selected node.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full load and does a fair job: "Get" implies a non-mutating read, and it enumerates the returned fields (main component, variant properties, component set, sibling variants). It also discloses the key edge-case behavior that an instance resolves to its source component, though it is silent on failure modes for non-component nodes and on permissions.

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?

Three short sentences, front-loaded with the purpose, then return values, then applicability. The third sentence largely duplicates the accepted node types already stated in the schema's node_id description, a minor redundancy but not harmful.

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?

There is no output schema, so the description must describe the return payload, and it does so concretely. For a one-parameter read tool with no annotations, the remaining gaps (error behavior, permissions) are modest rather than disqualifying.

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?

The single parameter has full schema description coverage, including the default behavior when omitted, so the description need not restate it. It adds no additional meaning about the node_id format or ID scoping beyond what the schema already provides, which is the expected baseline for 100% coverage.

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?

"Get component info for a Figma node" names a specific verb and resource, and the follow-up sentences clarify exactly what information is returned. It does not name a sibling tool for contrast, but the component-metadata focus is distinct enough from generic read tools like monorail_probe or monorail_find.

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?

The description tells the agent which node types are acceptable (instances, components, component sets) and what happens when an instance is passed, which is useful routing context. It never states when to prefer this over other inspection tools, nor any exclusions or preconditions, so usage is implied rather than prescribed.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.