Skip to main content
Glama
OpenFigma MCP

OpenFigma MCP

get_components_by_page

Lists each page's component sets and standalone components with descriptions and documentation links, excluding variants unless they have their own details.

Instructions

List each page's component sets and the components outside sets, with each one's description and documentation link. Variants are left out (get_local_components lists them), except those with a description or link of their own, listed under their set

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_components_by_page"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A4.1/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It does useful work by disclosing the filtering rule for variants and the exception for variants with their own description or link, but it omits the read-only nature, scope (all pages in the document vs. the current page), and any ordering or volume expectations for the result.

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 sentences, front-loaded with the primary output description, then the exclusion rule and the pointer to the alternative. The variant-exception clause is dense and requires a second read, but every sentence carries information.

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?

With no parameters, no annotations, and no output schema, the description must convey what comes back, and it does at the field level (sets, loose components, description, documentation link). The remaining gap is scope: 'each page's' implies document-wide coverage but never confirms it, which matters for an agent deciding whether to call it once or per page.

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 no parameter semantics to explain and the baseline is 4. The description correctly introduces no phantom inputs.

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 names a specific verb and resource ('List each page's component sets and the components outside sets') and explicitly scopes what is included versus excluded (variants). It also names the sibling that covers the excluded case ('get_local_components lists them'), so an agent can distinguish the two tools without opening either schema.

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?

It clearly states the selection condition: use this for sets and loose components, and go to get_local_components when variants are needed. It stops short of explicit 'when not to use' framing or prerequisites (e.g., whether a file/page must be open), so it is strong context rather than a full routing guide.

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