Skip to main content
Glama

Garphield

Highlight or focus part of a Garphield graph

garphield_focus
DestructiveIdempotent

Save named sets of nodes and focus the view on them; the app, share links, embeds and PNG exports all show the result. A set comes from exactly one of: nodes (ids), edges ([source, target] pairs, kept as their endpoints), path (a shortest path from one node to another), top (the k highest or lowest by a field or algorithm such as degree), or match (a range, values, or one node's value of a field or algorithm, e.g. a louvain community). filters fade (default) or hide everything outside a set ({"set": "path"}) or outside a range or values of a field or algorithm. mark rings a set's nodes. clear empties the filters, or with "all" every set too. Example, highlight a path: {"sets": [{"id": "route", "path": {"from": "a", "to": "e"}}], "filters": [{"set": "route"}]}. Show only the top 20 by degree: {"sets": [{"id": "hubs", "top": {"algorithm": "degree", "k": 20}}], "filters": [{"set": "hubs", "mode": "hide"}]}. Strict and atomic: if anything is invalid nothing is written, and each problem comes back with a path and suggestions (unknown node ids suggest near ids and nodes with that label).

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

Input Schema

NameRequiredDescriptionDefault
docYesDocument reference: a stored document id, a file path, or "current" in the workbench.
markNoRing this set's nodes (the border channel bound to the set). null removes a set ring.
setsNo
clearNoApplied first. "filters" empties the filter stack; "all" also deletes every set and every binding that reads one.
filtersNoMerged into the filter stack by id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, but the description adds real substance beyond them: atomic all-or-nothing writes ("if anything is invalid nothing is written"), a structured error shape with paths and near-id suggestions, and the blast radius of clear:"all" (deletes every set and every binding that reads one). It also notes the result propagates to the app, share links, embeds and PNG exports. It never contradicts the annotations.

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

Conciseness3/5

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

The core is front-loaded in the first clause, and every clause does carry information, but the body is a dense semicolon-chained block with no line breaks or grouping by field. The two inline JSON examples are the most valuable part and are buried mid-paragraph, making the definition harder to skim than it needs to be.

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 5-parameter mutation tool with no output schema and deep nested set/filter structures, the description covers construction modes, view modes, destructive semantics, atomicity and error reporting. What is missing is small: no note on the 20-set/20-filter caps or on what the call returns on success, though the absence of an output schema makes the latter forgivable.

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?

With 80% schema coverage the baseline is 3, but the prose explains semantics the schema only sketches: that edges are kept as their endpoints, that path follows link direction on a directed graph, that top takes highest/lowest by a field or algorithm, and that match can key off one node's value (the louvain-community example). The default fade mode and the set-vs-criterion filter forms are also clarified.

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 opening clause gives a concrete verb and resource: "Save named sets of nodes and focus the view on them," then enumerates the five ways a set is built and the three view effects (filters, mark, clear). An agent can tell this is the selection/highlight tool rather than layout, style or export. It stops short of naming a sibling to defer to, so it lands at 4 rather than 5.

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?

Usage is unusually well taught for the in-tool branches: it states that a set comes from exactly one of nodes/edges/path/top/match, that filters default to fade, and gives two worked JSON examples (path highlight, top-20-by-degree with hide). It does not say when to reach for garphield_style or garphield_layout instead, so cross-tool routing is left implicit.

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