Skip to main content
Glama

Save Graph

save_graph

Saves a graph to a specified path, selecting .gr4s for editable Studio documents or .gr4c for backend-ready inline GRC YAML.

Instructions

Save the graph. The extension picks the format:

.gr4s gr4-studio document (open it in Studio to view and edit), .gr4c inline GRC YAML, exactly what is submitted to the backend.

Input Schema

NameRequiredDescriptionDefault
pathYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the behavioral burden. It usefully discloses that the extension chooses the format and that .gr4c is inline GRC YAML exactly as submitted to the backend. However, it does not state whether saving overwrites an existing file, whether parent directories are created, or what permissions or side effects apply to this write operation.

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?

The description is very short and front-loaded with the core action. The format list is compact and each detail directly helps the agent choose between .gr4s and .gr4c, with no wasted sentences.

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?

For a one-parameter save tool with an output schema, the description covers the essential call behavior: save the graph and use the extension to select the format. The main remaining gap is overwrite and filesystem side-effect behavior, which is relevant for a write operation but less critical given the low complexity and existing output schema.

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 0%, so the description must compensate. It does add meaningful semantics by explaining that the file extension determines the output format, which directly informs how the required path parameter should be chosen. It still does not describe the path parameter itself, such as whether it must be a full file path or whether directories must already exist.

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?

The description states a specific verb and resource: 'Save the graph.' It also explains that the file extension controls the output format, distinguishing .gr4s from .gr4c. It does not explicitly differentiate this tool from siblings like load_graph, deploy_graph, or show_graph, so it falls short of a 5.

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 implied by the action 'Save the graph' and by the format guidance for .gr4s and .gr4c, but there is no explicit when-to-use guidance or comparison to sibling tools such as deploy_graph or validate_graph. An agent can infer that this writes a graph to a path, but alternatives are not addressed.

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