Skip to main content
Glama

Load graph

load_graph

Open a YAML or JSON graph file as the current working graph so subsequent edits save automatically; a missing file initializes an empty graph.

Instructions

Open a graph file (YAML, or JSON if it ends in .json). It becomes the current file: all later changes are saved to it automatically. A missing file starts an empty graph.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesPath to the graph file

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileYes
countsYes
issuesYesInvalid file entries that were skipped when reading it

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the persistent side effect that later changes are auto-saved to this file, and that a missing path silently starts an empty graph rather than erroring. It omits error/permission behavior and whether the previous current file is discarded.

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?

Three short sentences, front-loaded with the load action, then side effect, then edge case. Every sentence earns its place with no filler.

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?

A mutation-style, state-changing tool; the description covers format inference, persistence behavior, and the missing-file case, and an output schema exists so return values need no explaining. Only failure/permission semantics are unaddressed.

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 single path parameter is documented, and the description adds real meaning by explaining that the extension selects the parser (.json vs YAML). That is genuine added value beyond the schema's generic 'Path to the graph file'.

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 (open/load) and resource (graph file) plus format handling and the stateful consequence of loading. It implicitly contrasts with siblings like get_graph (read-only) and save_graph, though it never names an alternative explicitly.

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 context is implied: call this to open a file and make it the working graph, and a missing file yields an empty graph. There is no explicit when-not or comparison to get_graph, so an agent must infer that get_graph reads the current graph rather than loading one.

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