Skip to main content
Glama
figma-mcp
by ivn4k

Document overview

get_document
Read-only

Retrieve the current Figma document overview—file name, pages, active page, selection, and top-level nodes—as an initial call to orient an AI agent before inspecting or editing layers.

Instructions

File name, pages, current page, current selection and the top-level nodes of the current page. Good first call.

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": "get_document"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With readOnlyHint already declared, the description's added value is disclosing the returned fields, which matters because there is no output schema. It stops short of behavioral caveats an agent would want: whether it reads the active document only, whether top-level nodes are truncated for large files, and what happens when no document is open.

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?

Two short fragments, zero filler, with the substantive content first and the call-order hint last. It is telegraphic rather than ungrammatical, but the leading noun list lacks a verb tying it explicitly to a return value.

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?

For a zero-argument read-only tool with no output schema, the description supplies the essential return contents and a placement hint. Remaining gaps, namely document scoping and truncation behavior, are minor for a simple overview call.

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?

The tool takes zero parameters, so there is nothing for the description to disambiguate and the baseline of 4 applies. Coverage is moot at 100% on an empty object schema.

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?

The description enumerates what the tool returns (file name, pages, current page, current selection, top-level page nodes), which, combined with the name get_document, makes the resource clear. It does not, however, distinguish this from siblings that also surface selection or node data (get_selection, get_nodes), and it is phrased as a content list rather than a verb+resource statement.

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?

'Good first call' gives a positive when-to-use hint for orientation before deeper calls. It offers no when-not guidance, no prerequisites, and no named alternatives such as get_selection or get_nodes for narrower needs, so the routing signal is only implied.

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