Skip to main content
Glama

save_xcos_model

Validate Xcos model XML structure and save it atomically to an allowed root.

Instructions

Validate basic structure and atomically save Xcos XML inside an allowed root.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
overwriteNo
output_pathYes
xml_contentYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.2/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 disclose meaningful traits: it validates structure before writing, the write is atomic, and the destination is confined to an allowed root (a sandbox constraint). It stops short of stating what happens on validation failure, whether errors roll back, or how 'basic structure' is scoped.

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 front-loaded sentence with no filler; the scope constraint and atomicity come through quickly. It is efficient, though the brevity borders on under-specification given the entirely undocumented parameter set.

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?

The output schema covers return values, so the description need not explain them. But for a mutating tool with no annotations and 0% parameter documentation, key facts are missing: overwrite semantics, failure/rollback behavior, and any usage routing versus validate_xcos_model.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/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, but it only hints at output_path via 'inside an allowed root'. The meaning of xml_content and the overwrite flag (default false, existing-file behavior) are undocumented in both schema and description, leaving two of three parameters semantically opaque.

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+resource: validate and save Xcos XML. It is distinguishable from the read-only siblings (inspect_xcos_model, validate_xcos_model) by its persist-to-disk purpose, though it does not explicitly say how it differs from validate_xcos_model, which also performs validation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives no when-to-use or when-not-to-use guidance and never names an alternative. An agent must infer that this is the persistence step after inspect/validate, and nothing explains why one would call this rather than validate_xcos_model alone.

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