Skip to main content
Glama

fit_section

Resize a section or frame without auto layout to wrap its children in configurable padding while preserving each child’s canvas position.

Instructions

Resize a section (or a frame without auto layout) to wrap its children with padding (default 40). Children keep their position on canvas; the container moves/resizes around them. Give nodeId (returns the node) or nodeIds (returns per-node results with {id, error} on failure).

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

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it discloses the default padding (40), that children keep their canvas position while the container moves/resizes around them, and that batch calls return per-node {id, error} results on failure. It omits any mention of permission requirements or behavior on nodes that are already tightly sized.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences, front-loaded with the action and its effect, then the parameter contract. Every clause earns its place: the padding default, the positional guarantee, and the return-shape distinction all change how the agent calls the tool.

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 four-parameter mutation tool with no annotations and no output schema, the description covers the essentials: what is resized, what stays fixed, the default padding, and the return shape for both call forms. The remaining gap is the undocumented 'file' parameter and any failure semantics for single-node calls.

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 only 25% — only 'file' is documented in the schema — but the description compensates by giving the default for 'padding' (40) and by explaining the differing return semantics of 'nodeId' versus 'nodeIds' with their minimum-one-item batch shape. The new meaning added is real but partial, and the description never addresses what 'file' defaults to or how it interacts with the node identifiers.

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?

Uses a specific verb ('Resize') and resource ('a section (or a frame without auto layout)'), and states the effect precisely: wrapping children with padding. It doesn't name a competing sibling such as create_section or align_nodes, so the differentiation comes from the applicability clause rather than explicit routing.

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?

Clearly scopes applicability to sections and frames without auto layout, which tells the agent when the tool is valid, and it distinguishes the two invocation forms by explaining what nodeId versus nodeIds returns. It stops short of stating exclusions or naming an alternative tool for the cases it does not handle.

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