Skip to main content
Glama

read_plugin_data

Read private or shared plugin data from a Figma node. Provide the node ID and key to retrieve custom metadata, i18n tags, or design annotations.

Instructions

Read plugin data (private or shared) from a Figma node.

Use for: i18n metadata, design-system tags, custom plugin annotations, anything stored via setPluginData / setSharedPluginData.

If namespace is omitted, reads private pluginData (node.getPluginData(key)). If namespace is provided, reads sharedPluginData (node.getSharedPluginData(namespace, key)).

Returns {value: ""} (empty string) when the key does not exist — Figma's API never throws here.

Examples: read_plugin_data({node_id: "1:5", key: "ref"}) read_plugin_data({node_id: "1:5", namespace: "i18n", key: "ref"})

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
node_idYesFigma node id (resolve via find_nodes / get_selection first).
namespaceNoOptional sharedPluginData namespace. Omit for private pluginData.
keyYesKey to read.
Behavior4/5

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

With no annotations, the description explains the return value `{value: ''}` for missing keys and notes Figma's API never throws. It also clarifies the difference between private and shared data. No mention of auth or rate limits, but these are typical for the platform.

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?

The description is concise and well-structured: purpose, use cases, parameter behavior, return value, and examples. Every sentence serves a clear purpose.

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, the description fully covers return value behavior and parameter semantics. Examples provide practical context. No obvious gaps are present.

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%, so baseline is 3. Description adds value by explaining how to resolve node_id and how namespace controls private vs shared access. Examples further clarify parameter usage.

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?

The description clearly states 'Read plugin data (private or shared) from a Figma node' with specific verb and resource, and distinguishes itself from siblings like write_plugin_data. Provides explicit use cases such as i18n metadata and design-system tags.

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 description explains when to use private vs shared plugin data via the namespace parameter. It includes examples but lacks explicit when-not-to-use guidance relative to sibling tools, though the context is clear.

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/musepy/genable'

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