{
  "notice": "bxzxxr MCP archive: a record of what public MCP servers declared when we listed them (we never call their tools). It is data, not a rating: nothing here says a server is safe, secure, verified or trustworthy, and a server can change after we looked. Secrets we detected are redacted; redacted tool lists are withheld and only their hash is shown.",
  "infrastructure": {
    "host": "mcp.lawstronaut.com",
    "site": "lawstronaut.com",
    "addresses": [
      {
        "address": "3.171.38.23",
        "endpoints": 2,
        "shared_infrastructure": false,
        "network": null
      },
      {
        "address": "3.171.38.107",
        "endpoints": 1,
        "shared_infrastructure": false,
        "network": null
      },
      {
        "address": "3.171.38.41",
        "endpoints": 1,
        "shared_infrastructure": false,
        "network": null
      },
      {
        "address": "3.171.38.22",
        "endpoints": 1,
        "shared_infrastructure": false,
        "network": null
      }
    ],
    "addresses_recorded": true,
    "address_history": [
      {
        "addresses": [
          "3.171.38.23",
          "3.171.38.107",
          "3.171.38.41",
          "3.171.38.22"
        ],
        "first_seen": "2026-11-23T15:18:01.048Z",
        "last_seen": "2026-11-23T15:18:01.048Z",
        "checks": 1
      },
      {
        "addresses": [
          "3.171.38.107",
          "3.171.38.41",
          "3.171.38.23",
          "3.171.38.22"
        ],
        "first_seen": "2026-11-22T15:17:01.707Z",
        "last_seen": "2026-11-22T15:17:01.707Z",
        "checks": 1
      }
    ],
    "hosting": [],
    "software": [
      {
        "value": "nginx",
        "evidence": "Server header \"nginx\""
      }
    ],
    "server_info": {
      "name": "Lawstronaut MCP",
      "version": "2.0.0",
      "protocol_version": "2025-06-18"
    },
    "headers": {
      "server": "nginx",
      "access-control-allow-origin": "*"
    },
    "auth": null
  },
  "related": {
    "same_address": {
      "total": 1,
      "sample": [
        {
          "id": "5079",
          "url": "https://ai.immoswipe.ch/mcp",
          "server_name": "ch.immoswipe/immoswipe-ai",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T07:31:01.039Z"
        }
      ]
    },
    "same_site": {
      "total": 0,
      "sample": []
    },
    "same_tool_list": {
      "total": 0,
      "sample": []
    },
    "same_publisher": {
      "publisher": "com.lawstronaut",
      "total": 0,
      "sample": []
    },
    "same_repository": {
      "repository_url": "https://github.com/Lawstronaut-FZCO/lawstronaut-mcp",
      "total": 0,
      "sample": []
    },
    "note": "Shared addresses on big platforms (Cloudflare, Vercel and the like) put unrelated servers together; those are marked shared_infrastructure. A match is a pivot, not a link between operators."
  },
  "endpoint": {
    "id": "12002",
    "server_name": "com.lawstronaut/lawstronaut-mcp",
    "url": "https://mcp.lawstronaut.com/",
    "host": "mcp.lawstronaut.com",
    "transport": "streamable-http",
    "last_checked_at": "2026-11-23T15:18:01.048Z",
    "last_state": "listed",
    "last_detail": null,
    "consecutive_failures": 0,
    "current_sha": "693936b1e55b0947dd33a32f69bfef4537bb8301e74902c528727ce800e1fad7",
    "first_listed_at": "2026-11-21T09:24:00.754Z",
    "created_at": "2026-11-21T06:05:08.668Z",
    "resolved_addresses": [
      "3.171.38.23",
      "3.171.38.107",
      "3.171.38.41",
      "3.171.38.22"
    ]
  },
  "server": {
    "name": "com.lawstronaut/lawstronaut-mcp",
    "title": "Lawstronaut",
    "description": "Connect AI to millions of laws and court cases with the Lawstronaut MCP.",
    "version": "2.0.0",
    "registry_status": "active",
    "repository_url": "https://github.com/Lawstronaut-FZCO/lawstronaut-mcp",
    "website_url": "https://lawstronaut.com",
    "published_at": "2026-11-09T15:50:27.885Z",
    "updated_at": "2026-11-09T15:50:27.885Z",
    "first_seen": "2026-11-21T06:05:08.048Z"
  },
  "other_endpoints": [],
  "intel": {
    "capabilities": [],
    "evm_addresses": [],
    "chains": [],
    "tokens": [],
    "computed_at": "2026-11-22T15:07:11.626Z"
  },
  "operator": {
    "key": "lawstronaut.com",
    "name": "lawstronaut.com",
    "platform": false,
    "marketplace": false
  },
  "needs_sign_in": false,
  "reachability": {
    "window_days": 30,
    "checks": 3,
    "answered": 3,
    "answered_percent": 100,
    "avg_listing_latency_ms": 166,
    "first_check_in_window": "2026-11-21T09:24:00.754Z",
    "consecutive_failures_now": 0,
    "days": [
      {
        "day": "2026-11-21",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      },
      {
        "day": "2026-11-22",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      },
      {
        "day": "2026-11-23",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      }
    ]
  },
  "tool_list": {
    "sha256": "693936b1e55b0947dd33a32f69bfef4537bb8301e74902c528727ce800e1fad7",
    "tools": 18,
    "resources": 0,
    "prompts": 0,
    "first_seen": "2026-11-21T09:24:00.967Z",
    "tool_names": [
      "list_jurisdictions",
      "list_domains",
      "list_subdomains",
      "list_categories",
      "list_subcategories",
      "list_law_types",
      "list_portals",
      "list_authority_types",
      "list_issuing_authorities",
      "list_documents",
      "list_full_text",
      "list_markdown",
      "document_presigned_url",
      "document_version",
      "horizon_scan",
      "evidence_pull",
      "search",
      "health_check"
    ],
    "declared": {
      "tools": [
        {
          "name": "list_jurisdictions",
          "description": "List every country and state in the authenticated subscription's Lawstronaut legal corpus (name, iso, type, documents_count) — not the global unfiltered catalog, and not legal documents or full text.\n\nWhen to use: Call FIRST, before any jurisdiction-scoped legal query, so you know which iso codes are valid for this credential. When not: Skip if you already have this list from earlier in the session. Do not use this to fetch documents, markdown, source files, or portals.\n\nParameters: Takes none — invoke with {}. Do not pass iso, country, limit, offset, or other filters; they are not accepted and would not change the result. There is no page size or default filter. Empty data means the subscription includes no jurisdictions.\n\nBehavior: Read-only SELECT; does not create, update, or delete records, files, or credentials. The only effect is a database read. Auth: tools/call requires OAuth 2.0 or a Bearer token (401 if missing, invalid, revoked, or no active subscription). Rate limits: none at the MCP layer; safe to retry. Not cached; each call reads current subscription and portal data.\n\nReturns: A list of jurisdictions matching the filters, with pagination information.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {},
            "description": "No arguments. Call with {}. Scope comes from the authenticated subscription, not from caller-supplied filters."
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "message",
              "data"
            ],
            "properties": {
              "data": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "name",
                    "iso",
                    "type",
                    "documents_count"
                  ],
                  "properties": {
                    "iso": {
                      "type": "string",
                      "description": "Canonical ISO code to pass to later tools, e.g. BE"
                    },
                    "name": {
                      "type": "string",
                      "description": "Jurisdiction display name, e.g. Belgium"
                    },
                    "type": {
                      "enum": [
                        "country",
                        "state"
                      ],
                      "type": "string",
                      "description": "country for national, state for sub-national"
                    },
                    "documents_count": {
                      "type": "number",
                      "description": "Number of documents in the jurisdiction"
                    }
                  },
                  "additionalProperties": false
                },
                "description": "Full subscribed list, countries then states; empty if the subscription has no jurisdictions."
              },
              "message": {
                "type": "string",
                "description": "Result message"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "List jurisdictions",
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_domains",
          "description": "Lists the top-level legal domains (id, domain_id, domain name). This is the first taxonomy step. It does not return subdomains, categories, documents, or jurisdictions.\n\nWhen to use: When you need the domain list or a name match. Examples: 'what legal domains exist?', 'find the domain for private law'. Pass domain only to narrow by name. When not: Do not use this for children of a domain. For subdomains use list_subdomains with the returned domain_id. For categories use list_categories. For subcategories use list_subcategories. For law types use list_law_types. For documents use list_documents or search. For jurisdictions use list_jurisdictions. Skip if you already have this domain list for the same domain filter.\n\nParameters: domain is an optional case-insensitive substring of the domain name. There is no parent id and no iso. limit defaults to 20 and is capped at 100. next_id is the numeric id from the previous pagination.next_id; omit it on the first page. A null next_id means there is no further page. Empty data means no domain name matched.\n\nBehavior: Read-only SELECT; does not create, update, or delete records, files, or credentials. The only effect is a database read. Auth: tools/call requires OAuth 2.0 or a Bearer token (401 if missing, invalid, revoked, or no active subscription). Rate limits: none at the MCP layer; safe to retry. Not cached; each call reads the current domain table. total_count is the full match count, not the page size. Results are not limited to a jurisdiction.\n\nReturns: A page of {id, domain_id, domain}. Example: {\"id\":1,\"domain_id\":\"A\",\"domain\":\"Private law\"}. Pass domain_id, not id, to list_subdomains.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "limit": {
                "type": "number",
                "description": "Number of results to return"
              },
              "domain": {
                "type": "string",
                "description": "Filter by domain name"
              },
              "next_id": {
                "type": "number",
                "description": "Next ID to paginate the results"
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "message",
              "data"
            ],
            "properties": {
              "data": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "domain_id",
                    "domain"
                  ],
                  "properties": {
                    "id": {
                      "type": "number",
                      "description": "Numeric row id. Use only as pagination.next_id, not as domain_id."
                    },
                    "domain": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Domain display name, or null when unset"
                    },
                    "domain_id": {
                      "type": "string",
                      "description": "Domain reference, such as A. Pass this to list_subdomains as domain_id."
                    }
                  },
                  "additionalProperties": false
                },
                "description": "Top-level domains; empty if none match. Not limited to a jurisdiction."
              },
              "message": {
                "type": "string",
                "description": "Result message"
              },
              "pagination": {
                "type": "object",
                "required": [
                  "total_count",
                  "limit",
                  "next_id"
                ],
                "properties": {
                  "limit": {
                    "type": "number",
                    "description": "Maximum number of domains returned"
                  },
                  "next_id": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Numeric id cursor for the next page, or null when there is no next page"
                  },
                  "total_count": {
                    "type": "number",
                    "description": "Total number of matching domains"
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "List domains",
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_subdomains",
          "description": "Lists subdomains under one domain (id, domain_id, subdomain_id, subdomain name). This is the second taxonomy step.\n\nWhen to use: When you already have a domain_id from list_domains. Examples: 'subdomains under domain A', 'international law under Private law'. Pass subdomain only to narrow by name. When not: Do not call without a domain_id from list_domains; use list_domains first. For categories under a subdomain use list_categories with subdomain_id. For subcategories use list_subcategories. For law types use list_law_types. For documents use list_documents or search. Skip if you already have this subdomain list for the same domain_id and subdomain filter.\n\nParameters: domain_id (required) is the domain reference from list_domains, such as A, and is uppercased before the query. It is not the numeric id. subdomain is an optional case-insensitive substring of the subdomain name. An unknown domain_id returns Domain not found. limit defaults to 20 and is capped at 100. next_id is the numeric id from pagination.next_id, not subdomain_id. Empty data means that domain has no matching subdomain.\n\nBehavior: Read-only SELECT; does not create, update, or delete records, files, or credentials. The only effect is a database read. Auth: tools/call requires OAuth 2.0 or a Bearer token (401 if missing, invalid, revoked, or no active subscription). Rate limits: none at the MCP layer; safe to retry. Not cached; each call reads the current subdomain table. total_count is the full match count, not the page size.\n\nReturns: A page of {id, domain_id, subdomain_id, subdomain}. Example: {\"id\":1,\"domain_id\":\"A\",\"subdomain_id\":\"A.1\",\"subdomain\":\"Private International Law\"}. Pass subdomain_id, not id, to list_categories.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "domain_id"
            ],
            "properties": {
              "limit": {
                "type": "number",
                "description": "Number of results to return"
              },
              "next_id": {
                "type": "number",
                "description": "Next ID to paginate the results"
              },
              "domain_id": {
                "type": "string",
                "description": "Filter by Domain ID"
              },
              "subdomain": {
                "type": "string",
                "description": "Filter by subdomain name"
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "message",
              "data"
            ],
            "properties": {
              "data": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "domain_id",
                    "subdomain_id",
                    "subdomain"
                  ],
                  "properties": {
                    "id": {
                      "type": "number",
                      "description": "Numeric row id. Use only as pagination.next_id, not as subdomain_id."
                    },
                    "domain_id": {
                      "type": "string",
                      "description": "Parent domain reference, such as A"
                    },
                    "subdomain": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Subdomain display name, or null when unset"
                    },
                    "subdomain_id": {
                      "type": "string",
                      "description": "Subdomain reference, such as A.1. Pass this to list_categories as subdomain_id."
                    }
                  },
                  "additionalProperties": false
                },
                "description": "Subdomains in the requested domain that have data; empty if none match."
              },
              "message": {
                "type": "string",
                "description": "Result message"
              },
              "pagination": {
                "type": "object",
                "required": [
                  "total_count",
                  "limit",
                  "next_id"
                ],
                "properties": {
                  "limit": {
                    "type": "number",
                    "description": "Maximum number of subdomains returned"
                  },
                  "next_id": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Cursor ID for the next page, or null when there is no next page"
                  },
                  "total_count": {
                    "type": "number",
                    "description": "Total number of matching subdomains"
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "List subdomains",
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_categories",
          "description": "Lists categories under one subdomain, with the parent domain and subdomain names. This is the third taxonomy step.\n\nWhen to use: When you already have a subdomain_id from list_subdomains. Examples: 'categories under subdomain A.1', 'find a category named jurisdiction'. Pass category_name only to narrow by name. When not: Do not use this for subcategories; use list_subcategories with the returned category_id. Do not use it for law types; use list_law_types. For the parent lists use list_domains and list_subdomains. For documents use list_documents or search. Do not call without a subdomain_id from list_subdomains. Skip if you already have this category list for the same subdomain_id and category_name.\n\nParameters: subdomain_id is the subdomain reference from list_subdomains, such as A.1. A call without it, or with an unknown value, returns Subdomain not found. category_name is an optional case-insensitive substring of the category name; the parameter is category_name, not category. limit defaults to 20 and is capped at 100. next_id is the numeric id from pagination.next_id, not category_id. Empty data means that subdomain has no matching category.\n\nBehavior: Read-only SELECT; does not create, update, or delete records, files, or credentials. The only effect is a database read. Auth: tools/call requires OAuth 2.0 or a Bearer token (401 if missing, invalid, revoked, or no active subscription). Rate limits: none at the MCP layer; safe to retry. Not cached; each call reads the current category table. total_count is the full match count, not the page size. The input marks subdomain_id optional, but the query returns Subdomain not found when it is missing.\n\nReturns: A page of {id, domain, subdomain, category_id, category_name}. domain and subdomain are display names, not reference codes. Example category_id \"A.1.1\", category_name \"General Private International Law\". Pass category_id, not id, to list_subcategories.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "limit": {
                "type": "number",
                "description": "Number of results to return"
              },
              "next_id": {
                "type": "number",
                "description": "Next ID to paginate the results"
              },
              "subdomain_id": {
                "type": "string",
                "description": "Filter by Subdomain ID"
              },
              "category_name": {
                "type": "string",
                "description": "Filter by category name"
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "message",
              "data"
            ],
            "properties": {
              "data": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "domain",
                    "subdomain",
                    "category_id",
                    "category_name"
                  ],
                  "properties": {
                    "id": {
                      "type": "number",
                      "description": "Numeric row id. Use only as pagination.next_id, not as category_id."
                    },
                    "domain": {
                      "type": "string",
                      "description": "Parent domain display name, not the domain reference"
                    },
                    "subdomain": {
                      "type": "string",
                      "description": "Parent subdomain display name, not the subdomain reference"
                    },
                    "category_id": {
                      "type": "string",
                      "description": "Category reference, such as A.1.1. Pass this to list_subcategories as category_id."
                    },
                    "category_name": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Category display name, or null when unset"
                    }
                  },
                  "additionalProperties": false
                },
                "description": "Categories in the requested subdomain that have data; empty if none match."
              },
              "message": {
                "type": "string",
                "description": "Result message"
              },
              "pagination": {
                "type": "object",
                "required": [
                  "total_count",
                  "limit",
                  "next_id"
                ],
                "properties": {
                  "limit": {
                    "type": "number",
                    "description": "Maximum number of categories returned"
                  },
                  "next_id": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Cursor ID for the next page, or null when there is no next page"
                  },
                  "total_count": {
                    "type": "number",
                    "description": "Total number of matching categories"
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "List categories",
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_subcategories",
          "description": "Lists subcategories under one category (id, category_id, category_name, subcategory_id, subcategory_name). This is the fourth taxonomy step.\n\nWhen to use: When you already have a category_id from list_categories. Examples: 'subcategories of category A.1.1', 'find the Jurisdiction subcategory'. Pass subcategory_name only to narrow by name. When not: Do not use this for law types; use list_law_types with the returned subcategory_id. For categories use list_categories. For domains or subdomains use list_domains or list_subdomains. For documents use list_documents or search. Do not call without a category_id from list_categories. Skip if you already have this subcategory list for the same category_id and subcategory_name.\n\nParameters: category_id (required) is the category reference from list_categories. It must be exactly three dot-separated segments ending in a number, such as A.1.1, and is uppercased before the query. subcategory_name is an optional case-insensitive substring of the subcategory name; the parameter is subcategory_name, not subcategory. An unknown category_id returns Category not found. A category_id with the wrong shape is rejected before the query. limit defaults to 20 and is capped at 100. next_id is the numeric id from pagination.next_id, not subcategory_id. Empty data means that category has no matching subcategory.\n\nBehavior: Read-only SELECT; does not create, update, or delete records, files, or credentials. The only effect is a database read. Auth: tools/call requires OAuth 2.0 or a Bearer token (401 if missing, invalid, revoked, or no active subscription). Rate limits: none at the MCP layer; safe to retry. Not cached; each call reads the current subcategory table. total_count is the full match count, not the page size.\n\nReturns: A page of {id, category_id, category_name, subcategory_id, subcategory_name}. Example: {\"category_id\":\"A.1.1\",\"category_name\":\"General Private International Law\",\"subcategory_id\":\"A.1.1.1\",\"subcategory_name\":\"Jurisdiction\"}. Pass subcategory_id, not id, to list_law_types.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "category_id"
            ],
            "properties": {
              "limit": {
                "type": "number",
                "description": "Number of results to return"
              },
              "next_id": {
                "type": "number",
                "description": "Next ID to paginate the results"
              },
              "category_id": {
                "type": "string",
                "description": "Filter by Category ID"
              },
              "subcategory_name": {
                "type": "string",
                "description": "Filter by subcategory name"
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "message",
              "data"
            ],
            "properties": {
              "data": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "category_id",
                    "category_name",
                    "subcategory_id",
                    "subcategory_name"
                  ],
                  "properties": {
                    "id": {
                      "type": "number",
                      "description": "Numeric row id. Use only as pagination.next_id, not as subcategory_id."
                    },
                    "category_id": {
                      "type": "string",
                      "description": "Parent category reference, such as A.1.1"
                    },
                    "category_name": {
                      "type": "string",
                      "description": "Parent category display name"
                    },
                    "subcategory_id": {
                      "type": "string",
                      "description": "Subcategory reference, such as A.1.1.1. Pass this to list_law_types as subcategory_id."
                    },
                    "subcategory_name": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Subcategory display name, or null when unset"
                    }
                  },
                  "additionalProperties": false
                },
                "description": "Subcategories in the requested category that have data; empty if none match."
              },
              "message": {
                "type": "string",
                "description": "Result message"
              },
              "pagination": {
                "type": "object",
                "required": [
                  "total_count",
                  "limit",
                  "next_id"
                ],
                "properties": {
                  "limit": {
                    "type": "number",
                    "description": "Maximum number of subcategories returned"
                  },
                  "next_id": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Cursor ID for the next page, or null when there is no next page"
                  },
                  "total_count": {
                    "type": "number",
                    "description": "Total number of matching subcategories"
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "List subcategories",
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_law_types",
          "description": "Lists law types under one subcategory, with the parent category and subcategory names. This is the last taxonomy step. It does not return documents.\n\nWhen to use: When you already have a subcategory_id from list_subcategories. Examples: 'law types under subcategory A.1.1.1', 'find law types named statute'. Pass law_type only to narrow by name. When not: Do not use this to list subcategories, categories, domains, or documents. For those use list_subcategories, list_categories, list_domains, list_documents, or search. Do not call without a subcategory_id from list_subcategories. Skip if you already have this law type list for the same subcategory_id and law_type filter.\n\nParameters: subcategory_id (required) is the subcategory reference from list_subcategories. It must be exactly four dot-separated segments, such as A.1.1.1, and is uppercased before the query. law_type is an optional case-insensitive substring of the law type name. A subcategory_id with the wrong shape is rejected before the query. limit defaults to 20 and is capped at 100. next_id is the numeric id from pagination.next_id, not subcategory_id. Empty data means that subcategory has no matching law type.\n\nBehavior: Read-only SELECT; does not create, update, or delete records, files, or credentials. The only effect is a database read. Auth: tools/call requires OAuth 2.0 or a Bearer token (401 if missing, invalid, revoked, or no active subscription). Rate limits: none at the MCP layer; safe to retry. Not cached; each call reads the current law type table. total_count is the full match count, not the page size. There is no further taxonomy tool after this one.\n\nReturns: A page of {id, category_id, category_name, subcategory_id, subcategory_name, law_type_id, law_type}. id and law_type_id are the same numeric id. Example law_type \"Statute\".",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "subcategory_id"
            ],
            "properties": {
              "limit": {
                "type": "number",
                "description": "Number of results to return"
              },
              "next_id": {
                "type": "number",
                "description": "Next ID to paginate the results"
              },
              "law_type": {
                "type": "string",
                "description": "Filter by law type name"
              },
              "subcategory_id": {
                "type": "string",
                "description": "Filter by Subcategory ID"
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "message",
              "data"
            ],
            "properties": {
              "data": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "category_id",
                    "category_name",
                    "subcategory_id",
                    "subcategory_name",
                    "law_type_id",
                    "law_type"
                  ],
                  "properties": {
                    "id": {
                      "type": "number",
                      "description": "Numeric law type id, same value as law_type_id. Use as pagination.next_id."
                    },
                    "law_type": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Law type display name, or null when unset"
                    },
                    "category_id": {
                      "type": "string",
                      "description": "Parent category reference, such as A.1.1"
                    },
                    "law_type_id": {
                      "type": "number",
                      "description": "Numeric law type id, same value as id"
                    },
                    "category_name": {
                      "type": "string",
                      "description": "Parent category display name"
                    },
                    "subcategory_id": {
                      "type": "string",
                      "description": "Parent subcategory reference, such as A.1.1.1"
                    },
                    "subcategory_name": {
                      "type": "string",
                      "description": "Parent subcategory display name"
                    }
                  },
                  "additionalProperties": false
                },
                "description": "Law types in the requested subcategory that have data; empty if none match."
              },
              "message": {
                "type": "string",
                "description": "Result message"
              },
              "pagination": {
                "type": "object",
                "required": [
                  "total_count",
                  "limit",
                  "next_id"
                ],
                "properties": {
                  "limit": {
                    "type": "number",
                    "description": "Maximum number of law types returned"
                  },
                  "next_id": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Cursor ID for the next page, or null when there is no next page"
                  },
                  "total_count": {
                    "type": "number",
                    "description": "Total number of matching law types"
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "List law types",
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_portals",
          "description": "Lists the source portals available through this tool, with metadata such as jurisdiction and language. A jurisdiction may have multiple portals, including those maintained by regulators or ministries.\n\nWhen to use: When you need portals, legal websites, or sources for a known iso. Pass optional name, tag, or lang only to narrow that list. When not: Do not use this to read a document. For metadata use list_documents. For plain text use list_full_text. For structured Markdown use list_markdown. For a complete citation bundle use evidence_pull. For a temporary source-file URL use document_presigned_url. Do not call without an iso from list_jurisdictions. Skip if you already have this portal list for the same iso and filters.\n\nParameters: iso (required) is a jurisdiction code from list_jurisdictions (e.g. BE, or US_CA for a state). name, tag, and lang are optional and combined with AND: name is a case-insensitive substring of the portal name, tag must match one portal tag exactly, lang must match the language name exactly (e.g. English). With limit, next_id parameters to paginate the results. Empty data means the iso is outside the subscription, or no portal with crawled links matched.\n\nBehavior: Read-only SELECT; does not create, update, or delete records, files, or credentials. The only effect is a database read. Auth: tools/call requires OAuth 2.0 or a Bearer token (401 if missing, invalid, revoked, or no active subscription). Rate limits: none at the MCP layer; safe to retry. Not cached; each call reads current subscription and portal data. Portals with total_links of 0 are omitted.\n\nReturns: A list of portals matching the filters, with pagination information.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "iso"
            ],
            "properties": {
              "iso": {
                "type": "string",
                "description": "iso (required) is a jurisdiction code from list_jurisdictions (e.g. BE, or US_CA for a state)."
              },
              "lang": {
                "type": "string",
                "description": "Exact language name, e.g. English"
              },
              "name": {
                "type": "string",
                "description": "Case-insensitive substring of the portal name"
              },
              "limit": {
                "type": "number",
                "description": "Number of portals to return"
              },
              "next_id": {
                "type": "number",
                "description": "Next portal ID to return"
              },
              "portal_id": {
                "type": "number",
                "description": "Portal ID"
              },
              "portal_tags": {
                "type": "string",
                "description": "Exact portal tag; the portal must include this tag"
              },
              "advanced_search": {
                "type": "boolean",
                "default": false,
                "description": "Advanced search enabled"
              }
            },
            "description": "iso is required. name, tag, and lang are optional AND filters. Scope is the authenticated subscription."
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "message",
              "data"
            ],
            "properties": {
              "data": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "portal_id",
                    "url",
                    "jurisdiction",
                    "documents_count"
                  ],
                  "properties": {
                    "url": {
                      "type": "string",
                      "description": "Portal base URL"
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Portal name in the source language"
                    },
                    "name_en": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "English name, or null when the portal has none"
                    },
                    "language": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Language name, e.g. English"
                    },
                    "portal_id": {
                      "type": "number",
                      "description": "Portal ID"
                    },
                    "portal_tags": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Tags on the portal; null when none are set"
                    },
                    "jurisdiction": {
                      "type": "object",
                      "required": [
                        "iso",
                        "country"
                      ],
                      "properties": {
                        "iso": {
                          "type": "string",
                          "description": "Jurisdiction ISO"
                        },
                        "state": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "State or region name; empty string when the portal is national"
                        },
                        "country": {
                          "type": "string",
                          "description": "Country name"
                        }
                      },
                      "description": "Jurisdiction this portal belongs to",
                      "additionalProperties": false
                    },
                    "advanced_search": {
                      "type": [
                        "boolean",
                        "null"
                      ],
                      "description": "Advanced search enabled"
                    },
                    "documents_count": {
                      "type": "number",
                      "description": "Number of documents in the portal"
                    }
                  },
                  "additionalProperties": false
                },
                "description": "Portals in the requested jurisdiction that have crawled links; empty if none match."
              },
              "message": {
                "type": "string",
                "description": "Result message"
              },
              "pagination": {
                "type": "object",
                "required": [
                  "total_count",
                  "limit",
                  "next_id"
                ],
                "properties": {
                  "limit": {
                    "type": "number",
                    "description": "Maximum number of portals returned"
                  },
                  "next_id": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Cursor ID for the next page, or null when there is no next page"
                  },
                  "total_count": {
                    "type": "number",
                    "description": "Total number of matching portals"
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "List portals",
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_authority_types",
          "description": "Lists the authority types available through this tool, with metadata such as jurisdiction and portal name.\n\nWhen to use: When you need authority types for a known iso. Pass optional portal name or authority type only to narrow that list. When not: Do not call without an iso from list_jurisdictions. Skip if you already have this authority type list for the same iso and filters.\n\nParameters: iso (required) is a jurisdiction code from list_jurisdictions and is uppercased before the query (e.g. BE, or US_CA for a state). portal_name and authority_type are optional. authority_type must match one authority type exactly. With limit, next_id parameters to paginate the results.\n\nBehavior: Read-only SELECT; does not create, update, or delete records, files, or credentials. The only effect is a database read. Auth: tools/call requires OAuth 2.0 or a Bearer token (401 if missing, invalid, revoked, or no active subscription). Rate limits: none at the MCP layer; safe to retry. Not cached; each call reads current subscription and authority type data. Authority types with total_links of 0 are omitted.\n\nReturns: A list of authority types matching the filters, with pagination information.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "iso"
            ],
            "properties": {
              "iso": {
                "type": "string",
                "description": "Filter by Jurisdiction ISO code (e.g. 'US')"
              },
              "limit": {
                "type": "number",
                "description": "Number of results to return"
              },
              "next_id": {
                "type": "number",
                "description": "Next portal ID to return"
              },
              "portal_name": {
                "type": "string",
                "description": "Filter by portal name"
              },
              "authority_type": {
                "type": "string",
                "description": "Filter by authority type"
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "message",
              "data"
            ],
            "properties": {
              "data": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "iso",
                    "portal_name",
                    "authority_type",
                    "updated_at"
                  ],
                  "properties": {
                    "id": {
                      "type": "number",
                      "description": "Authority type ID"
                    },
                    "iso": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Jurisdiction ISO"
                    },
                    "updated_at": {
                      "type": "string",
                      "description": "Updated at"
                    },
                    "portal_name": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Portal name"
                    },
                    "authority_type": {
                      "type": "string",
                      "description": "Authority type"
                    }
                  },
                  "additionalProperties": false
                },
                "description": "Portals in the requested jurisdiction that have crawled links; empty if none match."
              },
              "message": {
                "type": "string",
                "description": "Result message"
              },
              "pagination": {
                "type": "object",
                "required": [
                  "total_count",
                  "limit",
                  "next_id"
                ],
                "properties": {
                  "limit": {
                    "type": "number",
                    "description": "Maximum number of portals returned"
                  },
                  "next_id": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Cursor ID for the next page, or null when there is no next page"
                  },
                  "total_count": {
                    "type": "number",
                    "description": "Total number of matching portals"
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "List type of authority",
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_issuing_authorities",
          "description": "Lists the issuing authorities available through this tool, with metadata such as jurisdiction and issuing authority.\n\nWhen to use: When you need issuing authorities for a known iso. Pass optional portal name or issuing authority only to narrow that list. When not: Do not call without an iso from list_jurisdictions. Skip if you already have this issuing authority list for the same iso and filters. Empty data means the iso is outside the subscription, or no issuing authority matched.\n\nParameters: iso (required) is a jurisdiction code from list_jurisdictions (e.g. BE, or US_CA for a state). portal_name and issuing_authority are optional. issuing_authority must match one issuing authority exactly. With limit, next_id parameters to paginate the results.\n\nBehavior: Read-only SELECT; does not create, update, or delete records, files, or credentials. The only effect is a database read. Auth: tools/call requires OAuth 2.0 or a Bearer token (401 if missing, invalid, revoked, or no active subscription). Rate limits: none at the MCP layer; safe to retry. Not cached; each call reads current subscription and issuing authority data. Issuing authorities with total_links of 0 are omitted.\n\nReturns: A list of issuing authorities matching the filters, with pagination information.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "iso"
            ],
            "properties": {
              "iso": {
                "type": "string",
                "description": "Filter by Jurisdiction ISO code (e.g. 'US')"
              },
              "limit": {
                "type": "number",
                "description": "Number of results to return"
              },
              "next_id": {
                "type": "number",
                "description": "Next issuing authority ID to return"
              },
              "portal_name": {
                "type": "string",
                "description": "Filter by portal name"
              },
              "issuing_authority": {
                "type": "string",
                "description": "Filter by issuing authority"
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "message",
              "data"
            ],
            "properties": {
              "data": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "iso",
                    "portal_name",
                    "issuing_authority",
                    "issuing_authority_tags",
                    "updated_at"
                  ],
                  "properties": {
                    "id": {
                      "type": "number",
                      "description": "Issuing authority ID"
                    },
                    "iso": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Jurisdiction ISO"
                    },
                    "updated_at": {
                      "type": "string",
                      "description": "Updated at"
                    },
                    "portal_name": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Portal name"
                    },
                    "issuing_authority": {
                      "type": "string",
                      "description": "Issuing authority"
                    },
                    "issuing_authority_tags": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Issuing authority tags"
                    }
                  },
                  "additionalProperties": false
                },
                "description": "Issuing authorities in the requested jurisdiction that have crawled links; empty if none match."
              },
              "message": {
                "type": "string",
                "description": "Result message"
              },
              "pagination": {
                "type": "object",
                "required": [
                  "total_count",
                  "limit",
                  "next_id"
                ],
                "properties": {
                  "limit": {
                    "type": "number",
                    "description": "Maximum number of issuing authorities returned"
                  },
                  "next_id": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Cursor ID for the next page, or null when there is no next page"
                  },
                  "total_count": {
                    "type": "number",
                    "description": "Total number of matching issuing authorities"
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "List issuing authorities",
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_documents",
          "description": "Lists document metadata in a jurisdiction (title, dates, source, classification) with filters and pagination. It does not return the document body, a citation bundle, or a source-file URL.\n\nWhen to use: When you need to find or browse documents before reading them. Example: 'which Belgian employment statutes mention night work?' Use the returned uuid with a body or citation tool. When not: Do not use this for the body or the file. For plain text, use list_full_text (example: 'quote the operative wording'). For structured Markdown, use list_markdown (example: 'keep the article headings'). For a complete citation bundle — metadata, permanent legal link, citation template, body, and a temporary source-file URL — use evidence_pull (example: 'show me the source'). For only a temporary URL to the original file, use document_presigned_url (example: 'download the PDF'). Do not call without an iso from list_jurisdictions. Skip if you already have this document list for the same iso and filters.\n\nParameters: iso (required) is a jurisdiction code from list_jurisdictions (e.g. BE, or US_CA for a state). version, section_title, date_of_decision, file_data_only, issuing_authority, type_of_authority, source_identifier, source_secondary_identifier, tag are optional, section_title is a case-insensitive substring of the section title, date_of_decision is a date, file_data_only is a boolean, issuing_authority is a case-insensitive substring of the issuing authority, type_of_authority is a case-insensitive substring of the type of authority, source_identifier is a case-insensitive substring of the source identifier, source_secondary_identifier is a case-insensitive substring of the source secondary identifier, tag is a case-insensitive substring of the tag. With limit, next_id parameters to paginate the results. Empty data means the iso is outside the subscription, or no document matched.\n\nBehavior: Read-only SELECT; does not create, update, or delete records, files, or credentials. The only effect is a database read. Auth: tools/call requires OAuth 2.0 or a Bearer token (401 if missing, invalid, revoked, or no active subscription). Rate limits: none at the MCP layer; safe to retry. Not cached; each call reads current subscription and document data. Documents with total_links of 0 are omitted.\n\nReturns: A list of documents matching the filters, with pagination information.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "iso"
            ],
            "properties": {
              "iso": {
                "type": "string",
                "description": "Filter by Jurisdiction ISO code (e.g. 'US')"
              },
              "tag": {
                "type": "string",
                "description": "Filter by portal tag"
              },
              "url": {
                "type": "string",
                "description": "Filter by document URL"
              },
              "lang": {
                "type": "string",
                "description": "Exact portal language name, for example English. Filters the portal, not the document language."
              },
              "uuid": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Filter by UUID. Leave blank to apply no UUID filter."
              },
              "limit": {
                "type": "integer",
                "maximum": 100,
                "minimum": 1,
                "description": "Page size. Default 20, maximum 100."
              },
              "title": {
                "type": "string",
                "description": "Filter by title"
              },
              "portal": {
                "type": "string",
                "description": "Filter by portal name"
              },
              "status": {
                "type": "string",
                "description": "Filter by document status"
              },
              "next_id": {
                "type": "number",
                "description": "document id of the first row of the next page, from pagination.next_id. Omit on the first page."
              },
              "version": {
                "type": "string",
                "description": "Filter by version"
              },
              "portal_id": {
                "type": "number",
                "description": "Filter by portal ID"
              },
              "is_repealed": {
                "type": "boolean",
                "default": false,
                "description": "Filter by repealed documents. default value is false"
              },
              "last_updated": {
                "type": "string",
                "description": "YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter."
              },
              "crawling_date": {
                "type": "string",
                "description": "YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter."
              },
              "include_total": {
                "type": "boolean",
                "default": false,
                "description": "Include total count in response"
              },
              "section_title": {
                "type": "string",
                "description": "Filter by section title"
              },
              "effective_date": {
                "type": "string",
                "description": "YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter."
              },
              "file_data_only": {
                "type": "boolean",
                "default": false,
                "description": "(default value is false) returns all documents with file metadata and without file metadata. true returns only the documents with file metadata."
              },
              "last_amendment": {
                "type": "string",
                "description": "YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter."
              },
              "expiration_date": {
                "type": "string",
                "description": "YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter."
              },
              "date_of_decision": {
                "type": "string",
                "description": "YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter."
              },
              "publication_date": {
                "type": "string",
                "description": "YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter."
              },
              "date_of_enactment": {
                "type": "string",
                "description": "YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter."
              },
              "issuing_authority": {
                "type": "string",
                "description": "Filter by issuing authority"
              },
              "source_identifier": {
                "type": "string",
                "description": "Filter by source identifier"
              },
              "type_of_authority": {
                "type": "string",
                "description": "Filter by type of authority"
              },
              "issuing_authority_tags": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Filter by issuing authority tags"
              },
              "source_secondary_identifier": {
                "type": "string",
                "description": "Filter by secondary source identifier"
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "message",
              "data"
            ],
            "properties": {
              "data": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "uuid",
                    "version",
                    "title",
                    "section_title",
                    "language",
                    "is_repealed",
                    "summary",
                    "jurisdiction",
                    "source",
                    "classification",
                    "dates",
                    "content",
                    "provenance"
                  ],
                  "properties": {
                    "id": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "ID"
                    },
                    "uuid": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "UUID"
                    },
                    "dates": {
                      "type": "object",
                      "required": [
                        "published",
                        "enacted",
                        "effective",
                        "decided",
                        "last_amended",
                        "expired",
                        "repealed"
                      ],
                      "properties": {
                        "decided": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Decision Date"
                        },
                        "enacted": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Date of Enactment"
                        },
                        "expired": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Expiration Date"
                        },
                        "repealed": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Date of Repeal"
                        },
                        "effective": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Effective Date"
                        },
                        "published": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Publication Date"
                        },
                        "last_amended": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Date of Last Amendment"
                        }
                      },
                      "description": "Dates",
                      "additionalProperties": false
                    },
                    "title": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Title"
                    },
                    "source": {
                      "type": "object",
                      "required": [
                        "portal_id",
                        "portal_name",
                        "portal_tags",
                        "domain",
                        "url",
                        "identifier",
                        "secondary_identifier"
                      ],
                      "properties": {
                        "url": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "URL of the source"
                        },
                        "domain": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Domain of the source"
                        },
                        "portal_id": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "Portal ID of the source"
                        },
                        "identifier": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Identifier of the source"
                        },
                        "portal_name": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Portal Name of the source"
                        },
                        "portal_tags": {
                          "anyOf": [
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Portal Tasks of the source"
                        },
                        "secondary_identifier": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Secondary Identifier of the source"
                        }
                      },
                      "description": "Source",
                      "additionalProperties": false
                    },
                    "content": {
                      "type": "object",
                      "required": [
                        "text",
                        "markdown",
                        "file"
                      ],
                      "properties": {
                        "file": {
                          "anyOf": [
                            {
                              "type": "object",
                              "required": [
                                "content_type",
                                "size_bytes",
                                "url"
                              ],
                              "properties": {
                                "url": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "Source-file metadata, not a downloadable URL. Call document_presigned_url for a temporary source-file URL."
                                },
                                "size_bytes": {
                                  "type": [
                                    "number",
                                    "null"
                                  ],
                                  "description": "Size in bytes"
                                },
                                "content_type": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "Content Type"
                                }
                              },
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "File metadata, or null when the document has no file. Not a citation bundle; call evidence_pull for that."
                        },
                        "text": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Path hint for the plain-text body. Call list_full_text to read it; this field is not the text."
                        },
                        "markdown": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Path hint for the structured Markdown body. Call list_markdown to read it; this field is not the Markdown."
                        }
                      },
                      "description": "Content",
                      "additionalProperties": false
                    },
                    "summary": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Summary"
                    },
                    "version": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Version"
                    },
                    "language": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Language"
                    },
                    "provenance": {
                      "type": "object",
                      "required": [
                        "crawled_at",
                        "source_updated_at"
                      ],
                      "properties": {
                        "crawled_at": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Date and time the content was crawled"
                        },
                        "source_updated_at": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Date and time the source was updated"
                        }
                      },
                      "description": "Provenance",
                      "additionalProperties": false
                    },
                    "is_repealed": {
                      "type": [
                        "boolean",
                        "null"
                      ],
                      "description": "Is Repealed"
                    },
                    "jurisdiction": {
                      "type": "object",
                      "required": [
                        "iso",
                        "country",
                        "state"
                      ],
                      "properties": {
                        "iso": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "ISO code of the jurisdiction"
                        },
                        "state": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "State"
                        },
                        "country": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Country"
                        }
                      },
                      "description": "Jurisdiction",
                      "additionalProperties": false
                    },
                    "section_title": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Section Title"
                    },
                    "classification": {
                      "type": "object",
                      "required": [
                        "authority_type",
                        "issuing_authority",
                        "issuing_authority_tags",
                        "keywords",
                        "tags",
                        "source_keywords"
                      ],
                      "properties": {
                        "tags": {
                          "anyOf": [
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Tags of the content"
                        },
                        "keywords": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Keywords of the content"
                        },
                        "authority_type": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Authority Type of the content"
                        },
                        "source_keywords": {
                          "anyOf": [
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Source Keywords of the content"
                        },
                        "issuing_authority": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Issuing Authority of the content"
                        },
                        "issuing_authority_tags": {
                          "anyOf": [
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Issuing Authority Tags of the content"
                        }
                      },
                      "description": "Classification",
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                },
                "description": "Documents in the requested jurisdiction that have crawled links; empty if none match."
              },
              "message": {
                "type": "string",
                "description": "Result message"
              },
              "pagination": {
                "type": "object",
                "required": [
                  "limit",
                  "next_id"
                ],
                "properties": {
                  "limit": {
                    "type": "number",
                    "description": "Maximum number of documents returned"
                  },
                  "next_id": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Cursor ID for the next page, or null when there is no next page"
                  },
                  "total_count": {
                    "type": "number",
                    "description": "Total number of matching documents"
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "List documents",
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_full_text",
          "description": "Returns the plain-text body of documents (id, uuid, version, text). This is the plain-text read: wording only, with no Markdown headings or lists, and no citation metadata.\n\nWhen to use: When you need the body as plain text. Examples: 'quote the operative wording of this Belgian statute', 'give me the raw text of uuid …'. Pass uuid when you already have one document; otherwise filter by title and paginate. When not: For structured Markdown that keeps headings and lists, use list_markdown. For a complete citation bundle in one call — metadata, permanent legal link, citation template, body, and a temporary source-file URL — use evidence_pull (example: 'show me the source'). For only a temporary URL to the original PDF or source file, use document_presigned_url (example: 'download the original file'). To browse titles and dates without the body, use list_documents or search. For one historical version's metadata plus both bodies, use document_version. Do not call without an iso from list_jurisdictions. Skip if you already have this plain text for the same iso, uuid, and filters.\n\nParameters: iso (required) is a jurisdiction code from list_jurisdictions and is uppercased before the query (e.g. BE, or US_CA for a state). uuid is optional; when set, the call targets that document. title is an optional case-insensitive substring. with_empty_data defaults to false and omits documents that have no stored plain text; true includes them with text null. limit defaults to 20 and is capped at 100. include_total adds pagination.total_count when true. Other optional filters match the input schema and are combined with AND.\n\nBehavior: Read-only SELECT plus a read of the stored text. Does not create, update, or delete records, files, or credentials. Auth: tools/call requires OAuth 2.0 or a Bearer token (401 if missing, invalid, revoked, or no active subscription). Rate limits: none at the MCP layer; safe to retry. Not cached; each call reads current subscription data and the stored plain text. An archived uuid returns an archived error instead of the body.\n\nReturns: A page of {id, uuid, version, text} where text is plain text. Empty data means nothing matched, or the iso is outside the subscription.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "iso"
            ],
            "properties": {
              "iso": {
                "type": "string",
                "description": "Filter by Jurisdiction ISO code (e.g. 'US')"
              },
              "url": {
                "type": "string",
                "description": "Filter by document URL"
              },
              "lang": {
                "type": "string",
                "description": "Exact portal language name, for example English. Filters the portal, not the document language."
              },
              "uuid": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Filter by UUID. Leave blank to apply no UUID filter."
              },
              "limit": {
                "type": "integer",
                "maximum": 100,
                "minimum": 1,
                "description": "Page size. Default 20, maximum 100."
              },
              "title": {
                "type": "string",
                "description": "Filter by title"
              },
              "portal": {
                "type": "string",
                "description": "Filter by portal name"
              },
              "status": {
                "type": "string",
                "description": "Filter by document status"
              },
              "next_id": {
                "type": "number",
                "description": "document id of the first row of the next page, from pagination.next_id. Omit on the first page."
              },
              "portal_id": {
                "type": "number",
                "description": "Filter by portal ID"
              },
              "is_repealed": {
                "type": "boolean",
                "default": false,
                "description": "Filter by repealed documents. default value is false"
              },
              "last_updated": {
                "type": "string",
                "description": "YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter."
              },
              "crawling_date": {
                "type": "string",
                "description": "YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter."
              },
              "include_total": {
                "type": "boolean",
                "default": false,
                "description": "Include total count in response"
              },
              "effective_date": {
                "type": "string",
                "description": "YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter."
              },
              "last_amendment": {
                "type": "string",
                "description": "YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter."
              },
              "expiration_date": {
                "type": "string",
                "description": "YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter."
              },
              "with_empty_data": {
                "type": "boolean",
                "default": false,
                "description": "Return empty data if no full text is found"
              },
              "publication_date": {
                "type": "string",
                "description": "YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter."
              },
              "date_of_enactment": {
                "type": "string",
                "description": "YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "message",
              "data"
            ],
            "properties": {
              "data": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "uuid",
                    "version",
                    "text"
                  ],
                  "properties": {
                    "id": {
                      "type": "number",
                      "description": "ID"
                    },
                    "text": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Plain-text body, without Markdown headings or lists. Null when no text is stored."
                    },
                    "uuid": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "UUID"
                    },
                    "version": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Version"
                    }
                  },
                  "additionalProperties": false
                },
                "description": "Plain-text bodies for matching documents. Empty if none match. This is not Markdown, not a citation bundle, and not a source-file URL."
              },
              "message": {
                "type": "string",
                "description": "Result message"
              },
              "pagination": {
                "type": "object",
                "required": [
                  "limit",
                  "next_id"
                ],
                "properties": {
                  "limit": {
                    "type": "number",
                    "description": "Maximum number of full texts returned"
                  },
                  "next_id": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Cursor ID for the next page, or null when there is no next page"
                  },
                  "total_count": {
                    "type": "number",
                    "description": "Total number of matching full texts"
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Get document text",
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_markdown",
          "description": "Returns the structured Markdown body of documents (id, uuid, version, markdown). Headings and lists stay intact. This is not plain text, not a citation bundle, and not a file URL.\n\nWhen to use: When you need the body as structured Markdown. Examples: 'show this regulation with its article headings', 'give me Markdown I can render for uuid …'. Pass uuid when you already have one document; otherwise filter by title and paginate. When not: For plain text with no Markdown structure, use list_full_text (example: 'quote the operative wording'). For a complete citation bundle in one call — metadata, permanent legal link, citation template, body, and a temporary source-file URL — use evidence_pull (example: 'show me the source'). For only a temporary URL to the original PDF or source file, use document_presigned_url (example: 'download the original file'). To browse titles and dates without the body, use list_documents or search. For one historical version's metadata plus both bodies, use document_version. Do not call without an iso from list_jurisdictions. Skip if you already have this Markdown for the same iso, uuid, and filters.\n\nParameters: iso (required) is a jurisdiction code from list_jurisdictions and is uppercased before the query (e.g. BE, or US_CA for a state). uuid is optional; when set, the call targets that document. title is an optional case-insensitive substring. with_empty_data defaults to false and omits documents that have no stored Markdown; true includes them with markdown null. limit defaults to 20 and is capped at 100. include_total adds pagination.total_count when true. Other optional filters match the input schema and are combined with AND.\n\nBehavior: Read-only SELECT plus a read of the stored Markdown. Does not create, update, or delete records, files, or credentials. Auth: tools/call requires OAuth 2.0 or a Bearer token (401 if missing, invalid, revoked, or no active subscription). Rate limits: none at the MCP layer; safe to retry. Not cached; each call reads current subscription data and the stored Markdown. An archived uuid returns an archived error instead of the body.\n\nReturns: A page of {id, uuid, version, markdown} where markdown is structured Markdown. Empty data means nothing matched, or the iso is outside the subscription.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "iso"
            ],
            "properties": {
              "iso": {
                "type": "string",
                "description": "Filter by Jurisdiction ISO code (e.g. 'US')"
              },
              "url": {
                "type": "string",
                "description": "Filter by document URL"
              },
              "lang": {
                "type": "string",
                "description": "Exact portal language name, for example English. Filters the portal, not the document language."
              },
              "uuid": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Filter by UUID. Leave blank to apply no UUID filter."
              },
              "limit": {
                "type": "integer",
                "maximum": 100,
                "minimum": 1,
                "description": "Page size. Default 20, maximum 100."
              },
              "title": {
                "type": "string",
                "description": "Filter by title"
              },
              "portal": {
                "type": "string",
                "description": "Filter by portal name"
              },
              "status": {
                "type": "string",
                "description": "Filter by document status"
              },
              "next_id": {
                "type": "number",
                "description": "document id of the first row of the next page, from pagination.next_id. Omit on the first page."
              },
              "portal_id": {
                "type": "number",
                "description": "Filter by portal ID"
              },
              "is_repealed": {
                "type": "boolean",
                "default": false,
                "description": "Filter by repealed documents. default value is false"
              },
              "last_updated": {
                "type": "string",
                "description": "YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter."
              },
              "crawling_date": {
                "type": "string",
                "description": "YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter."
              },
              "include_total": {
                "type": "boolean",
                "default": false,
                "description": "Include total count in response"
              },
              "effective_date": {
                "type": "string",
                "description": "YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter."
              },
              "last_amendment": {
                "type": "string",
                "description": "YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter."
              },
              "expiration_date": {
                "type": "string",
                "description": "YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter."
              },
              "with_empty_data": {
                "type": "boolean",
                "default": false,
                "description": "Return empty data if no markdown is found"
              },
              "publication_date": {
                "type": "string",
                "description": "YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter."
              },
              "date_of_enactment": {
                "type": "string",
                "description": "YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "message",
              "data"
            ],
            "properties": {
              "data": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "uuid",
                    "version",
                    "markdown"
                  ],
                  "properties": {
                    "id": {
                      "type": "number",
                      "description": "ID"
                    },
                    "uuid": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "UUID"
                    },
                    "version": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Version"
                    },
                    "markdown": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Structured Markdown body, with headings and lists preserved. Null when no Markdown is stored."
                    }
                  },
                  "additionalProperties": false
                },
                "description": "Structured Markdown bodies for matching documents. Empty if none match. This is not plain text, not a citation bundle, and not a source-file URL."
              },
              "message": {
                "type": "string",
                "description": "Result message"
              },
              "pagination": {
                "type": "object",
                "required": [
                  "limit",
                  "next_id"
                ],
                "properties": {
                  "limit": {
                    "type": "number",
                    "description": "Maximum number of markdown returned"
                  },
                  "next_id": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Cursor ID for the next page, or null when there is no next page"
                  },
                  "total_count": {
                    "type": "number",
                    "description": "Total number of matching markdown"
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Get document markdown",
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "document_presigned_url",
          "description": "Returns a temporary signed URL to the original source file (PDF or other stored file) for one document. The URL expires. This tool does not return the document body or a citation bundle.\n\nWhen to use: When you need to open or download the original file. Examples: 'give me the PDF for uuid …', 'link to the source file so I can download it'. Use the uuid from list_documents, search, or horizon_scan. When not: For plain text of the body, use list_full_text (example: 'quote the operative wording'). For structured Markdown, use list_markdown (example: 'keep the article headings'). For a complete citation bundle — metadata, permanent legal link, citation template, body, and this temporary URL together — use evidence_pull (example: 'show me the source'). For a permanent citation link without a file download, use the legal_link from evidence_pull or list_documents. Do not call without a uuid. Skip if you already have an unexpired URL for that uuid.\n\nParameters: uuid (required) is the document UUID. There is no iso parameter. The response includes expires_at; fetch the URL before it expires. A missing file or an archived document returns an error rather than a URL.\n\nBehavior: Read-only. Looks up the stored file and signs a temporary URL. Does not create, update, or delete records, files, or credentials. Auth: tools/call requires OAuth 2.0 or a Bearer token (401 if missing, invalid, revoked, or no active subscription). Rate limits: none at the MCP layer; safe to retry. Not cached. Each call signs a new URL. expires_at is when that URL stops working. The URL is not a permanent legal link.\n\nReturns: One object: uuid, url (temporary source-file URL), and expires_at. url is empty when no file could be signed.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "uuid"
            ],
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "UUID"
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "message",
              "data"
            ],
            "properties": {
              "data": {
                "type": "object",
                "required": [
                  "uuid",
                  "url",
                  "expires_at"
                ],
                "properties": {
                  "url": {
                    "type": "string",
                    "description": "Temporary signed URL to the original source file. Fetch it before expires_at. Not the document body."
                  },
                  "uuid": {
                    "type": "string",
                    "description": "UUID"
                  },
                  "expires_at": {
                    "type": "string",
                    "description": "ISO timestamp when the temporary URL stops working"
                  }
                },
                "description": "Presigned URL for the requested document",
                "additionalProperties": false
              },
              "message": {
                "type": "string",
                "description": "Result message"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Get source url",
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "document_version",
          "description": "Retrieves a specific document with a specific version\n\nWhen to use: The user wants to find a specific document with a specific version When not: The user wants to find a specific document with a specific version but the document is not found\n\nParameters: uuid (required) is the UUID of the document, version (required) is the version of the document\n\nBehavior: Read-only SELECT; does not create, update, or delete records, files, or credentials. The only effect is a database read. Auth: tools/call requires OAuth 2.0 or a Bearer token (401 if missing, invalid, revoked, or no active subscription). Rate limits: none at the MCP layer; safe to retry. Not cached; each call reads current subscription and document data. Documents with total_links of 0 are omitted.\n\nReturns: A document with the specific version",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "uuid",
              "version"
            ],
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "UUID"
              },
              "version": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Version",
                "exclusiveMinimum": 0
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "message",
              "data"
            ],
            "properties": {
              "data": {
                "type": "object",
                "required": [
                  "id",
                  "uuid",
                  "version",
                  "title",
                  "section_title",
                  "language",
                  "is_repealed",
                  "summary",
                  "jurisdiction",
                  "source",
                  "classification",
                  "dates",
                  "content",
                  "provenance",
                  "text",
                  "markdown"
                ],
                "properties": {
                  "id": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "ID"
                  },
                  "text": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Text of the document"
                  },
                  "uuid": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "UUID"
                  },
                  "dates": {
                    "type": "object",
                    "required": [
                      "published",
                      "enacted",
                      "effective",
                      "decided",
                      "last_amended",
                      "expired",
                      "repealed"
                    ],
                    "properties": {
                      "decided": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Decision Date"
                      },
                      "enacted": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Date of Enactment"
                      },
                      "expired": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Expiration Date"
                      },
                      "repealed": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Date of Repeal"
                      },
                      "effective": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Effective Date"
                      },
                      "published": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Publication Date"
                      },
                      "last_amended": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Date of Last Amendment"
                      }
                    },
                    "description": "Dates",
                    "additionalProperties": false
                  },
                  "title": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Title"
                  },
                  "source": {
                    "type": "object",
                    "required": [
                      "portal_id",
                      "portal_name",
                      "portal_tags",
                      "domain",
                      "url",
                      "identifier",
                      "secondary_identifier"
                    ],
                    "properties": {
                      "url": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "URL of the source"
                      },
                      "domain": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Domain of the source"
                      },
                      "portal_id": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "description": "Portal ID of the source"
                      },
                      "identifier": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Identifier of the source"
                      },
                      "portal_name": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Portal Name of the source"
                      },
                      "portal_tags": {
                        "anyOf": [
                          {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "description": "Portal Tasks of the source"
                      },
                      "secondary_identifier": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Secondary Identifier of the source"
                      }
                    },
                    "description": "Source",
                    "additionalProperties": false
                  },
                  "content": {
                    "type": "object",
                    "required": [
                      "text",
                      "markdown",
                      "file"
                    ],
                    "properties": {
                      "file": {
                        "anyOf": [
                          {
                            "type": "object",
                            "required": [
                              "content_type",
                              "size_bytes",
                              "url"
                            ],
                            "properties": {
                              "url": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "URL of the file"
                              },
                              "size_bytes": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Size in bytes"
                              },
                              "content_type": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Content Type"
                              }
                            },
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "description": "File data, or null when the document has no file"
                      },
                      "text": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Full text url endpoint"
                      },
                      "markdown": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Markdown url endpoint"
                      }
                    },
                    "description": "Content",
                    "additionalProperties": false
                  },
                  "summary": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Summary"
                  },
                  "version": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Version"
                  },
                  "language": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Language"
                  },
                  "markdown": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Markdown of the document"
                  },
                  "provenance": {
                    "type": "object",
                    "required": [
                      "crawled_at",
                      "source_updated_at"
                    ],
                    "properties": {
                      "crawled_at": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Date and time the content was crawled"
                      },
                      "source_updated_at": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Date and time the source was updated"
                      }
                    },
                    "description": "Provenance",
                    "additionalProperties": false
                  },
                  "is_repealed": {
                    "type": [
                      "boolean",
                      "null"
                    ],
                    "description": "Is Repealed"
                  },
                  "jurisdiction": {
                    "type": "object",
                    "required": [
                      "iso",
                      "country",
                      "state"
                    ],
                    "properties": {
                      "iso": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "ISO code of the jurisdiction"
                      },
                      "state": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "State"
                      },
                      "country": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Country"
                      }
                    },
                    "description": "Jurisdiction",
                    "additionalProperties": false
                  },
                  "section_title": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Section Title"
                  },
                  "classification": {
                    "type": "object",
                    "required": [
                      "authority_type",
                      "issuing_authority",
                      "issuing_authority_tags",
                      "keywords",
                      "tags",
                      "source_keywords"
                    ],
                    "properties": {
                      "tags": {
                        "anyOf": [
                          {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "description": "Tags of the content"
                      },
                      "keywords": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        },
                        "description": "Keywords of the content"
                      },
                      "authority_type": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Authority Type of the content"
                      },
                      "source_keywords": {
                        "anyOf": [
                          {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "description": "Source Keywords of the content"
                      },
                      "issuing_authority": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Issuing Authority of the content"
                      },
                      "issuing_authority_tags": {
                        "anyOf": [
                          {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "description": "Issuing Authority Tags of the content"
                      }
                    },
                    "description": "Classification",
                    "additionalProperties": false
                  }
                },
                "description": "Documents with the specific version",
                "additionalProperties": false
              },
              "message": {
                "type": "string",
                "description": "Result message"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Get document with version",
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "horizon_scan",
          "description": "Scans recent legal documents across jurisdictions.\n\nWhen to use: When you need to find legal content for a specific jurisdiction and optional filters. When not: Do not use this to read a document body or download a file. For plain text use list_full_text. For structured Markdown use list_markdown. For a complete citation bundle use evidence_pull. For a temporary source-file URL use document_presigned_url. Do not call without an iso from list_jurisdictions. Skip if you already have this scan for the same iso and filters.\n\nParameters: iso (required) is a jurisdiction code from list_jurisdictions (e.g. BE, or US_CA for a state). issuing_authority, type_of_authority. Topic, since, date_field, status, include_repealed, max_per_jurisdiction are optional. Empty data means the iso is outside the subscription, or no document matched.\n\nBehavior: Read-only SELECT; does not create, update, or delete records, files, or credentials. The only effect is a database read. Auth: tools/call requires OAuth 2.0 or a Bearer token (401 if missing, invalid, revoked, or no active subscription). Rate limits: none at the MCP layer; safe to retry. Not cached; each call reads current subscription and document data. Documents with total_links of 0 are omitted.\n\nReturns: A list of documents matching the filters, with pagination information.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "iso"
            ],
            "properties": {
              "iso": {
                "type": "string",
                "description": "One ISO code e.g. \"IE\", \"NL\", \"US\", etc."
              },
              "since": {
                "type": "string",
                "default": "yesterday",
                "description": "Freshness window. \"yesterday\", \"today\", \"Nd\"/\"Nh\"/\"Nw\" (e.g. \"7d\"), or ISO date \"YYYY-MM-DD\""
              },
              "topic": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Optional filter (matches title) e.g. \"employee monitoring\" or \"workplace surveillance\""
              },
              "status": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Optional filter on status field e.g. \"new\", \"updated\" String."
              },
              "date_field": {
                "enum": [
                  "crawl_date",
                  "publication_date",
                  "last_updated"
                ],
                "type": "string",
                "default": "crawling_date",
                "description": "Which date to window on. \"crawling_date\" (default) = when Lawstronaut crawled it. \"publication_date\" = when officially published. \"last_updated\" = when corpus record last changed."
              },
              "include_repealed": {
                "type": "boolean",
                "default": false,
                "description": "If false, drop documents where repealed=true"
              },
              "issuing_authority": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Optional filter on issuing authority"
              },
              "type_of_authority": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Optional filter on type of authority"
              },
              "max_per_jurisdiction": {
                "type": "integer",
                "default": 20,
                "maximum": 100,
                "minimum": 1,
                "description": "Max docs to return per jurisdiction (1-100)"
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "message",
              "data"
            ],
            "properties": {
              "data": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "uuid",
                    "version",
                    "title",
                    "section_title",
                    "language",
                    "is_repealed",
                    "summary",
                    "jurisdiction",
                    "source",
                    "classification",
                    "dates",
                    "content",
                    "provenance"
                  ],
                  "properties": {
                    "id": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "ID"
                    },
                    "uuid": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "UUID"
                    },
                    "dates": {
                      "type": "object",
                      "required": [
                        "published",
                        "enacted",
                        "effective",
                        "decided",
                        "last_amended",
                        "expired",
                        "repealed"
                      ],
                      "properties": {
                        "decided": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Decision Date"
                        },
                        "enacted": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Date of Enactment"
                        },
                        "expired": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Expiration Date"
                        },
                        "repealed": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Date of Repeal"
                        },
                        "effective": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Effective Date"
                        },
                        "published": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Publication Date"
                        },
                        "last_amended": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Date of Last Amendment"
                        }
                      },
                      "description": "Dates",
                      "additionalProperties": false
                    },
                    "title": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Title"
                    },
                    "source": {
                      "type": "object",
                      "required": [
                        "portal_id",
                        "portal_name",
                        "portal_tags",
                        "domain",
                        "url",
                        "identifier",
                        "secondary_identifier"
                      ],
                      "properties": {
                        "url": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "URL of the source"
                        },
                        "domain": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Domain of the source"
                        },
                        "portal_id": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "Portal ID of the source"
                        },
                        "identifier": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Identifier of the source"
                        },
                        "portal_name": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Portal Name of the source"
                        },
                        "portal_tags": {
                          "anyOf": [
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Portal Tasks of the source"
                        },
                        "secondary_identifier": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Secondary Identifier of the source"
                        }
                      },
                      "description": "Source",
                      "additionalProperties": false
                    },
                    "content": {
                      "type": "object",
                      "required": [
                        "text",
                        "markdown",
                        "file"
                      ],
                      "properties": {
                        "file": {
                          "anyOf": [
                            {
                              "type": "object",
                              "required": [
                                "content_type",
                                "size_bytes",
                                "url"
                              ],
                              "properties": {
                                "url": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "Source-file metadata, not a downloadable URL. Call document_presigned_url for a temporary source-file URL."
                                },
                                "size_bytes": {
                                  "type": [
                                    "number",
                                    "null"
                                  ],
                                  "description": "Size in bytes"
                                },
                                "content_type": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "Content Type"
                                }
                              },
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "File metadata, or null when the document has no file. Not a citation bundle; call evidence_pull for that."
                        },
                        "text": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Path hint for the plain-text body. Call list_full_text to read it; this field is not the text."
                        },
                        "markdown": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Path hint for the structured Markdown body. Call list_markdown to read it; this field is not the Markdown."
                        }
                      },
                      "description": "Content",
                      "additionalProperties": false
                    },
                    "summary": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Summary"
                    },
                    "version": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Version"
                    },
                    "language": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Language"
                    },
                    "provenance": {
                      "type": "object",
                      "required": [
                        "crawled_at",
                        "source_updated_at"
                      ],
                      "properties": {
                        "crawled_at": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Date and time the content was crawled"
                        },
                        "source_updated_at": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Date and time the source was updated"
                        }
                      },
                      "description": "Provenance",
                      "additionalProperties": false
                    },
                    "is_repealed": {
                      "type": [
                        "boolean",
                        "null"
                      ],
                      "description": "Is Repealed"
                    },
                    "jurisdiction": {
                      "type": "object",
                      "required": [
                        "iso",
                        "country",
                        "state"
                      ],
                      "properties": {
                        "iso": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "ISO code of the jurisdiction"
                        },
                        "state": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "State"
                        },
                        "country": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Country"
                        }
                      },
                      "description": "Jurisdiction",
                      "additionalProperties": false
                    },
                    "section_title": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Section Title"
                    },
                    "classification": {
                      "type": "object",
                      "required": [
                        "authority_type",
                        "issuing_authority",
                        "issuing_authority_tags",
                        "keywords",
                        "tags",
                        "source_keywords"
                      ],
                      "properties": {
                        "tags": {
                          "anyOf": [
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Tags of the content"
                        },
                        "keywords": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Keywords of the content"
                        },
                        "authority_type": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Authority Type of the content"
                        },
                        "source_keywords": {
                          "anyOf": [
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Source Keywords of the content"
                        },
                        "issuing_authority": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Issuing Authority of the content"
                        },
                        "issuing_authority_tags": {
                          "anyOf": [
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Issuing Authority Tags of the content"
                        }
                      },
                      "description": "Classification",
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                },
                "description": "Documents in the requested jurisdiction that have crawled links; empty if none match. Each item is a content item."
              },
              "message": {
                "type": "string",
                "description": "Result message"
              },
              "pagination": {
                "type": "object",
                "required": [
                  "limit",
                  "next_id"
                ],
                "properties": {
                  "limit": {
                    "type": "number",
                    "description": "Maximum number of documents returned"
                  },
                  "next_id": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Cursor ID for the next page, or null when there is no next page"
                  },
                  "total_count": {
                    "type": "number",
                    "description": "Total number of matching documents"
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Horizon scan",
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "evidence_pull",
          "description": "Returns one complete citation bundle for a single document: metadata, a permanent legal_link, a citation_template, the body, and a temporary source-file URL when one exists.\n\nWhen to use: When one call must support a citation or an audit. Examples: 'show me the source for this Irish statute', 'cite uuid … with its authority, date, link, and text'. Prefer this over calling the body and file tools separately. When not: For plain text alone, use list_full_text (example: 'quote the operative wording'). For structured Markdown alone, use list_markdown (example: 'keep the article headings'). For only a temporary URL to the original PDF or source file, use document_presigned_url (example: 'download the original file'). To browse or search without the bundle, use list_documents, search, or horizon_scan. For one historical version, use document_version. Do not call without an iso from list_jurisdictions and the document uuid. Skip if you already have this bundle for the same iso and uuid.\n\nParameters: iso (required) is a jurisdiction code from list_jurisdictions and is uppercased (e.g. IE, NL, US_CA). uuid (required) is the document UUID from list_documents, search, or horizon_scan. include_text defaults to true and fetches the body. include_source_url defaults to true and adds a temporary signed URL to the original file when one exists. text_format defaults to 'markdown' (structured Markdown); 'plain' returns plain text instead. Set include_text or include_source_url to false only when that part of the bundle is unnecessary.\n\nBehavior: Read-only. Reads the document record, optionally the stored body, and optionally signs a temporary source-file URL. Does not create, update, or delete records, files, or credentials. Auth: tools/call requires OAuth 2.0 or a Bearer token (401 if missing, invalid, revoked, or no active subscription). Rate limits: none at the MCP layer; safe to retry. Not cached. The source-file URL is temporary: source_file_note says to fetch it promptly, and legal_link is the permanent citation URL. source_file_url is null when no original file is stored. An archived document returns an archived error.\n\nReturns: One citation bundle: uuid, version, metadata, legal_link, citation_template, and, when requested, content_format plus content, and source_file_url.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "iso",
              "uuid"
            ],
            "properties": {
              "iso": {
                "type": "string",
                "description": "Document's jurisdiction ISO code, e.g. 'IE', 'NL', 'US', etc."
              },
              "uuid": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Document's UUID"
              },
              "text_format": {
                "enum": [
                  "markdown",
                  "plain"
                ],
                "type": "string",
                "default": "markdown",
                "description": "'markdown' (preserves structure) or 'plain'."
              },
              "include_text": {
                "type": "boolean",
                "default": true,
                "description": "Fetch the full body (default True)"
              },
              "include_source_url": {
                "type": "boolean",
                "default": true,
                "description": "Fetch a temporary signed URL to the original file (PDF etc.) where available (default True)."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "message",
              "data"
            ],
            "properties": {
              "data": {
                "type": "object",
                "required": [
                  "version"
                ],
                "properties": {
                  "uuid": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Document's UUID"
                  },
                  "content": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Document body in content_format: structured Markdown or plain text"
                  },
                  "version": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Document's version"
                  },
                  "metadata": {
                    "anyOf": [
                      {
                        "type": "object",
                        "required": [
                          "id",
                          "uuid",
                          "version",
                          "title",
                          "section_title",
                          "language",
                          "is_repealed",
                          "summary",
                          "jurisdiction",
                          "source",
                          "classification",
                          "dates",
                          "content",
                          "provenance"
                        ],
                        "properties": {
                          "id": {
                            "type": [
                              "number",
                              "null"
                            ],
                            "description": "ID"
                          },
                          "uuid": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "UUID"
                          },
                          "dates": {
                            "type": "object",
                            "required": [
                              "published",
                              "enacted",
                              "effective",
                              "decided",
                              "last_amended",
                              "expired",
                              "repealed"
                            ],
                            "properties": {
                              "decided": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Decision Date"
                              },
                              "enacted": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Date of Enactment"
                              },
                              "expired": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Expiration Date"
                              },
                              "repealed": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Date of Repeal"
                              },
                              "effective": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Effective Date"
                              },
                              "published": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Publication Date"
                              },
                              "last_amended": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Date of Last Amendment"
                              }
                            },
                            "description": "Dates",
                            "additionalProperties": false
                          },
                          "title": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Title"
                          },
                          "source": {
                            "type": "object",
                            "required": [
                              "portal_id",
                              "portal_name",
                              "portal_tags",
                              "domain",
                              "url",
                              "identifier",
                              "secondary_identifier"
                            ],
                            "properties": {
                              "url": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "URL of the source"
                              },
                              "domain": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Domain of the source"
                              },
                              "portal_id": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Portal ID of the source"
                              },
                              "identifier": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Identifier of the source"
                              },
                              "portal_name": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Portal Name of the source"
                              },
                              "portal_tags": {
                                "anyOf": [
                                  {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "description": "Portal Tasks of the source"
                              },
                              "secondary_identifier": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Secondary Identifier of the source"
                              }
                            },
                            "description": "Source",
                            "additionalProperties": false
                          },
                          "content": {
                            "type": "object",
                            "required": [
                              "text",
                              "markdown",
                              "file"
                            ],
                            "properties": {
                              "file": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "required": [
                                      "content_type",
                                      "size_bytes",
                                      "url"
                                    ],
                                    "properties": {
                                      "url": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "Source-file metadata, not a downloadable URL. Call document_presigned_url for a temporary source-file URL."
                                      },
                                      "size_bytes": {
                                        "type": [
                                          "number",
                                          "null"
                                        ],
                                        "description": "Size in bytes"
                                      },
                                      "content_type": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "Content Type"
                                      }
                                    },
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "description": "File metadata, or null when the document has no file. Not a citation bundle; call evidence_pull for that."
                              },
                              "text": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Path hint for the plain-text body. Call list_full_text to read it; this field is not the text."
                              },
                              "markdown": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Path hint for the structured Markdown body. Call list_markdown to read it; this field is not the Markdown."
                              }
                            },
                            "description": "Content",
                            "additionalProperties": false
                          },
                          "summary": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Summary"
                          },
                          "version": {
                            "type": [
                              "number",
                              "null"
                            ],
                            "description": "Version"
                          },
                          "language": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Language"
                          },
                          "provenance": {
                            "type": "object",
                            "required": [
                              "crawled_at",
                              "source_updated_at"
                            ],
                            "properties": {
                              "crawled_at": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Date and time the content was crawled"
                              },
                              "source_updated_at": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Date and time the source was updated"
                              }
                            },
                            "description": "Provenance",
                            "additionalProperties": false
                          },
                          "is_repealed": {
                            "type": [
                              "boolean",
                              "null"
                            ],
                            "description": "Is Repealed"
                          },
                          "jurisdiction": {
                            "type": "object",
                            "required": [
                              "iso",
                              "country",
                              "state"
                            ],
                            "properties": {
                              "iso": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "ISO code of the jurisdiction"
                              },
                              "state": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "State"
                              },
                              "country": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Country"
                              }
                            },
                            "description": "Jurisdiction",
                            "additionalProperties": false
                          },
                          "section_title": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Section Title"
                          },
                          "classification": {
                            "type": "object",
                            "required": [
                              "authority_type",
                              "issuing_authority",
                              "issuing_authority_tags",
                              "keywords",
                              "tags",
                              "source_keywords"
                            ],
                            "properties": {
                              "tags": {
                                "anyOf": [
                                  {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "description": "Tags of the content"
                              },
                              "keywords": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "description": "Keywords of the content"
                              },
                              "authority_type": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Authority Type of the content"
                              },
                              "source_keywords": {
                                "anyOf": [
                                  {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "description": "Source Keywords of the content"
                              },
                              "issuing_authority": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Issuing Authority of the content"
                              },
                              "issuing_authority_tags": {
                                "anyOf": [
                                  {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "description": "Issuing Authority Tags of the content"
                              }
                            },
                            "description": "Classification",
                            "additionalProperties": false
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Document's metadata"
                  },
                  "legal_link": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Document's legal link"
                  },
                  "content_format": {
                    "anyOf": [
                      {
                        "enum": [
                          "markdown",
                          "plain"
                        ],
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Document's content format"
                  },
                  "source_file_url": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Temporary signed URL to the original source file, or null when none exists. Permanent citation URL is legal_link."
                  },
                  "source_file_note": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Document's source file note"
                  },
                  "citation_template": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Document's citation template"
                  }
                },
                "description": "Citation chain for the requested document: metadata, legal link, optional source file URL, and optional body.",
                "additionalProperties": false
              },
              "message": {
                "type": "string",
                "description": "Result message"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Evidence pull",
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "search",
          "description": "Searches legal documents using OpenSearch to discover relevant documents based on the supplied search criteria. Returns matching documents and their available metadata.\n\nWhen to use: Use when you need to discover relevant legal documents through search, especially when looking for documents matching a search query rather than retrieving a structured list. Use this to explore legal content relevant to a topic, legal issue, phrase, or other supported search criteria. When not: Do not use this to browse with structured filters and cursor pagination; use list_documents. Do not use it to read a body or a file. For plain text use list_full_text (example: 'quote the operative wording'). For structured Markdown use list_markdown (example: 'keep the article headings'). For a complete citation bundle use evidence_pull (example: 'show me the source'). For a temporary source-file URL use document_presigned_url (example: 'download the PDF'). For one historical version use document_version. Do not call without a valid iso from list_jurisdictions. Avoid repeating an equivalent search when you already have sufficient results for the same query and filters.\n\nParameters: iso (required) is the jurisdiction code from list_jurisdictions (e.g. BE or US_CA for a state). Provide the search query and any supported optional filters defined by the input schema. Optional filters may narrow the search by document metadata, dates, authority, source identifiers, tags, or other supported criteria. Use only parameters defined by the schema. The results depend on the query, jurisdiction, filters, and the user's subscription access. An empty data array means no matching documents were returned; it does not necessarily mean that the jurisdiction has no documents.\n\nBehavior: Read-only search operation. Does not create, update, or delete documents, records, files, or credentials. The primary side effect is the computational and resource cost of executing an OpenSearch query. Auth: tools/call requires OAuth 2.0 or a Bearer token (401 if missing, invalid, revoked, or no active subscription). Rate limits: none at the MCP layer; safe to retry. Search results are determined by the OpenSearch query implementation, relevance logic, supported filters, and available indexed data. Results may not include every document in the jurisdiction. Search results may differ from list_documents because the tools use different retrieval mechanisms. Repeating a search executes another query. Do not assume results are cached or that the search index contains every recently updated document.\n\nReturns: Matching legal documents and their available metadata, together with a result message. The returned documents depend on the search query, jurisdiction, supported filters, and subscription permissions.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "iso"
            ],
            "properties": {
              "iso": {
                "type": "string",
                "description": "Filter by Jurisdiction ISO code (e.g. 'US')"
              },
              "tag": {
                "type": "string",
                "description": "Filter by tag"
              },
              "url": {
                "type": "string",
                "description": "Filter by document URL"
              },
              "lang": {
                "type": "string",
                "description": "Exact portal language name, for example English. Filters the portal, not the document language."
              },
              "uuid": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Filter by UUID. Leave blank to apply no UUID filter."
              },
              "limit": {
                "type": "integer",
                "maximum": 100,
                "minimum": 1,
                "description": "Page size. Default 20, maximum 100."
              },
              "portal": {
                "type": "string",
                "description": "Filter by portal name"
              },
              "status": {
                "type": "string",
                "description": "Filter by document status"
              },
              "keyword": {
                "type": "string",
                "description": "Search text matched against the heading and the body. Example: '29 CFR 825.500 retention period'. Omit it to list by filters only, newest document id first."
              },
              "next_id": {
                "type": "number",
                "description": "document id of the first row of the next page, from pagination.next_id. Omit on the first page."
              },
              "version": {
                "type": "string",
                "description": "Filter by version"
              },
              "portal_id": {
                "type": "number",
                "description": "Filter by portal ID"
              },
              "is_repealed": {
                "type": "boolean",
                "default": false,
                "description": "Filter by repealed documents. default value is false"
              },
              "last_updated": {
                "type": "string",
                "description": "YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter."
              },
              "crawling_date": {
                "type": "string",
                "description": "YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter."
              },
              "include_total": {
                "type": "boolean",
                "default": false,
                "description": "Include total count in response"
              },
              "effective_date": {
                "type": "string",
                "description": "YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter."
              },
              "file_data_only": {
                "type": "boolean",
                "default": false,
                "description": "Filter by file data only"
              },
              "last_amendment": {
                "type": "string",
                "description": "YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter."
              },
              "expiration_date": {
                "type": "string",
                "description": "YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter."
              },
              "date_of_decision": {
                "type": "string",
                "description": "YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter."
              },
              "publication_date": {
                "type": "string",
                "description": "YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter."
              },
              "date_of_enactment": {
                "type": "string",
                "description": "YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter."
              },
              "issuing_authority": {
                "type": "string",
                "description": "Filter by issuing authority"
              },
              "source_identifier": {
                "type": "string",
                "description": "Filter by source identifier"
              },
              "type_of_authority": {
                "type": "string",
                "description": "Filter by type of authority"
              },
              "issuing_authority_tags": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Filter by issuing authority tags"
              },
              "source_secondary_identifier": {
                "type": "string",
                "description": "Filter by secondary source identifier"
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "message",
              "data"
            ],
            "properties": {
              "data": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "uuid",
                    "version",
                    "title",
                    "section_title",
                    "language",
                    "is_repealed",
                    "summary",
                    "jurisdiction",
                    "source",
                    "classification",
                    "dates",
                    "content",
                    "provenance"
                  ],
                  "properties": {
                    "id": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "ID"
                    },
                    "uuid": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "UUID"
                    },
                    "dates": {
                      "type": "object",
                      "required": [
                        "published",
                        "enacted",
                        "effective",
                        "decided",
                        "last_amended",
                        "expired",
                        "repealed"
                      ],
                      "properties": {
                        "decided": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Decision Date"
                        },
                        "enacted": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Date of Enactment"
                        },
                        "expired": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Expiration Date"
                        },
                        "repealed": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Date of Repeal"
                        },
                        "effective": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Effective Date"
                        },
                        "published": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Publication Date"
                        },
                        "last_amended": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Date of Last Amendment"
                        }
                      },
                      "description": "Dates",
                      "additionalProperties": false
                    },
                    "title": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Title"
                    },
                    "source": {
                      "type": "object",
                      "required": [
                        "portal_id",
                        "portal_name",
                        "portal_tags",
                        "domain",
                        "url",
                        "identifier",
                        "secondary_identifier"
                      ],
                      "properties": {
                        "url": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "URL of the source"
                        },
                        "domain": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Domain of the source"
                        },
                        "portal_id": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "Portal ID of the source"
                        },
                        "identifier": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Identifier of the source"
                        },
                        "portal_name": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Portal Name of the source"
                        },
                        "portal_tags": {
                          "anyOf": [
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Portal Tasks of the source"
                        },
                        "secondary_identifier": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Secondary Identifier of the source"
                        }
                      },
                      "description": "Source",
                      "additionalProperties": false
                    },
                    "content": {
                      "type": "object",
                      "required": [
                        "text",
                        "markdown",
                        "file"
                      ],
                      "properties": {
                        "file": {
                          "anyOf": [
                            {
                              "type": "object",
                              "required": [
                                "content_type",
                                "size_bytes",
                                "url"
                              ],
                              "properties": {
                                "url": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "URL of the file"
                                },
                                "size_bytes": {
                                  "type": [
                                    "number",
                                    "null"
                                  ],
                                  "description": "Size in bytes"
                                },
                                "content_type": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "Content Type"
                                }
                              },
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "File data, or null when the document has no file"
                        },
                        "text": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Full text url endpoint"
                        },
                        "markdown": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Markdown url endpoint"
                        }
                      },
                      "description": "Content",
                      "additionalProperties": false
                    },
                    "summary": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Summary"
                    },
                    "version": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Version"
                    },
                    "language": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Language"
                    },
                    "provenance": {
                      "type": "object",
                      "required": [
                        "crawled_at",
                        "source_updated_at"
                      ],
                      "properties": {
                        "crawled_at": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Date and time the content was crawled"
                        },
                        "source_updated_at": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Date and time the source was updated"
                        }
                      },
                      "description": "Provenance",
                      "additionalProperties": false
                    },
                    "is_repealed": {
                      "type": [
                        "boolean",
                        "null"
                      ],
                      "description": "Is Repealed"
                    },
                    "jurisdiction": {
                      "type": "object",
                      "required": [
                        "iso",
                        "country",
                        "state"
                      ],
                      "properties": {
                        "iso": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "ISO code of the jurisdiction"
                        },
                        "state": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "State"
                        },
                        "country": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Country"
                        }
                      },
                      "description": "Jurisdiction",
                      "additionalProperties": false
                    },
                    "section_title": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Section Title"
                    },
                    "classification": {
                      "type": "object",
                      "required": [
                        "authority_type",
                        "issuing_authority",
                        "issuing_authority_tags",
                        "keywords",
                        "tags",
                        "source_keywords"
                      ],
                      "properties": {
                        "tags": {
                          "anyOf": [
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Tags of the content"
                        },
                        "keywords": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Keywords of the content"
                        },
                        "authority_type": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Authority Type of the content"
                        },
                        "source_keywords": {
                          "anyOf": [
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Source Keywords of the content"
                        },
                        "issuing_authority": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Issuing Authority of the content"
                        },
                        "issuing_authority_tags": {
                          "anyOf": [
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Issuing Authority Tags of the content"
                        }
                      },
                      "description": "Classification",
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                },
                "description": "Documents in the requested jurisdiction that have crawled links; empty if none match."
              },
              "message": {
                "type": "string",
                "description": "Result message"
              },
              "pagination": {
                "type": "object",
                "required": [
                  "limit",
                  "next_id"
                ],
                "properties": {
                  "limit": {
                    "type": "number",
                    "description": "Maximum number of documents returned"
                  },
                  "next_id": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Cursor ID for the next page, or null when there is no next page"
                  },
                  "total_count": {
                    "type": "number",
                    "description": "Total number of matching documents"
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Search",
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "health_check",
          "description": "Verify that the Lawstronaut MCP server and its backing services (database, cache) are reachable and responding. Returns the overall status, per-service status, server version, and a UTC timestamp.\n\nWhen to use: Call at the start of a session to confirm connectivity before running any data tools, or when a previous tool call returned an unexpected error and you want to diagnose whether the service itself is down. When not: Do not call on every tool invocation — use it only for diagnostic purposes. It does not return legal data.\n\nParameters: Takes none — invoke with {}. No filters, pagination, or auth-scoped data.\n\nBehavior: Read-only: one lightweight SELECT 1 against the database and one PING against the cache. Does not create, update, or delete any records. Auth: tools/call requires OAuth 2.0 or a Bearer token (401 if missing, invalid, revoked, or no active subscription). Rate limits: none at the MCP layer; safe to retry. If the database is unreachable the overall status will be 'degraded'. If only the cache is unreachable the overall status will be 'degraded'. Both must be healthy for status 'ok'.\n\nReturns: status ('ok' | 'degraded'), version string, utc_timestamp, and a services object with db and cache each reporting their own status ('ok' | 'error') plus optional latency_ms.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {},
            "description": "No arguments. Call with {}."
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "status",
              "version",
              "utc_timestamp",
              "services"
            ],
            "properties": {
              "status": {
                "enum": [
                  "ok",
                  "degraded"
                ],
                "type": "string",
                "description": "Overall health status"
              },
              "version": {
                "type": "string",
                "description": "MCP server version"
              },
              "services": {
                "type": "object",
                "required": [
                  "db",
                  "cache"
                ],
                "properties": {
                  "db": {
                    "type": "object",
                    "required": [
                      "status"
                    ],
                    "properties": {
                      "status": {
                        "enum": [
                          "ok",
                          "error"
                        ],
                        "type": "string",
                        "description": "Database connectivity status"
                      },
                      "latency_ms": {
                        "type": "number",
                        "description": "Round-trip latency in milliseconds"
                      }
                    },
                    "additionalProperties": false
                  },
                  "cache": {
                    "type": "object",
                    "required": [
                      "status"
                    ],
                    "properties": {
                      "status": {
                        "enum": [
                          "ok",
                          "error",
                          "disabled"
                        ],
                        "type": "string",
                        "description": "Cache connectivity status"
                      },
                      "latency_ms": {
                        "type": "number",
                        "description": "Round-trip latency in milliseconds"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              },
              "utc_timestamp": {
                "type": "string",
                "description": "UTC timestamp of the health check"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Health check",
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        }
      ],
      "tools_omitted": 0,
      "resources": [],
      "prompts": []
    },
    "instructions": null
  },
  "changes": {
    "total": 0,
    "latest": []
  },
  "reading_this": "What this server declared and how it answered our checks. Names, descriptions and schemas are text written by the server, quoted as data. Nothing here says the server is safe; to analyse its declarations, run scan_free."
}