Skip to main content
Glama

Write schema markup (JSON-LD)

generate_schema_markup
Read-onlyIdempotent

Write schema.org JSON-LD for a page: a software app, product, FAQ, organization, article or breadcrumb trail, from the properties you give. Answers the JSON-LD, the script tag to paste, and notes on what Google still requires ("fix") or recommends ("improve") for that type. Mark up only what the page itself shows; never invent a rating. Answers from what you send alone: nothing is fetched or stored.

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>"
    },
    "name": "generate_schema_markup"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeYesThe schema.org type to write.
itemsNoRows for FAQPage ({ name: the question, value: its answer }) and BreadcrumbList ({ name: the step, value: its URL }).
valuesNoThe type's properties by key. SoftwareApplication: name, description, url, image, applicationCategory, operatingSystem, price, priceCurrency, ratingValue, ratingCount. Product: name, description, image, brand, sku, url, price, priceCurrency, availability, ratingValue, ratingCount. Organization: name, url, logo, description, email, sameAs. Article: headline, description, url, image, datePublished, dateModified, authorName, authorUrl, publisherName.

Output Schema

NameRequiredDescriptionDefault
toolYes
toolUrlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds genuinely new behavior: it returns the JSON-LD, the pasteable script tag, and fix/improve notes against Google's requirements. The 'nothing is fetched or stored' clause corroborates the closed-world hint and reassures on data handling.

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?

Three compact sentences covering purpose, output, and constraints, with the type enumeration front-loaded. Minor redundancy in the repeated 'Answers…' construction, but no sentence is wasted.

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?

Covers purpose, input expectations, output shape, and the accuracy constraint for a tool with nested objects and an enum. An output schema exists so return values need not be spelled out, and the description's extra explanation of the fix/improve notes is a bonus rather than a gap-filler.

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 type, items, and values in detail, including the per-type property keys. The description adds only the framing 'from the properties you give' and no additional format or validation detail, so baseline 3 applies.

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?

States a specific verb and resource (write schema.org JSON-LD) and enumerates the six supported types, which maps directly onto the type enum. An agent can distinguish this from generate_meta_tags or generate_og_image 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 Guidelines3/5

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

Gives real usage constraints — 'Mark up only what the page itself shows; never invent a rating' and 'answers from what you send alone' — which steer correct input. However, it never says when to prefer this over sibling generators or when a given schema type is the right choice, so selection guidance is only implied.

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.

Resources