Skip to main content
Glama

Garphield

Style a Garphield graph

garphield_style
DestructiveIdempotent

Bind data fields or computed algorithms to visual channels, and set the layout mode, how links show direction (arrows), theme, tooltip templates for nodes and links, drawing values (appearance: link width and opacity, node size, curvature, label placement) and structure (Group by rings, the Backbone, or a merge into one node per field value) of a stored graph. Example binding: {"channel": "edgeWidth", "field": "amount_bn"}; a bare field name resolves to the field on the channel's target (node or edge). Strict and atomic: if any entry is invalid nothing is written and each problem comes back with a path, the expected values and suggestions. Merges by channel unless replace is true. The result echoes every stored binding. preview: true also returns a small image of the styled graph; 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_style"
  }
}

Input Schema

NameRequiredDescriptionDefault
docYesDocument reference: a stored document id, a file path, or "current" in the workbench.
themeNoDefault theme for embed links (and the saved view, if the document has one). null clears it; a saved view returns to the light default.
layoutNoLayout the workbench uses on open. Sets config only and computes no positions.
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.
replaceNotrue replaces every binding with this list; false (default) merges by channel.
bindingsNo
structureNoHow the workbench and embeds draw the graph on open: Group by, Backbone and merge. Each part changes only what is given. A merge draws with neither groups nor the Backbone: turning it on turns them off, and turning either on turns it off. The network and its positions are unchanged.
appearanceNoThe Style pane's drawing values, e.g. {"linkWidth": 4, "linkOpacity": 0.7}. Merges with the values already set; null returns them all to the defaults.
edgeDirectionNoHow links show their direction in a directed graph: arrow (arrowheads), tapered (each link narrows toward its target, the workbench default), flow (animated) or line (none).
tooltipTemplateNoEmbed tooltip Markdown with {attribute} placeholders, e.g. "### {label}\n{role}". null clears it.
linkTooltipTemplateNoEmbed hover card for links: the same Markdown over link attributes, plus {source} and {target} (the end nodes' labels), e.g. "### {source} to {target}\n{tasks} tasks". A line that is only {@markdown field} renders that attribute's own lists and emphasis. Without it links get no card; null clears it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Beyond the annotations, it discloses strict atomic validation with path/expected/suggestion errors, channel merge versus replace behavior, the echoed result, and preview cost and persistence. It also explains structure interactions and null-clearing behavior, which are exactly the destructive/reset effects an agent needs.

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 opening sentence front-loads the core action, and most clauses add useful scope or behavior. The single dense paragraph with nested parenthetical lists is harder to scan than necessary, though it is not redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex, 11-parameter nested mutation tool with no output schema, it covers bindings, structure, appearance, preview, validation and return behavior. The remaining detail is appropriately delegated to the 91%-covered schema.

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 91%, so the schema already defines the parameters in detail. The description adds a useful binding example and restates bare-field resolution, but much of the remaining parameter explanation duplicates schema text rather than adding new semantics.

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 opens with a specific verb ('Bind') and resource ('visual channels ... of a stored graph') and enumerates the styling areas it controls. It does not explicitly distinguish this tool from siblings such as garphield_layout, even though layout terminology overlaps.

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?

It gives parameter-level conditions, such as merging by channel unless replace is true and asking for preview only when you mean to look, which implies when styling is appropriate. It does not state when to choose this over garphield_layout or other siblings, nor any exclusions.

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