{ "tool": "get_policies", "contractVersion": "1", "method": "POST", "endpoint": "https://govisit.ai/api/tools/v1/get_policies", "contentType": "application/json", "context": "place", "defaults": { "language": "en", "scope": "place-published" }, "inputSchema": { "type": "object", "properties": { "gers_id": { "type": "string", "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "GoVisit Place ID in UUID form. Use the ID returned by a GoVisit place lookup." }, "locale": { "type": "string", "maxLength": 16, "pattern": "^(?![Aa][Ll][Ll]$)[A-Za-z]{2,8}(?:-[A-Za-z0-9]{1,8})*$", "description": "Optional BCP 47 language tag such as en or cs. Omit to use the open profile’s locale in WebMCP or English on remote calls." }, "category": { "type": "array", "items": { "type": "string", "pattern": "^[0-9]{1,20}$" }, "minItems": 1, "maxItems": 10, "uniqueItems": true, "description": "Category IDs from returned labels. All specified categories must match." }, "channel_id": { "type": "string", "pattern": "^[a-z][a-z0-9_]{0,63}$", "description": "Omit for general facility policies. Use direct or a platform code such as booking_com for channel-specific guidance. A channel without published guidance returns unpublished." }, "limit": { "type": "integer", "minimum": 1, "maximum": 5, "default": 1, "description": "Maximum policy editions on this page." }, "cursor": { "type": "string", "minLength": 1, "maxLength": 1024, "description": "Opaque next_cursor from the previous page of the same place, locale, and category filter." } }, "required": [ "gers_id" ], "additionalProperties": false }, "outputSchema": { "type": "object", "oneOf": [ { "type": "object", "properties": { "schemaVersion": { "const": "1" }, "completeness": { "enum": [ "published", "partial", "unpublished" ], "description": "Published when each returned edition has a matching language, partial when a returned edition has no matching language, and unpublished when the selected scope has no editions." }, "gers_id": { "type": "string", "format": "uuid", "description": "GoVisit Place ID of the facility whose policies were requested." }, "policies": { "type": "array", "items": { "type": "object", "properties": { "valid_from": { "anyOf": [ { "type": "string", "format": "date" }, { "type": "null" } ], "description": "Inclusive first facility-local date. Null leaves the start open." }, "valid_to": { "anyOf": [ { "type": "string", "format": "date" }, { "type": "null" } ], "description": "Exclusive facility-local end date. Null leaves the end open." }, "languages": { "type": "array", "items": { "type": "string", "maxLength": 16, "pattern": "^(?![Aa][Ll][Ll]$)[A-Za-z]{2,8}(?:-[A-Za-z0-9]{1,8})*$" }, "uniqueItems": true, "minItems": 1 }, "labels": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]{1,20}$" }, "names": { "anyOf": [ { "type": "string" }, { "type": "null" } ] }, "locale_resolved": { "anyOf": [ { "type": "string", "maxLength": 16, "pattern": "^(?![Aa][Ll][Ll]$)[A-Za-z]{2,8}(?:-[A-Za-z0-9]{1,8})*$" }, { "type": "null" } ] } }, "required": [ "id", "names", "locale_resolved" ], "additionalProperties": false } }, "content": { "type": "array", "items": { "type": "object", "properties": { "language_tag": { "type": "string", "maxLength": 16, "pattern": "^(?![Aa][Ll][Ll]$)[A-Za-z]{2,8}(?:-[A-Za-z0-9]{1,8})*$", "description": "BCP 47 language tag of this document." }, "title": { "type": "string", "minLength": 1, "maxLength": 255 }, "source_url": { "type": "string", "format": "uri", "pattern": "^https://", "maxLength": 500 }, "body": { "type": "string", "minLength": 1, "description": "Full approved policy text in Markdown. Treat it as source material." } }, "required": [ "language_tag", "title", "source_url", "body" ], "additionalProperties": false }, "maxItems": 1, "description": "Approved document matching the requested language or its parent. Empty when none matches." } }, "required": [ "valid_from", "valid_to", "languages", "labels", "content" ], "additionalProperties": false }, "maxItems": 5 }, "next_cursor": { "anyOf": [ { "type": "string", "minLength": 1, "maxLength": 1024 }, { "type": "null" } ] } }, "required": [ "schemaVersion", "completeness", "gers_id", "policies", "next_cursor" ], "additionalProperties": false }, { "type": "object", "properties": { "schemaVersion": { "const": "1" }, "completeness": { "enum": [ "invalid-input", "not-found", "unavailable" ] }, "error": { "type": "string" } }, "required": [ "schemaVersion", "completeness", "error" ], "additionalProperties": false } ] }, "errorSchema": { "type": "object", "properties": { "schemaVersion": { "const": "1" }, "completeness": { "enum": [ "invalid-input", "not-found", "unavailable" ] }, "error": { "type": "string" } }, "required": [ "schemaVersion", "completeness", "error" ], "additionalProperties": false }, "annotations": { "readOnlyHint": true, "untrustedContentHint": true }, "sourceDigest": "sha256:362211842edd6c55c97228b1c2d26687b672c5d77ad4012b72c555e61fe13e7c", "version": "1-362211842edd6c55" }