Skip to main content
Glama
LiLara-AI

ShadowGraph

Official

shadowgraph_validate

Read-onlyIdempotent

Reports graph integrity issues by severity without altering stored data. Provides read-only diagnostics, naming legacy data and flagging newer-schema records instead of guessing or downgrading.

Instructions

Report graph integrity diagnostics by severity, without modifying storage. shadowgraph_repair_plan shows what a fix would involve, shadowgraph_rebuild tests whether the journal reproduces the data. Reads only. Legacy data is named rather than guess-repaired, and newer-schema data is reported, not downgraded.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
validYesFalse when any error or unsupported issue is present.
countsYesIssue counts per severity.
issuesYesEvery diagnostic found, each with a stable code and severity.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed1 schema field changedv0.40.1
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "description": "Integrity diagnostics.",
      +  "properties": {
      +    "counts": {
      +      "description": "Issue counts per severity.",
      +      "properties": {
      +        "error": {
      +          "description": "Genuinely invalid data.",
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "info": {
      +          "description": "Declared discontinuities, such as a hard-purge journal gap.",
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "legacy": {
      +          "description": "Readable data that predates a contract.",
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "unsupported": {
      +          "description": "Data from a newer schema or policy this build cannot interpret.",
      +          "minimum": 0,
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "error",
      +        "legacy",
      +        "unsupported",
      +        "info"
      +      ],
      +      "type": "object"
      +    },
      +    "issues": {
      +      "description": "Every diagnostic found, each with a stable code and severity.",
      +      "items": {
      +        "description": "One diagnostic. Extra fields identify the affected entity, entry, or scope.",
      +        "properties": {
      +          "code": {
      +            "description": "Stable diagnostic code, such as missing_relation_source, unknown_decision_status, or journal_gap.",
      +            "type": "string"
      +          },
      +          "detail": {
      +            "description": "Human-readable explanation.",
      +            "type": "string"
      +          },
      +          "entityId": {
      +            "description": "Affected entity identifier.",
      +            "type": "string"
      +          },
      +          "entryId": {
      +            "description": "Affected journal entry identifier.",
      +            "type": "string"
      +          },
      +          "recordId": {
      +            "description": "Affected record or fact identifier.",
      +            "type": "string"
      +          },
      +          "relationId": {
      +            "description": "Affected relationship identifier.",
      +            "type": "string"
      +          },
      +          "seq": {
      +            "anyOf": [
      +              {
      +                "type": "integer"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ],
      +            "description": "Affected journal sequence number."
      +          },
      +          "severity": {
      +            "description": "error is invalid data, legacy is readable but predates a contract, unsupported comes from a newer schema this build cannot interpret, info is a declared discontinuity.",
      +            "enum": [
      +              "error",
      +              "legacy",
      +              "unsupported",
      +              "info"
      +            ],
      +            "type": "string"
      +          },
      +          "type": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ],
      +            "description": "Affected journal entry type."
      +          }
      +        },
      +        "required": [
      +          "code",
      +          "severity"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "valid": {
      +      "description": "False when any error or unsupported issue is present.",
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "valid",
      +    "issues",
      +    "counts"
      +  ],
      +  "type": "object"
      +}
  2. First observedv0.40.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint, so the read-only nature is covered. The description adds valuable behavior beyond annotations: it reports by severity, never modifies storage, names legacy data instead of guess-repairing, and reports newer-schema data without downgrading it. No contradiction with 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?

Three sentences with no filler; the primary purpose and read-only behavior are front-loaded, then sibling distinctions and legacy-data handling are stated economically. Every sentence earns its place.

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?

With no parameters, an output schema available, and strong annotations, the description covers all necessary guidance: what it reports, that it is read-only, how it relates to sibling tools, and how it handles legacy and newer-schema data. Nothing important is missing.

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?

The tool has zero parameters and the schema is an empty object, so there are no parameter semantics for the description to clarify. Baseline 4 applies because parameter explanation is not needed.

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 states a specific verb and resource: 'Report graph integrity diagnostics by severity.' It also differentiates itself from shadowgraph_repair_plan and shadowgraph_rebuild by describing what those tools do versus this one, so an agent can distinguish them.

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

Usage Guidelines4/5

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

The description clearly identifies the tool's diagnostic role and contrasts it with shadowgraph_repair_plan (what a fix would involve) and shadowgraph_rebuild (tests journal reproduction). It does not explicitly state 'use when' or list exclusions beyond those two, but the context is clear enough for selection.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/LiLara-AI/shadowgraph'

If you have feedback or need assistance with the MCP directory API, please join our Discord server