[
  {
    "name": "explore_area",
    "description": "Published police reports within a radius, nearest first. Always preserve coverage, approximation and reporting-window caveats. No safety assessment.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "latitude": {
          "type": "number",
          "minimum": -85,
          "maximum": 85
        },
        "longitude": {
          "type": "number",
          "minimum": -180,
          "maximum": 180
        },
        "radius_miles": {
          "type": "number",
          "enum": [
            0.25,
            0.5,
            1,
            2
          ]
        },
        "category": {
          "type": "string",
          "enum": [
            "all",
            "burglary",
            "robbery",
            "assault",
            "vehicle",
            "sexual",
            "other"
          ]
        }
      },
      "required": [
        "latitude",
        "longitude"
      ],
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": true,
      "openWorldHint": true
    }
  },
  {
    "name": "get_report",
    "description": "Read one public police report with source attribution. Never returns personal registry records.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 300
        }
      },
      "required": [
        "id"
      ],
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": true,
      "openWorldHint": true
    }
  },
  {
    "name": "list_sources",
    "description": "Coverage, publication windows and last successful refresh times. A refresh time is not an incident date.",
    "inputSchema": {
      "type": "object",
      "properties": {},
      "required": [],
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": true,
      "openWorldHint": true
    }
  },
  {
    "name": "search_places",
    "description": "Search covered cities or coordinates. US street addresses use the US Census geocoder. Apple search is used when configured. No search history is stored.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "query": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        }
      },
      "required": [
        "query"
      ],
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": true,
      "openWorldHint": true
    }
  },
  {
    "name": "walking_directions",
    "description": "Return an Apple Maps walking-direction link from explicit origin coordinates to destination coordinates or an address. Does not calculate or assess route safety.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "from": {
          "type": "array",
          "items": {
            "type": "number"
          },
          "minItems": 2,
          "maxItems": 2
        },
        "to": {
          "type": "array",
          "items": {
            "type": "number"
          },
          "minItems": 2,
          "maxItems": 2
        },
        "destination": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        }
      },
      "required": [
        "from"
      ],
      "additionalProperties": false,
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "from": {
              "type": "array",
              "items": {
                "type": "number"
              },
              "minItems": 2,
              "maxItems": 2
            },
            "to": {
              "type": "array",
              "items": {
                "type": "number"
              },
              "minItems": 2,
              "maxItems": 2
            },
            "destination": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          },
          "required": [
            "from",
            "to"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "from": {
              "type": "array",
              "items": {
                "type": "number"
              },
              "minItems": 2,
              "maxItems": 2
            },
            "to": {
              "type": "array",
              "items": {
                "type": "number"
              },
              "minItems": 2,
              "maxItems": 2
            },
            "destination": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          },
          "required": [
            "from",
            "destination"
          ],
          "additionalProperties": false
        }
      ]
    },
    "annotations": {
      "readOnlyHint": true,
      "openWorldHint": true
    }
  },
  {
    "name": "save_place",
    "description": "Return a new local bookmark collection. Stateless: the caller must persist the returned places; Glimby stores nothing on the server.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "places": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 80
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 80
              },
              "latitude": {
                "type": "number",
                "minimum": -85,
                "maximum": 85
              },
              "longitude": {
                "type": "number",
                "minimum": -180,
                "maximum": 180
              },
              "radius_miles": {
                "type": "number",
                "enum": [
                  0.25,
                  0.5,
                  1,
                  2
                ]
              }
            },
            "required": [
              "id",
              "name",
              "latitude",
              "longitude",
              "radius_miles"
            ],
            "additionalProperties": false
          },
          "maxItems": 100
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 80
        },
        "latitude": {
          "type": "number",
          "minimum": -85,
          "maximum": 85
        },
        "longitude": {
          "type": "number",
          "minimum": -180,
          "maximum": 180
        },
        "radius_miles": {
          "type": "number",
          "enum": [
            0.25,
            0.5,
            1,
            2
          ]
        }
      },
      "required": [
        "places",
        "name",
        "latitude",
        "longitude"
      ],
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": true,
      "openWorldHint": true
    }
  },
  {
    "name": "delete_place",
    "description": "Return the supplied bookmark collection without the specified id. The caller persists it locally.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "places": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 80
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 80
              },
              "latitude": {
                "type": "number",
                "minimum": -85,
                "maximum": 85
              },
              "longitude": {
                "type": "number",
                "minimum": -180,
                "maximum": 180
              },
              "radius_miles": {
                "type": "number",
                "enum": [
                  0.25,
                  0.5,
                  1,
                  2
                ]
              }
            },
            "required": [
              "id",
              "name",
              "latitude",
              "longitude",
              "radius_miles"
            ],
            "additionalProperties": false
          },
          "maxItems": 100
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 80
        }
      },
      "required": [
        "places",
        "id"
      ],
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": true,
      "openWorldHint": true
    }
  },
  {
    "name": "clear_places",
    "description": "Return an empty bookmark collection after explicit confirmation. The caller persists it locally.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "confirm": {
          "type": "boolean",
          "enum": [
            true
          ]
        }
      },
      "required": [
        "confirm"
      ],
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": true,
      "openWorldHint": true
    }
  },
  {
    "name": "get_app_info",
    "description": "Product, legal, support, registry links, covered-city suggestions and navigation links. No account, subscription, safety score or alerts.",
    "inputSchema": {
      "type": "object",
      "properties": {},
      "required": [],
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": true,
      "openWorldHint": true
    }
  },
  {
    "name": "list_places",
    "description": "Read a bookmark collection explicitly supplied by this client. Does not access or sync bookmarks on another device.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "places": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 80
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 80
              },
              "latitude": {
                "type": "number",
                "minimum": -85,
                "maximum": 85
              },
              "longitude": {
                "type": "number",
                "minimum": -180,
                "maximum": 180
              },
              "radius_miles": {
                "type": "number",
                "enum": [
                  0.25,
                  0.5,
                  1,
                  2
                ]
              }
            },
            "required": [
              "id",
              "name",
              "latitude",
              "longitude",
              "radius_miles"
            ],
            "additionalProperties": false
          },
          "maxItems": 100
        }
      },
      "required": [
        "places"
      ],
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": true,
      "openWorldHint": false
    }
  }
]
