Skip to main content
Glama

Garphield

Export a Garphield graph

garphield_export
Read-only

Export a stored graph as a .gph project (with its view config and positions), as node-link JSON, GEXF, GraphML or GML, or as a PNG where the host can render. Text formats come back inline up to the host's result limit; gph also reports where the stored file is, when the host has a location. The export is a frozen copy: later style or layout calls do not change it. Where the host stores images, a png export is also kept as the document's preview image.

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>",
      "format": "<format>"
    },
    "name": "garphield_export"
  }
}

Input Schema

NameRequiredDescriptionDefault
docYesDocument reference: a stored document id, a file path, or "current" in the workbench.
widthNopng only.
formatYesgph is the full Garphield project; nodeLink, gexf, graphml and gml carry the graph and its attributes; png is an image where the host can render one.
heightNopng only.
inlineNogph only: false returns just the stored location and size, without the text. Default true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare readOnly, non-destructive, non-open-world, so the safety profile is covered; the description still adds real behavior: text formats return inline up to the host's result limit, gph reports the stored file location, and png becomes the document's preview image. It does not spell out truncation behavior when the result limit is exceeded or error cases, leaving some operational gaps.

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?

Four sentences, front-loaded with the verb and the format list, then progressively finer behavioral notes in descending importance. There is minor repetition of the host-capability caveat but nothing that does not earn its place.

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?

Without an output schema, the description still explains what the caller receives (inline text vs stored location and size), the size/capability constraints, and the side effect of png exports on the document preview. That is sufficient for an agent to call this correctly on a 5-parameter tool.

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?

Schema coverage is 100%, so the baseline is 3; the description goes slightly beyond by tying `inline` and the png-only dimensions to host capabilities ('where the host can render', 'up to the host's result limit'). Most per-parameter detail, however, is already carried by the schema descriptions.

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?

States a concrete verb and resource ('Export a stored graph') and enumerates the supported formats (gph, node-link JSON, GEXF, GraphML, GML, PNG), which makes it unmistakable against create/style/layout/validate siblings. The following clauses clarify what each format yields, so an agent can tell the tool apart from anything else in the set.

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?

Format semantics ('gph is the full Garphield project... png is an image where the host can render one') effectively tell the agent which output to pick, and the inline/result-limit note implies when to prefer the stored file over inline text. It stops short of explicit when-not conditions, e.g. no statement about exporting before or after style/layout changes beyond the frozen-copy note.

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