Skip to main content
Glama

export_graph

Export a graph to JSON, GraphML, DOT, or Cytoscape formats. Optionally filter nodes and edges with a DSL, then receive the created file's path.

Instructions

그래프를 데이터 포맷 파일로 내보낸다 ([5-E]).

파일은 서버 데이터 디렉토리 안에 생성되고(호출자 경로 지정 불가 — path traversal 차단 [11]) 그 경로를 반환한다. JSON 은 import 로 라운드트립된다.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filterNo[6] DSL — 매치 노드 + 그 사이 엣지 + 앵커된 finding 만 부분 export.
formatNo'json'(네이티브, import 로 라운드트립), 'graphml'(XML), 'dot'(Graphviz), 'cytoscape'(cytoscape.js JSON) 중 하나. 그 외 값은 에러.json

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.0

TDQS

A3.7/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It transparently discloses that the file is created in the server data directory, the caller cannot specify a path (path traversal blocked), and the function returns the path. It also notes JSON round-trip compatibility, which is useful behavioral context.

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?

Two concise sentences, front-loaded with the core purpose. The references to [5-E] and [11] are terse but do not detract from clarity; the structure is efficient and scannable.

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?

Given the presence of an output schema (which covers return values), the description covers key behavioral aspects: file location, path restriction, and round-trip behavior. It does not explain filter DSL details, but those are in the schema. Overall, it is sufficiently complete for an export tool.

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 both parameters are well-documented. The description adds minimal extra meaning beyond the schema (e.g., round-trip note for JSON). This meets the baseline for high coverage but does not elevate beyond it.

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 the verb 'export' and resource 'graph to a data format file', clearly distinguishing from import_graph and save_snapshot. The mention of file creation and path return makes the intent unambiguous, though it does not explicitly name sibling alternatives.

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?

Implies usage through the note that JSON round-trips via import, suggesting a use case for export-import cycles. However, it lacks explicit 'when to use vs. not use' guidance or exclusions for other formats or scenarios.

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