Skip to main content
Glama

generate_schema

Read-onlyIdempotent

Generate valid Schema.org JSON-LD structured data from a schema type and fields, with paste-ready HTML snippets and Google rich-result validation.

Instructions

Generate valid Schema.org JSON-LD structured data markup. Provide the schema type and data fields; returns the full JSON-LD object, an HTML script snippet ready to paste, and validation results including Google rich-result eligibility. Supports all major types: Article, Product, LocalBusiness, FAQPage, HowTo, BreadcrumbList, Event, Organization, Person, Recipe, VideoObject, and more.

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": {
      "type": "<type>",
      "data": "<data>"
    },
    "name": "generate_schema"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYesKey-value pairs of properties for the schema. Use property names from Schema.org (e.g. { "name": "...", "description": "...", "image": "..." }).
typeYesThe Schema.org type to generate (e.g. "Article", "Product", "FAQPage", "LocalBusiness", "HowTo").
validateNoWhen true, validate the generated schema against Google's requirements. Defaults to true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.1

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint, openWorldHint=false), so the description's job is to add context — and it does, disclosing the exact return payload (full JSON-LD object, paste-ready HTML script snippet, validation results with Google rich-result eligibility). That return-shape disclosure is genuinely valuable given there is no output schema. It stops short of noting failure modes, e.g. what happens when data fields are invalid or a type is unsupported.

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?

Front-loaded with the core action, then inputs, then outputs, then supported types — a sensible ordering with no filler sentences. The long type enumeration ('and more') costs some space, though it usefully signals breadth of support.

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 correctly compensates by describing the three-part return value, and it flags that validation and rich-result eligibility are part of the response. For a three-parameter generator with nested free-form data, the main remaining gap is guidance on what property data each type requires.

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%, so all three parameters are already documented, including the validate default. The description adds only a loose restatement ('provide the schema type and data fields') and does not clarify the nested data object's expected property depth or type-specific requirements beyond what the schema says. Baseline 3 is appropriate.

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 and resource ('Generate valid Schema.org JSON-LD structured data markup') and lists the supported types, which makes the capability unambiguous. It implicitly contrasts with extract_schema (generate vs. extract) but never names that sibling, so differentiation is left to inference.

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?

Usage is only implied: the 'Provide the schema type and data fields' phrasing tells the agent what inputs to supply but gives no explicit when-to-use guidance, no when-not-to-use conditions, and no pointer to extract_schema for the reverse operation. An agent must infer the generate-vs-extract split from tool names alone.

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