Skip to main content
Glama

Audit structured data

audit_schema
Read-onlyIdempotent

Parse and audit JSON-LD structured data against the rulebook's schema checks and return detailed results with rule IDs, fix hints, and the same work list as a keyed scan. Batched callers pass detail=failures to drop passing checks. Use when: You have a JSON-LD block to check on its own. Avoid when: You have a full HTML page (lint_html) or only a public URL (scan_url). Do not claim: A grade or a pass is not a citation. The check says the page matches the rulebook. Verify: Edit the JSON-LD and call audit_schema again. judge: engine — trust the pass/fail from the deterministic check (access, rendering, and mechanical structure). judge: agent — your agent re-reads the rule text and decides; the label comes from the deterministic judgeForCheck mapping, not an LLM on our side.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "jsonld": "<jsonld>"
    },
    "name": "audit_schema"
  }
}

Input Schema

NameRequiredDescriptionDefault
detailNoKeyed callers only; a free scan already lists failures alone and ignores it. full (default): every check. failures: only failed and skipped checks plus the page and group grades, grade_basis and the do-not-claim guidance — use it for batched calls or when a full response would be truncated.
jsonldYesOne or more JSON-LD blocks (JSON or JSON array), at most 2 MB.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, but the description adds materially new context: the 'do not claim' caveat that a grade is not a citation, where the label comes from (deterministic judgeForCheck mapping, not an LLM), and how to verify by re-editing and re-calling. This is well beyond what the annotations convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded and information-dense, but the telegraphic fragments ('judge: engine', 'Do not claim:', 'Verify:') make it read like compressed notes rather than prose, and the keyed-scan comparison adds cognitive load for a concept not otherwise defined.

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?

With no output schema, the description does carry the return-value burden and does so well (rule IDs, fix hints, grades, grade_basis, failure-only mode). The one gap is the unexplained reference to 'the same work list as a keyed scan', which presumes context the agent may not have.

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 100% and the detail enum is already fully documented in the schema. The description adds only the batching rationale for detail=failures, which the schema also states. Baseline 3 is appropriate.

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?

States a specific verb and resource ('Parse and audit JSON-LD structured data') plus what it returns ('rule IDs, fix hints'). It explicitly names the sibling tools it is not (lint_html, scan_url), so an agent can route without opening another schema.

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?

Provides explicit 'Use when' (a standalone JSON-LD block) and 'Avoid when' (full HTML page -> lint_html; public URL -> scan_url) clauses. The alternative for each exclusion is named, leaving nothing to inference.

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.