Skip to main content
Glama

import_library_variable

Imports a library variable by key so it can be bound in a Figma file, defaulting to the active file.

Instructions

Import a library variable by key so it can be bound.

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": {
      "key": "<key>"
    },
    "name": "import_library_variable"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYes
fileNoTarget file (fileKey, id or name). Defaults to the most recently active file.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden and largely fails: it doesn't say whether import mutates the current file, what happens if the key is not found, whether importing the same key twice is idempotent, or where the imported variable lands (which collection). Only the vague "so it can be bound" implies a downstream effect.

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?

One front-loaded sentence with no filler; the action and its purpose come first. It is arguably too terse for a mutating tool, but nothing in it is wasted.

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

Completeness2/5

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

For a state-changing tool with no annotations and no output schema, the description leaves key gaps: side effects on the document, failure modes for an unknown key, and whether the imported variable must be placed in a collection. Those are exactly the details the description, not the schema, should supply.

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?

Schema coverage is 50%: the `file` parameter is documented in the schema with its default, but `key` is a bare string. The description compensates slightly by framing `key` as a lookup identifier for an existing library variable, but says nothing about key format or scope.

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?

"Import a library variable by key" gives a specific verb and resource and the mechanism of identification (key), which separates it from list_library_variables (read) and bind_variable (use). The trailing "so it can be bound" also hints at its place in a workflow, though it does not name the sibling it precedes.

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?

Usage is only implied: the phrase "so it can be bound" suggests this is a prerequisite step before binding a variable, but there is no explicit when-to-use statement, no mention of what to call instead, and no prerequisite conditions (e.g., variable must already exist in a library).

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