Skip to main content
Glama
atezer

F-MCP (Figma MCP Bridge)

by atezer

figma_get_code_connect

Read-only

Get Code Connect hints for Figma components and instances: documentation links, component key, name, and description. Specify node IDs or enable scanning of the current page.

Instructions

Get Code Connect hints for components/instances: documentationLinks, componentKey, name, description. Pass nodeIds for specific nodes, or scanCurrentPage=true to scan the current page for COMPONENT/COMPONENT_SET/INSTANCE nodes. Note: Full Code Connect source map lives in figma.config / Figma CLI; this tool returns plugin-accessible hints only. Use Figma's official MCP get_code_connect_map for native repo paths.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
figmaUrlNoFigma file URL for routing.
fileKeyNoTarget a specific connected file.
nodeIdsNoExplicit node IDs to inspect.
scanCurrentPageNoScan COMPONENT/COMPONENT_SET/INSTANCE on current page.
maxNodesNoCap for current-page scan (default 40, max 120).
Behavior5/5

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

Annotations declare readOnlyHint=true, consistent with 'get' operation. Description adds beyond annotations: notes that only plugin-accessible hints are returned, not the full source map. Discloses limitation clearly. No contradiction.

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

Conciseness5/5

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

Two concise sentences plus a short note. Front-loads key information: what it returns and alternatives. Every sentence adds value. No redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema, description sufficiently covers return fields (documentationLinks, componentKey, name, description). Explains both usage modes (nodeIds vs scanCurrentPage). With 5 parameters and no output schema, the description is complete and leaves no ambiguity.

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?

Schema coverage is 100% with explicit descriptions, but description adds value: explains scanCurrentPage scans for COMPONENT/COMPONENT_SET/INSTANCE nodes and mentions maxNodes default (40) and cap (120). Does not explain figmaUrl/fileKey beyond schema, but these are straightforward. Adds meaningful context.

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?

Description clearly states the tool returns Code Connect hints for components/instances, listing specific fields. It distinguishes itself from sibling tools like figma_get_component and mentions alternative sources (figma.config/CLI, official MCP). Verb+resource+scope is specific.

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

Usage Guidelines5/5

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

Explicitly states when to use this tool (get hints) and what it does not cover (full source map). Provides alternative: 'Use Figma's official MCP get_code_connect_map for native repo paths.' Clear guidance on when-not-to-use.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/atezer/FMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server