changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "$defs": {
+ "AiReaderCount": {
+ "additionalProperties": false,
+ "description": "Phase 8 T4.8 — an AI company's bots that read the site (bot_visits;\ncounted by the name each bot gives itself).",
+ "properties": {
+ "company": {
+ "title": "Company",
+ "type": "string"
+ },
+ "hits": {
+ "title": "Hits",
+ "type": "integer"
+ },
+ "product": {
+ "title": "Product",
+ "type": "string"
+ },
+ "top_page": {
+ "title": "Top Page",
+ "type": "string"
+ }
+ },
+ "required": [
+ "company",
+ "product",
+ "hits",
+ "top_page"
+ ],
+ "title": "AiReaderCount",
+ "type": "object"
+ },
+ "ButtonClickCount": {
+ "additionalProperties": false,
+ "description": "Phase 8 T4.8 — a button / link people clicked (site_clicks).",
+ "properties": {
+ "button": {
+ "title": "Button",
+ "type": "string"
+ },
+ "clicks": {
+ "title": "Clicks",
+ "type": "integer"
+ },
+ "people": {
+ "title": "People",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "button",
+ "clicks",
+ "people"
+ ],
+ "title": "ButtonClickCount",
+ "type": "object"
+ },
+ "CountryCount": {
+ "additionalProperties": false,
+ "properties": {
+ "count": {
+ "title": "Count",
+ "type": "integer"
+ },
+ "country": {
+ "title": "Country",
+ "type": "string"
+ }
+ },
+ "required": [
+ "country",
+ "count"
+ ],
+ "title": "CountryCount",
+ "type": "object"
+ },
+ "DateRange": {
+ "additionalProperties": false,
+ "description": "Inclusive start / end date range for a website summary query.\n\n`website_summary()` checks `start <= end` and the 90-day max span (so a\nrunaway MCP prompt can't scan the whole click_logs history); the model\nitself has no validators, so error answers can carry the range as sent.",
+ "properties": {
+ "end": {
+ "format": "date",
+ "title": "End",
+ "type": "string"
+ },
+ "start": {
+ "format": "date",
+ "title": "Start",
+ "type": "string"
+ }
+ },
+ "required": [
+ "start",
+ "end"
+ ],
+ "title": "DateRange",
+ "type": "object"
+ },
+ "PageCount": {
+ "additionalProperties": false,
+ "properties": {
+ "count": {
+ "title": "Count",
+ "type": "integer"
+ },
+ "page": {
+ "title": "Page",
+ "type": "string"
+ }
+ },
+ "required": [
+ "page",
+ "count"
+ ],
+ "title": "PageCount",
+ "type": "object"
+ }
+ },
+ "additionalProperties": false,
+ "description": "Return type for `website_summary(site_id, date_range)`.\n\nMVP shape: total visits + top countries + top pages + a narrative\ndescribing the window. Deep insights (trend %, AI-NOTICED cards) are\nreserved fields to be populated by a follow-up substep — clients see\nstable schema across the upgrade.",
+ "properties": {
+ "ai_noticed": {
+ "items": {
+ "type": "string"
+ },
+ "title": "Ai Noticed",
+ "type": "array"
+ },
+ "ai_readers": {
+ "items": {
+ "$ref": "#/$defs/AiReaderCount"
+ },
+ "title": "Ai Readers",
+ "type": "array"
+ },
+ "data_status": {
+ "default": "ok",
+ "enum": [
+ "ok",
+ "invalid",
+ "not_found",
+ "unavailable"
+ ],
+ "title": "Data Status",
+ "type": "string"
+ },
+ "date_range": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/DateRange"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "narrative": {
+ "default": "",
+ "title": "Narrative",
+ "type": "string"
+ },
+ "site_id": {
+ "title": "Site Id",
+ "type": "string"
+ },
+ "top_clicks": {
+ "items": {
+ "$ref": "#/$defs/ButtonClickCount"
+ },
+ "title": "Top Clicks",
+ "type": "array"
+ },
+ "top_countries": {
+ "items": {
+ "$ref": "#/$defs/CountryCount"
+ },
+ "title": "Top Countries",
+ "type": "array"
+ },
+ "top_pages": {
+ "items": {
+ "$ref": "#/$defs/PageCount"
+ },
+ "title": "Top Pages",
+ "type": "array"
+ },
+ "total_visits": {
+ "title": "Total Visits",
+ "type": "integer"
+ },
+ "trend_pct": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Trend Pct"
+ },
+ "upgrade_hint": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Upgrade Hint"
+ }
+ },
+ "required": [
+ "site_id",
+ "date_range",
+ "total_visits"
+ ],
+ "title": "WebsiteSummary",
+ "type": "object"
+}