Skip to main content
Glama

figma_discover_library_variables

Read-onlyIdempotent

Discover all variable collections and variables available from enabled libraries in Figma. Grouped by collection, returns variable keys for use with preload_variables or fill/stroke variable tools. Optional nameFilter to narrow results.

Instructions

Discover ALL variable collections and variables available from enabled libraries. Uses figma.teamLibrary API to enumerate across all enabled libraries (including community libraries). Returns variable keys grouped by collection, usable with preload_variables or fillVariable/strokeVariable. Call this at build start to discover what DS variables are available. Optional nameFilter narrows results.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameFilterNoOptional substring to filter variable names (case-insensitive).
Behavior4/5

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

Annotations already declare readOnly and idempotent. Description adds details about API used, inclusion of community libraries, and return format (variable keys grouped by collection) plus further usage with preload_variables.

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?

Four sentences covering purpose, usage, and output. Some redundancy ('Discover ALL' then 'enumerate across all') but overall efficient and well-structured.

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?

Given simple tool with one optional parameter and no output schema, description adequately explains output format and integration with other tools. Annotations cover safety.

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?

Only one parameter with full schema description. Description restates 'Optional nameFilter narrows results' but adds no new semantics beyond schema.

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?

Clearly states verb 'Discover' and resource 'ALL variable collections and variables' from enabled libraries. Distinguishes from sibling style discovery tool by specifying variables. Uses specific API reference.

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 says to call at build start for discovering DS variables. Mentions optional nameFilter. Lacks explicit when-not or alternative tools, but context is clear among siblings.

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/miapre/mimic-ai'

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