Skip to main content
Glama

seo_schema

Destructive

Attach JSON-LD structured data to a post or your whole site, either by supplying your own schema or generating Article, FAQ, HowTo, LocalBusiness and Person markup for valid schema.org output.

Instructions

Attach JSON-LD structured data to a post (or the whole site). Two ways to call it: (1) pass a full "schema" object/array yourself — pass an array of objects to layer several types on one page (rendered as @graph); or (2) pass "generate" (one of: article, faq, howto, local_business, person) plus "data" and Keelhob builds valid schema.org JSON-LD for you, including the Article author as a Person from the post author's WordPress profile — the schema type AI answer engines rely on most for E-E-A-T attribution. Actions: set, get, delete.

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": {
      "action": "<action>"
    },
    "name": "seo_schema"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataNoFields for the chosen "generate" type, e.g. faq: {"items":[{"question":"...","answer":"..."}]}; local_business: {"name","address","phone","hours"}; howto: {"steps":["...","..."]}.
actionYesset
schemaNoA JSON-LD object, or an array of objects to layer as @graph (Keelhob adds @context).
post_idNoOmit for site-wide schema.
generateNoHave Keelhob build the JSON-LD instead of writing it by hand.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.2

TDQS

A4/5.0
Behavior3/5

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

The description carries real behavioral detail beyond the annotations: it discloses that arrays are rendered as @graph, that Keelhob injects @context, and that Article authors are derived from the WordPress profile. However, with destructiveHint=true and no other annotations, it never states that "set" overwrites or replaces existing schema, nor what "delete" removes, which is the safety information an agent most needs here.

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

Conciseness4/5

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

The single paragraph is front-loaded with the core purpose, then numbers the two modes and closes with an action list; nothing is padding. It is dense to the point of being a run-on, with the action list tacked on at the end rather than integrated into the mode descriptions.

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?

For a five-parameter mutation tool with nested objects and no output schema, the description covers the input contract well but leaves the write semantics and per-action requirements thin. An agent knows how to construct a call but not fully what state it will leave behind.

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?

Schema coverage is already 80%, and the description still adds genuine meaning: it explains the object-vs-array distinction for "schema", the dependency between "generate" and "data", and the omission semantics of "post_id" (site-wide). The conditional pairing of generate and data is stated but the valid action/parameter combinations for get and delete are left implicit.

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?

"Attach JSON-LD structured data to a post (or the whole site)" is a specific verb plus resource with an explicit scope qualifier, and the three actions (set, get, delete) pin down the exact operation surface. An agent can distinguish this from sibling SEO tools like seo_meta without opening the schema.

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?

It clearly lays out two mutually exclusive calling conventions (hand-authored "schema" vs. "generate"+"data") and names the five generate types, which is strong decision guidance. It stops short of saying when to prefer one mode over the other or what prerequisites (post exists, permissions) apply to each action.

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