Skip to main content
Glama

Generate schema markup

generate_schema_markup
Read-only

Generate a JSON-LD block for a schema.org type (LocalBusiness, Organization, WebSite, Article, FAQPage, or Product) from a flat data object. For FAQPage, pass data.items as [{ question, answer }].

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNoFields for the chosen type, e.g. { name, url, description, telephone }. FAQPage uses { items: [{ question, answer }] }.
typeYesschema.org type to generate.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
jsonLdYesThe JSON-LD <script type="application/ld+json"> block, ready to paste.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "jsonLd": {
      +      "description": "The JSON-LD <script type=\"application/ld+json\"> block, ready to paste.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "jsonLd"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations declare readOnlyHint=true, so the agent already knows this is a safe pure-transformation operation, and the description's 'Generate' verb is consistent with that. The description adds useful behavioral context beyond the annotations: the input must be a 'flat data object' and FAQPage requires the specific data.items structure. No contradiction with annotations.

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 with zero filler. The primary purpose and type list are front-loaded in the first sentence, and the FAQPage edge case is isolated in the second. Every clause earns its place.

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 read-only generation tool with an output schema (which covers return format) and a fully documented input schema, the description is nearly complete: purpose, supported types, input shape, and the one special case (FAQPage) are all covered. The only gap is explicit routing against the sibling generate_meta_tags, which was already noted under usage guidelines.

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 the schema already documents both parameters, including the enum values for type and the example data shape plus the FAQPage items format. The description largely restates this schema content ('flat data object', 'pass data.items as [{ question, answer }]'), adding little new meaning beyond what the schema provides. 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?

The description states a specific verb (Generate), a concrete resource (a JSON-LD <script> block), and enumerates the six supported schema.org types. This clearly distinguishes it from the sibling generate_meta_tags, which produces HTML meta tags rather than structured JSON-LD.

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?

The description implies its usage context by naming JSON-LD as the output format and listing the supported types, which lets an agent infer when to pick it over generate_meta_tags. However, there is no explicit when-to-use/when-not-to-use statement, no exclusions, and no named alternative, so the routing guidance is left 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.