Skip to main content
Glama
google-seo-mcp
by Akxan

Validate JSON-LD

schema_validate
Read-onlyIdempotent

Validate JSON-LD objects before publishing by checking required properties, FAQ/Breadcrumb structure, and ISO dates, then returns normalized 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.

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": "schema_validate"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.14.0
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
  2. 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"
      +  }
      +]
  3. First observedv0.3.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and open-world, so the safety profile is covered without the description's help. The description adds genuinely new behavioral context: which rule set is applied, that it accepts one or many objects, and that the return is normalized/compact JSON ready for injection. It omits how validation failures are surfaced, which keeps it below a 5.

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 sentences, zero filler: the first front-loads what is validated and against which rule set, the second states the return. Every clause carries information an agent can act on.

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?

For a single-parameter, read-only validation tool with no output schema, the description covers inputs, checks, and the shape of the successful return. The remaining gap is failure behavior — whether invalid input throws, returns a list of errors, or returns partial results — which matters for an agent planning a validation step.

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?

There is only one parameter and schema coverage is 100%, with the schema itself documenting the object/array/string union. The description's 'one or more JSON-LD objects' corroborates the accepted shapes but adds no new syntax, size limits, or format guidance beyond the schema. Baseline 3 applies.

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 (validate) and resource (JSON-LD objects, singular or plural) and enumerates the exact checks performed: required/recommended properties per type, FAQ/Breadcrumb structure, ISO dates, @context presence. It partially differentiates from structured_data_audit by declaring rule parity ('same rules as structured_data_audit'), though it never explicitly routes between 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 Guidelines3/5

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

'before publishing' gives a clear usage context, and the reference to structured_data_audit implies a shared rule set. However, there is no explicit when-not guidance, no statement of what to do on validation failure, and no direct comparison telling the agent why to pick this over schema_generate or structured_data_audit.

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