Skip to main content
Glama

Garphield

Lay out a Garphield graph

garphield_layout
Destructive

Compute and save node positions for a stored graph with the workbench's own layout recipes, and grade the result with its quality gate. Optional: a graph without positions is laid out by the browser when it opens. Use this to bake positions (for a gallery file or a stable share) or to get a quality grade. Reports which engine ran. Large graphs over the host's budget return LAYOUT_TOO_LARGE; clear: true removes saved positions. preview: true also returns a small image of the result, to check for overlaps, tangles and unreadable labels against the grade's findings; it adds a render (10-20 s on the hosted server), so ask for it when you mean to look.

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": {
      "doc": "<doc>"
    },
    "name": "garphield_layout"
  }
}

Input Schema

NameRequiredDescriptionDefault
docYesDocument reference: a stored document id, a file path, or "current" in the workbench.
modeNoforce (production Blend, or ForceAtlas2 for large graphs), levels (layered), or geo (the browser places nodes by their coordinate fields). Default: the document's layout, else force.
clearNoRemove saved positions instead, so the browser lays the graph out when it opens. Pass only doc with it.
aspectNoWidth over height of the frame to fit. Default 1.6.
levelsNolevels mode only.
previewNotrue returns a 600x400 image of the saved graph, so you can check it for overlapping nodes, tangles and unreadable labels and fix them. A render can take 10-20 s and counts toward the host's image limit; the change is saved even when no preview can be made. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint=true, readOnlyHint=false), the description discloses the destruction mechanism (clear: true removes saved positions), a specific failure mode (LAYOUT_TOO_LARGE when over the host's budget), that the engine used is reported, and the 10-20 s render cost and image-limit accounting for preview. It even clarifies that the change is saved even when no preview is produced, which is non-obvious partial-success behavior.

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?

Front-loaded with the core action before caveats, and each sentence carries information about cost, errors or defaults. It is dense and runs long for a single description, with mild overlap between the browser-layout note and the "bake positions" rationale, but nothing is padding.

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 six parameters, a nested levels object and no output schema, the description does real work: it names the error code, says the running engine is reported, and describes the preview image's purpose and dimensions-adjacent tradeoff. The nested levels object (roots, levelAttribute) is left entirely to the schema, which is the main remaining gap.

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 description coverage is 100%, so mode, aspect, levels and preview are already documented in the schema. The description's parameter content largely restates the schema (clear removes positions, preview adds a render) with one genuinely additive detail: "Pass only doc with it" for clear. mode, aspect and levels go unmentioned in the prose.

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?

"Compute and save node positions for a stored graph ... and grade the result with its quality gate" gives a specific verb (compute/save) plus resource (node positions) and a second deliverable (quality grade). It also states the engine-reporting behavior, so an agent knows both the action and the artifact produced.

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?

"Use this to bake positions (for a gallery file or a stable share) or to get a quality grade" supplies concrete trigger conditions, and the note that a positionless graph is laid out automatically by the browser effectively tells the agent when this call is unnecessary. It stops short of naming a specific sibling as an alternative, but the when/when-not framing is clear.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources