Skip to main content
Glama

generate_schema

Read-onlyIdempotent

Generate ready-to-paste JSON-LD for one public page from what it already shows: Organization, WebSite (homepage), WebPage or Article, BreadcrumbList and FAQPage (when it has visible questions and answers). Skips types already present, validates against schema.org types and Google's required properties, and says where to paste it in WordPress (Yoast, Rank Math), Shopify, Wix or plain HTML. Read-only: changes nothing. Uses 2 calls (1 if there is nothing to add).

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

Input Schema

NameRequiredDescriptionDefault
urlYesPublic page URL
job_idNoFix job id (fx_...) from fix_top_issues; counts this call on that job
businessNoBusiness details the user gave (needed for LocalBusiness); never guess
business_typeNoschema.org type, e.g. Organization (default), LocalBusiness, Dentist

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / business / description
      Previous value: -"Business details the user gave you (needed for LocalBusiness types); never guess these"New value: +"Business details the user gave (needed for LocalBusiness); never guess"
    • changedInput schema / properties / business_type / description
      Previous value: -"schema.org type for the organization, e.g. Organization (default), LocalBusiness, Dentist, Restaurant"New value: +"schema.org type, e.g. Organization (default), LocalBusiness, Dentist"
    • changedInput schema / properties / job_id / description
      Previous value: -"Fix job id from fix_top_issues (fx_...), so this call is counted on that job"New value: +"Fix job id (fx_...) from fix_top_issues; counts this call on that job"
  2. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already establish readOnlyHint=true, idempotentHint=true and destructiveHint=false, and the description reinforces that with 'Read-only: changes nothing'. It adds genuinely non-structured behavior: skips types already present, validates against schema.org and Google's required properties, reports where to paste per platform, and budgets 1-2 calls. The one gap is that it never sketches the shape of what comes back, which matters since there is no output schema.

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?

Single dense paragraph, front-loaded with the verb and resource, then qualifications and cost. Every clause carries information, but the middle sentence crams parentheticals (Yoast, Rank Math) and platform lists into one run-on, which slightly hurts scanability.

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 4-parameter, nested-object tool with no output schema, the description covers what is produced (paste-ready JSON-LD plus placement instructions), what is skipped, the call budget, and the read-only guarantee. Return-value detail is described in prose rather than structure, which is adequate but not exhaustive for a tool whose main deliverable is an output blob.

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 url, job_id, business and business_type in detail, including the 'never guess' constraint on business details. The description adds only indirect meaning, such as 'one public page' bounding url and the call-cost implication of job_id. Baseline 3 is appropriate when the schema carries the parameter burden.

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 ready-to-paste JSON-LD for one public page') and enumerates exactly which schema types it emits (Organization, WebSite, WebPage/Article, BreadcrumbList, FAQPage). Scope is pinned to a single public page. It does not explicitly distinguish itself from the sibling validate_schema, even though it mentions validation as an internal step, so the boundary is left slightly fuzzy.

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?

Gives clear qualifying context: one public page, derived from what the page already shows, with FAQPage only 'when it has visible questions and answers'. The job_id parameter is tied to fix_top_issues, and it discloses cost ('Uses 2 calls (1 if there is nothing to add)'). It stops short of naming an alternative for the validation-only case (validate_schema) or saying when not to use it.

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.