Skip to main content
Glama
Akxan
by Akxan

Validate JSON-LD

schema_validate
Read-onlyIdempotent

Validate JSON-LD before publishing: checks required properties, FAQ/Breadcrumb structure, ISO dates, and @context. Returns normalized compact JSON ready to inject.

Instructions

Validate one or more JSON-LD objects before publishing: required/recommended properties per type (same rules as structured_data_audit), FAQ/Breadcrumb structure, ISO dates, @context presence. Returns the normalized, compact JSON ready to inject.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
jsonldYesJSON-LD as an object, array of objects, or JSON string.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.5.1
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / jsonld / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "additionalProperties": {},
      -    "type": "object"
      -  },
      -  {
      -    "items": {
      -      "additionalProperties": {},
      -      "type": "object"
      -    },
      -    "type": "array"
      -  }
      -]New value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "additionalProperties": {},
      +    "propertyNames": {
      +      "type": "string"
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "items": {
      +      "additionalProperties": {},
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "type": "array"
      +  }
      +]
  2. First observedv0.3.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly and non-destructive behavior; the description adds useful behavioral context: it performs specific checks, normalizes/compacts the JSON, and returns an injectable object. It does not describe what is returned when validation fails, which is a small but real gap.

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?

Two front-loaded sentences carry purpose, validation rules, and return value with no filler. Every phrase earns its place.

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?

With one parameter and no output schema, the description covers the input, the checks performed, and the success return value. It omits failure behavior (what happens if validation fails or what the error shape looks like), which is essential for a validation tool.

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 input schema already fully documents the jsonld parameter's accepted forms (string, object, array), so the description adds no new parameter-level semantics. The description's 'one or more' loosely matches the schema's array case but adds no detail beyond it.

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?

Names a specific verb (Validate) and resource (JSON-LD objects) and enumerates what is checked. It is clearly distinct from schema_generate and structured_data_audit, but it only references structured_data_audit via 'same rules' rather than explicitly distinguishing the two.

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?

'Before publishing' and 'ready to inject' provide a clear temporal use case, and the list of checks indicates when it is appropriate. It does not explicitly state when not to use it or name the alternative tool to use for auditing already-published pages.

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