Skip to main content
Glama
xlzuvekas

Figma Copilot

by xlzuvekas

get_styled_text_segments

Extract styled text segments from a Figma text node, returning selected properties such as font size, font name, line height, and text decoration.

Instructions

Get detailed text segments with all their styling properties

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endNoOptional end index
startNoOptional start index
fieldsYesText properties to retrieve
nodeIdYesThe ID of the text node
Behavior2/5

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

No annotations are provided, so the description bears full responsibility for behavioral disclosure. It states only the basic function, with no mention of read-only nature, performance implications, or required permissions. Minimal transparency beyond the core action.

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?

The description is a single short sentence with no wasted words. It achieves clarity but lacks structure; a brief list or additional context could improve it without significant bloat.

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?

With 4 parameters, no output schema, and no sibling differentiation, the description omits critical context: what a 'text segment' is, how start/end indices relate to segments, and the return format. The tool's role among 70+ siblings is unclear.

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 100%, but the description adds little beyond, repeating 'styling properties' without explaining key parameters like 'start' and 'end' indices. The agent must infer their meaning from the schema descriptions, which are brief. The description adds marginal value.

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 states it retrieves text segments with styling properties, matching the tool's name. However, it says 'all their styling properties' while the schema requires a 'fields' parameter to select specific properties, creating slight ambiguity. It does not distinguish from siblings like 'get_text_style_range' or 'get_text_decoration_range'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this tool versus related siblings such as 'get_text_style_range', 'get_text_decoration_range', or 'scan_text_nodes'. The agent receives no context about appropriate use cases or exclusions.

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/xlzuvekas/figma-copilot'

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