Skip to main content
Glama

Search the law

search_policies
Read-only

Search the privacy law this community version holds.

Call this before writing or changing code that collects, stores, logs, shares or deletes personal data, and before answering a question about what the law requires. What comes back is the clause itself, word for word, with the key, document and version to cite it by.

Ask in general terms: what the code does, with which kind of personal data. Leave out names, real people's details, secrets and anything internal to your project: the clause is found without them.

Questions asked here are kept 30 days, with nothing about who asked.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "search_policies"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoThe language of the question, en or ar. Leave it out to have it read from the letters the question is written in
lawsNoOnly these of the laws this organisation has selected, by slug, such as gdpr or uae-pdpl. Leave it out to search all of them
as_ofNoRead the documents as they stood on this date
limitNoHow many results to return, each a whole rule
queryYesOne question, in words: what the code does, with which data
include_explanatoryNoInclude text that explains without obliging, such as a GDPR recital

Output Schema

NameRequiredDescriptionDefault
resultsYes
searchedYesWhat was searched, and as of when

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed17 schema fields changed
    • changedInput schema / properties / limit / description
      Previous value: -"How many clauses to return"New value: +"How many results to return, each a whole rule"
    • changedInput schema / properties / query / description
      Previous value: -"The question, in words"New value: +"One question, in words: what the code does, with which data"
    • addedOutput schema / $defs / Beneath
      Added value: +{
      +  "description": "A clause beneath a rule's own words. Cite it by its own key, with the rule's document\nand version.",
      +  "properties": {
      +    "coming": {
      +      "anyOf": [
      +        {
      +          "$ref": "#/$defs/Coming"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null
      +    },
      +    "in_force": {
      +      "title": "In Force",
      +      "type": "boolean"
      +    },
      +    "key": {
      +      "title": "Key",
      +      "type": "string"
      +    },
      +    "prevailing_text": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Prevailing Text"
      +    },
      +    "text": {
      +      "title": "Text",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "key",
      +    "text",
      +    "in_force"
      +  ],
      +  "title": "Beneath",
      +  "type": "object"
      +}
    • addedOutput schema / $defs / Coming
      Added value: +{
      +  "description": "The words an amendment gives a clause from a later day.",
      +  "properties": {
      +    "in_force_from": {
      +      "title": "In Force From",
      +      "type": "string"
      +    },
      +    "set_by": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "The amendment that brings them",
      +      "title": "Set By"
      +    },
      +    "text": {
      +      "description": "The words as the amendment gives them, word for word",
      +      "title": "Text",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "text",
      +    "in_force_from",
      +    "set_by"
      +  ],
      +  "title": "Coming",
      +  "type": "object"
      +}
    • changedOutput schema / $defs / Match / description
      Previous value: -"A clause a search returned, with what else it points at."New value: +"A rule a search returned, with the clauses beneath it and what they point at."
    • addedOutput schema / $defs / Match / properties / beneath
      Added value: +{
      +  "description": "The clauses beneath the rule, in reading order",
      +  "items": {
      +    "$ref": "#/$defs/Beneath"
      +  },
      +  "title": "Beneath",
      +  "type": "array"
      +}
    • addedOutput schema / $defs / Match / properties / coming
      Added value: +{
      +  "anyOf": [
      +    {
      +      "$ref": "#/$defs/Coming"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "The words an amendment gives this clause from a later day. Mention them when the answer depends on what will apply then"
      +}
    • changedOutput schema / $defs / Match / properties / cross_references / description
      Previous value: -"Keys this clause's own words point at, to read with get_clause"New value: +"Keys the words shown point at, to read with get_clause"
    • addedOutput schema / $defs / Match / properties / dates_set_by
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "What set those days, when anything other than the version's date did",
      +  "title": "Dates Set By"
      +}
    • addedOutput schema / $defs / Match / properties / document / description
      Added value: +"The document's title, in the language of the text"
    • addedOutput schema / $defs / Match / properties / in_force
      Added value: +{
      +  "description": "Whether this text applies on the day asked about. A provision can be returned before it starts to apply, so a duty can be prepared for: say so when citing it",
      +  "title": "In Force",
      +  "type": "boolean"
      +}
    • addedOutput schema / $defs / Match / properties / in_force_from
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "The day this text starts to apply, or null while nothing has set it",
      +  "title": "In Force From"
      +}
    • removedOutput schema / $defs / Match / properties / in_force_since
      Removed value: -{
      -  "description": "The date this version took effect",
      -  "title": "In Force Since",
      -  "type": "string"
      -}
    • addedOutput schema / $defs / Match / properties / in_force_until
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "The day it stops applying, when a law or an amendment has set one",
      +  "title": "In Force Until"
      +}
    • addedOutput schema / $defs / Match / properties / law
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "What people call the law, such as GDPR. Null for the organisation's policy",
      +  "title": "Law"
      +}
    • addedOutput schema / $defs / Match / properties / whole
      Added value: +{
      +  "default": true,
      +  "description": "False when only the two clauses the search ranked highest are beneath: get_clause with whole_subtree reads the rest",
      +  "title": "Whole",
      +  "type": "boolean"
      +}
    • changedOutput schema / $defs / Match / required
      Previous value: -[
      -  "key",
      -  "citation",
      -  "text",
      -  "breadcrumb",
      -  "obliges",
      -  "document",
      -  "version",
      -  "in_force_since",
      -  "lang",
      -  "authoritative",
      -  "jurisdiction",
      -  "trust_tier",
      -  "source_url",
      -  "score",
      -  "cross_references"
      -]New value: +[
      +  "key",
      +  "citation",
      +  "text",
      +  "breadcrumb",
      +  "obliges",
      +  "document",
      +  "law",
      +  "version",
      +  "in_force",
      +  "in_force_from",
      +  "in_force_until",
      +  "lang",
      +  "authoritative",
      +  "jurisdiction",
      +  "trust_tier",
      +  "source_url",
      +  "score",
      +  "cross_references"
      +]
  2. First observed

TDQS

A3.9/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The annotations already declare readOnlyHint and openWorldHint=false, and the description is consistent with a closed local corpus. It adds real behavioral context that annotations cannot carry: the verbatim return format, the citation keys, and the 30-day retention of queries with no attribution. The lower score reflects that the query-privacy and PII-exclusion notes are usage guidance rather than additional operational disclosure such as result-size behavior or ranking.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is short and front-loaded, opening with the verb and scope, then the trigger conditions, then the return shape, then the PII restriction. Each sentence carries a distinct operational instruction and nothing is redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only search over a fixed corpus with an output schema and 100% documented parameters, the description covers purpose, when to call it, what comes back, how to phrase the query and what not to put in it. No information needed to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% across all six parameters, so lang, laws, as_of, limit, query and include_explanatory are already fully documented in the schema. The description goes beyond it only in advising how to phrase the query in general terms, which is useful but does not supply syntax or format details the schema lacks.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource ('Search the privacy law this community version holds') and states the return shape: the clause itself, word for word, with key, document and version to cite. It does not explicitly distinguish itself from get_clause or get_document, so an agent must infer that this is the discovery tool and those are the retrieval tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives concrete when-to-use triggers: before writing or changing code that collects, stores, logs, shares or deletes personal data, and before answering a question about what the law requires. There are no stated exclusions and no named alternatives, so the agent is not told when to prefer get_clause or list_documents instead.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.