Skip to main content
Glama

Validate model

layerz_validate_model
Read-only

Audit a model without writing: runs the core model validator (structural / formula / timeline checks) and returns a structured report { ok, error_count, warning_count, errors[], warnings[] }. This is NOT a byte-for-byte preview of a write: the write path auto-repairs some of these (e.g. it strips a dangling source_uid/inputs instead of refusing) and enforces a few invariants this audit does not (e.g. a dangling parent_uid is rejected only at write), so ok:true is a sanity signal, not a guarantee the next write succeeds. Each issue carries a category code (e.g. UNKNOWN_UID = dangling ref, CIRCULAR_DEPENDENCY, INVALID_ROLE_CHILD = misplaced chart/kpi/mini_table, TIMELINE_MISMATCH) + message + item_uids. Read-only — use it as an agent-side sanity check before sharing.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
model_idNoTarget model UUID. Required for user-scoped API keys; ignored (or validated against scope) for model-scoped keys.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the readOnlyHint annotation, it discloses that the write path auto-repairs some issues (dangling source_uid/inputs), that certain invariants are only enforced at write (parent_uid), and that the report contains per-issue codes, messages, and item_uids. This is substantial behavioral context and contradicts nothing in the annotations.

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?

Although long, every sentence earns its place: purpose, then critical limitations, then output format, then usage recommendation. The most decision-relevant fact (read-only sanity check) is front-loaded, and the structure makes it easy to scan.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, but the description explicitly defines the return structure ({ ok, error_count, warning_count, errors[], warnings[] }) and the error sub-fields. It also covers when to use, what it does, and its limitations—nothing an agent needs to call it correctly is missing.

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?

The schema already provides 100% coverage of model_id, including format, requiredness per key type, and scope behavior. The description adds no parameter-specific meaning, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a precise verb-resource pair ('Audit a model without writing') and enumerates the exact checks (structural / formula / timeline). It explicitly contrasts with the write path, so an agent can distinguish this from layerz_patch or layerz_create_model without opening their schemas.

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

Usage Guidelines5/5

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

It gives an explicit recommendation ('use it as an agent-side sanity check before sharing') and clearly states what it is NOT (a byte-for-byte write preview) and why ok:true is insufficient to guarantee a write. This frames both when to call and when to avoid relying on it.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources