{
  "name": "Jon Sharratt",
  "url": "https://jonsharratt.dev/",
  "description": "WebMCP tools for AI agents in a visitor’s browser, registered on every page of this site with registerTool() on navigator.modelContext (or document.modelContext). Results are JSON objects as each outputSchema describes, or { error }.",
  "spec": "https://webmachinelearning.github.io/webmcp/",
  "tools": [
    {
      "name": "search_site",
      "title": "Search the site",
      "description": "Searches Jon Sharratt’s site (writing, models, events and pages) and returns matching pages with a snippet, each with its address and its Markdown copy for read_page.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string",
            "minLength": 2,
            "description": "What to look for."
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 20,
            "default": 8
          }
        },
        "required": [
          "query"
        ]
      },
      "outputSchema": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "query": {
                "type": "string"
              },
              "results": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "title": {
                      "type": "string"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "posts",
                        "models",
                        "events",
                        "pages"
                      ]
                    },
                    "url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "markdown": {
                      "type": "string",
                      "format": "uri",
                      "description": "Its Markdown copy, for read_page."
                    },
                    "snippet": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "title",
                    "kind",
                    "url",
                    "markdown"
                  ]
                }
              }
            },
            "required": [
              "query",
              "results"
            ]
          },
          {
            "type": "object",
            "properties": {
              "error": {
                "type": "string",
                "description": "What went wrong, in words to pass on."
              }
            },
            "required": [
              "error"
            ]
          }
        ]
      },
      "annotations": {
        "readOnlyHint": true
      }
    },
    {
      "name": "list_site_content",
      "title": "List the site’s content",
      "description": "The whole site in brief (its llms.txt): who Jon Sharratt is, then every post, model, event and page with a line about it and a link to its Markdown copy.",
      "inputSchema": {
        "type": "object",
        "properties": {}
      },
      "outputSchema": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "url": {
                "type": "string",
                "format": "uri"
              },
              "markdown": {
                "type": "string",
                "description": "The llms.txt, in Markdown."
              }
            },
            "required": [
              "url",
              "markdown"
            ]
          },
          {
            "type": "object",
            "properties": {
              "error": {
                "type": "string",
                "description": "What went wrong, in words to pass on."
              }
            },
            "required": [
              "error"
            ]
          }
        ]
      },
      "annotations": {
        "readOnlyHint": true
      }
    },
    {
      "name": "read_page",
      "title": "Read a page",
      "description": "A page on this site as clean Markdown: a post, model, event, the About page or the home page. Give its path (like /writing/the-model-who-cried-wolf) or its full address.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "description": "A path or address on this site."
          }
        },
        "required": [
          "path"
        ]
      },
      "outputSchema": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "url": {
                "type": "string",
                "format": "uri"
              },
              "markdown": {
                "type": "string",
                "description": "The page, in Markdown."
              }
            },
            "required": [
              "url",
              "markdown"
            ]
          },
          {
            "type": "object",
            "properties": {
              "error": {
                "type": "string",
                "description": "What went wrong, in words to pass on."
              }
            },
            "required": [
              "error"
            ]
          }
        ]
      },
      "annotations": {
        "readOnlyHint": true
      }
    },
    {
      "name": "open_page",
      "title": "Open a page",
      "description": "Opens a page on this site in the browser, for the person to see. Give its path or full address.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "description": "A path or address on this site."
          }
        },
        "required": [
          "path"
        ]
      },
      "outputSchema": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "opened": {
                "type": "string",
                "format": "uri"
              }
            },
            "required": [
              "opened"
            ]
          },
          {
            "type": "object",
            "properties": {
              "error": {
                "type": "string",
                "description": "What went wrong, in words to pass on."
              }
            },
            "required": [
              "error"
            ]
          }
        ]
      }
    },
    {
      "name": "list_free_times",
      "title": "Find a free time with Jon",
      "description": "Free start times for a 30-minute chat with Jon Sharratt, as UTC instants. kind \"call\" is a video call (Google Meet); \"coffee\" is a coffee in London, UK. By default the next 31 days.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "call",
              "coffee"
            ]
          },
          "from": {
            "type": "string",
            "format": "date-time",
            "description": "Start of the range (default: now)."
          },
          "to": {
            "type": "string",
            "format": "date-time",
            "description": "End of the range (at most 45 days on)."
          }
        },
        "required": [
          "kind"
        ]
      },
      "outputSchema": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "call",
                  "coffee"
                ]
              },
              "minutes": {
                "type": "integer",
                "description": "Length of each meeting."
              },
              "slots": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "date-time"
                },
                "description": "Free start times (UTC). Empty when nothing is free in the range."
              }
            },
            "required": [
              "kind",
              "minutes",
              "slots"
            ]
          },
          {
            "type": "object",
            "properties": {
              "error": {
                "type": "string",
                "description": "What went wrong, in words to pass on."
              }
            },
            "required": [
              "error"
            ]
          }
        ]
      },
      "annotations": {
        "readOnlyHint": true
      }
    },
    {
      "name": "book_meeting",
      "title": "Book a chat with Jon",
      "description": "Books a 30-minute video call or coffee with Jon Sharratt for the person you’re helping, at a time from list_free_times. Check with them first and use their own name and email: it goes into Jon’s calendar and Google emails them the invite. A coffee also needs the coffee shop and its UK postcode. 3 bookings a day at most.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "call",
              "coffee"
            ]
          },
          "start": {
            "type": "string",
            "format": "date-time",
            "description": "A start time from list_free_times."
          },
          "name": {
            "type": "string",
            "maxLength": 100,
            "description": "The person’s name."
          },
          "email": {
            "type": "string",
            "format": "email",
            "maxLength": 254,
            "description": "Where the invite goes."
          },
          "note": {
            "type": "string",
            "maxLength": 1000,
            "description": "What they’d like to talk about."
          },
          "shop": {
            "type": "string",
            "maxLength": 120,
            "description": "Coffee only: the coffee shop."
          },
          "postcode": {
            "type": "string",
            "description": "Coffee only: its UK postcode."
          }
        },
        "required": [
          "kind",
          "start",
          "name",
          "email"
        ]
      },
      "outputSchema": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "booked": {
                "const": true
              },
              "kind": {
                "type": "string",
                "enum": [
                  "call",
                  "coffee"
                ]
              },
              "start": {
                "type": "string",
                "format": "date-time"
              },
              "end": {
                "type": "string",
                "format": "date-time"
              },
              "meet": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The Google Meet link, for a call."
              },
              "place": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Where, for a coffee."
              },
              "invite": {
                "type": "string",
                "format": "email",
                "description": "Where Google is emailing the invite."
              }
            },
            "required": [
              "booked",
              "kind",
              "start",
              "end",
              "invite"
            ]
          },
          {
            "type": "object",
            "properties": {
              "error": {
                "type": "string",
                "description": "What went wrong, in words to pass on."
              }
            },
            "required": [
              "error"
            ]
          }
        ]
      },
      "annotations": {
        "consequentialHint": true
      }
    }
  ]
}