Skip to main content
Glama

mtgx_export_graphml

Export a .mtgx archive to a standalone GraphML XML string or JSON, optionally writing it atomically to a .graphml or .json file.

Instructions

Export a .mtgx archive as a standalone GraphML XML string or JSON, optionally writing atomically to an output .graphml or .json file.

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": {
      "path": "<path>"
    },
    "name": "mtgx_export_graphml"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesSource .mtgx file path
formatNoExport format (defaults to 'graphml', or inferred from output_path)
prettyNoPretty-print output XML/JSON (default true)
output_pathNoOptional output .graphml or .json path (within workspace)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the burden and does disclose useful behavior: returns an in-memory string/JSON and writes atomically (with a workspace path constraint) when output_path is given. It omits overwrite semantics, size limits, and permission requirements for a write-capable operation.

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?

A single well-formed sentence with the resource and both output modes front-loaded, no filler. Slight density but nothing wasted.

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

Completeness3/5

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

For a simple 4-parameter export tool with full schema coverage and no output schema, the description covers return shape and file-writing behavior. It leaves gaps on failure modes and overwrite handling that matter for a tool that can write files.

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 a baseline of 3 applies; the description adds marginal value by clarifying that output_path triggers atomic file writing and that the return is a standalone string or JSON. Format inference is already in the schema, so no further gain.

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?

States a specific verb and resource: export a .mtgx archive to GraphML XML or JSON. It clearly distinguishes itself from querying/manipulation siblings via the export/output framing, though it never names an alternative tool.

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?

Usage is only implied: an agent can infer this is for converting a .mtgx archive to GraphML/JSON, but there is no explicit when-to-use versus mtgx_inspect or mtgx_query_graph, and no prerequisites stated.

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