Draft schema markup (JSON-LD)
draft_schema_markupDrafts schema markup (schema.org JSON-LD structured data) for a page: Organization, WebSite, FAQPage (questions read from headings that end in a question mark, with the text under them) or LocalBusiness. Values the person gives win over values read from the page. Use it when seo_audit_page reports missing or incomplete structured data. result has jsonLd, scriptTag (ready to paste into the ), filledFrom (each field: input or page), missing (fields to fill in) and existingTypes (schema types the page already declares). Returns JSON: summary (one sentence), reportUrl (a shareable report page for the person, kept 30 days; null for tools that keep none) and result (the details below). Errors come back as one plain sentence. Recorded: the checked domain and path (never the query string), the tool, which checks failed and the app name; never an IP address or page text.
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>",
"type": "<type>"
},
"name": "draft_schema_markup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The page the markup describes: an absolute http or https URL, such as https://example.com/pricing. | |
| name | No | The organization or site name. Defaults to the page's. | |
| type | Yes | The schema.org type to draft. | |
| phone | No | LocalBusiness only: the phone. Defaults to the page's first tel: link. | |
| sameAs | No | Official profile URLs (LinkedIn, X, YouTube). Defaults to the social links on the page. | |
| address | No | LocalBusiness only: the street address on one line. | |
| logoUrl | No | An absolute logo image URL. Defaults to the page icon. |