Skip to main content
Glama

locus_export_kg

Export a knowledge graph to GraphML, JSONL, or DOT files for Gephi/Cytoscape visualization, scripting, or Graphviz; the format is auto-detected from the file extension.

Instructions

Export the knowledge graph to a file. Formats: graphml (Gephi/Cytoscape), jsonl (scripting), dot (Graphviz). Format is auto-detected from the file extension if not specified.

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": "locus_export_kg"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesOutput file path.
formatNoExport format (auto from extension if omitted).
store_pathNo.locus

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.1

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden: it discloses the write-to-disk side effect and the extension-based format resolution rule, which is real behavioral context. It does not say whether an existing file is overwritten, whether the full graph including aliases/facts is exported, or what is returned, leaving meaningful gaps for a mutation tool.

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?

Three short sentences, front-loaded with the purpose, then formats, then the resolution rule. The third sentence largely restates the schema's 'auto from extension if omitted' description, a minor redundancy that keeps it from a 5.

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 3-parameter export tool with no output schema and no annotations, the definition covers the main path and format choice adequately. It omits any explanation of store_path (a directory-scoped parameter the agent must supply correctly), overwrite semantics, and the shape of the result, so it is adequate but not complete.

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 67%, and the description meaningfully enriches the format parameter by naming the consumer tool for each value, which the enum alone does not convey. However, store_path is never mentioned anywhere and the interaction between path extension and explicit format is only partially explained, so compensation is incomplete.

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 the knowledge graph to a file,' which is unambiguous and clearly distinct from the query/retrieval siblings. It never names a sibling to contrast with, so it stops short of full differentiation, but the operation is unmistakable.

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?

The format-to-tool mapping (Gephi/Cytoscape, scripting, Graphviz) implicitly tells the agent when each format is appropriate, which is useful. There is no explicit when-to-use or when-not-to-use guidance relative to alternatives, and no stated prerequisites, so usage is only implied.

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