Skip to main content
Glama

Search the Private Law wiki

search
Read-onlyIdempotent

Rank published articles for a query and return them with titles and URLs. Use when you want sources to read rather than a single answer. Search is sense-aware: bare MSO promotes only the Hong Kong Money Service Operator owner, professional-industry context promotes the regulated-practice platform, and genuinely conflicting context returns both with an explicit interpretation object.

Input Schema

NameRequiredDescriptionDefault
limitNoDefault 5.
queryYesSearch terms or a question.
localeNo

Output Schema

NameRequiredDescriptionDefault
hitsYes
queryInterpretationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / hits / items / properties / ranking
      Added value: +{
      +  "description": "Retrieval ordering signals, not confidence or legal verification. Null for a producer without ranking metadata.",
      +  "properties": {
      +    "contract": {
      +      "const": "wiki-search-ranking/1",
      +      "type": "string"
      +    },
      +    "cosineDistance": {
      +      "description": "Best chunk distance within the retrieved pool; null when no measurement was obtained.",
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "fusionScore": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "lexicalRank": {
      +      "minimum": 1,
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "method": {
      +      "enum": [
      +        "lexical",
      +        "rrf"
      +      ],
      +      "type": "string"
      +    },
      +    "ownerBonus": {
      +      "type": "number"
      +    },
      +    "rank": {
      +      "minimum": 1,
      +      "type": "integer"
      +    },
      +    "senseBonus": {
      +      "type": "number"
      +    },
      +    "vectorRank": {
      +      "minimum": 1,
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "contract",
      +    "rank",
      +    "method",
      +    "fusionScore",
      +    "lexicalRank",
      +    "vectorRank",
      +    "cosineDistance",
      +    "ownerBonus",
      +    "senseBonus"
      +  ],
      +  "type": [
      +    "object",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / queryInterpretation / properties / choices / items / properties / labelLocale
      Added value: +{
      +  "description": "Display-label language; locale remains the linked article language.",
      +  "enum": [
      +    "ru",
      +    "en"
      +  ],
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • changedOutput schema / properties / hits / items / properties / provenance / properties / version / description
      Previous value: -"Revision of exactly the material served: for an article the snapshot content hash (the HTML ETag value); for a dataset record the dataset revision it was published in, since the published file is named by the hash of its own content and meta.version plus datasets/index.json resolve that filename. Null when unknown."New value: +"Revision of exactly the material served: for an article the snapshot content hash (the HTML ETag value); for a dataset record the dataset revision it was published in, not the published filename. Null when unknown."
  3. Changed1 schema field changed
    • changedOutput schema / properties / hits / items / properties / provenance / properties / version / description
      Previous value: -"Revision of exactly the material served: article snapshot content hash (the HTML ETag value) or dataset version. Null when unknown."New value: +"Revision of exactly the material served: for an article the snapshot content hash (the HTML ETag value); for a dataset record the dataset revision it was published in, since the published file is named by the hash of its own content and meta.version plus datasets/index.json resolve that filename. Null when unknown."
  4. Changed2 schema fields changed
    • addedOutput schema / properties / hits / items / properties / provenance
      Added value: +{
      +  "description": "Origin of one record: stable id, clean canonical URL, publisher, the exact published revision served, a ready citation, primary sources and review status.",
      +  "properties": {
      +    "canonical_url": {
      +      "description": "Published location without tracking parameters.",
      +      "format": "uri",
      +      "type": "string"
      +    },
      +    "cite_as": {
      +      "type": "string"
      +    },
      +    "contract": {
      +      "const": "wiki-provenance/1",
      +      "type": "string"
      +    },
      +    "id": {
      +      "description": "<locale>:<slug> for an article, <dataset>:<record id> for a dataset row.",
      +      "type": "string"
      +    },
      +    "primary_sources": {
      +      "items": {
      +        "properties": {
      +          "name": {
      +            "type": "string"
      +          },
      +          "url": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "required": [
      +          "name",
      +          "url"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "publisher": {
      +      "properties": {
      +        "name": {
      +          "type": "string"
      +        },
      +        "url": {
      +          "format": "uri",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "name",
      +        "url"
      +      ],
      +      "type": "object"
      +    },
      +    "verification_status": {
      +      "enum": [
      +        "verified",
      +        "pending",
      +        "unknown"
      +      ],
      +      "type": "string"
      +    },
      +    "version": {
      +      "description": "Revision of exactly the material served: article snapshot content hash (the HTML ETag value) or dataset version. Null when unknown.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "contract",
      +    "id",
      +    "canonical_url",
      +    "publisher",
      +    "version",
      +    "cite_as",
      +    "primary_sources",
      +    "verification_status"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / properties / hits / items / required
      Previous value: -[
      -  "slug",
      -  "url"
      -]New value: +[
      +  "slug",
      +  "url",
      +  "provenance"
      +]
  5. Changed3 schema fields changed
    • changedOutput schema / properties / hits / items / properties / distance / type
      Previous value: -"number"New value: +[
      +  "number",
      +  "null"
      +]
    • addedOutput schema / properties / queryInterpretation
      Added value: +{
      +  "properties": {
      +    "ambiguous": {
      +      "type": "boolean"
      +    },
      +    "choices": {
      +      "items": {
      +        "properties": {
      +          "description": {
      +            "type": "string"
      +          },
      +          "locale": {
      +            "type": "string"
      +          },
      +          "sense": {
      +            "enum": [
      +              "hong_kong_money_service_operator",
      +              "regulated_practice_management"
      +            ],
      +            "type": "string"
      +          },
      +          "slug": {
      +            "type": "string"
      +          },
      +          "title": {
      +            "type": "string"
      +          },
      +          "url": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "sense",
      +          "slug",
      +          "locale",
      +          "title",
      +          "description",
      +          "url"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "message": {
      +      "type": "string"
      +    },
      +    "sense": {
      +      "enum": [
      +        "hong_kong_money_service_operator",
      +        "regulated_practice_management",
      +        "comparison",
      +        "ambiguous"
      +      ],
      +      "type": "string"
      +    },
      +    "term": {
      +      "enum": [
      +        "MSO"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "term",
      +    "sense",
      +    "ambiguous",
      +    "message",
      +    "choices"
      +  ],
      +  "type": [
      +    "object",
      +    "null"
      +  ]
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "hits"
      -]New value: +[
      +  "hits",
      +  "queryInterpretation"
      +]
  6. Changed5 schema fields changed
    • removedInput schema / properties / k
      Removed value: -{
      -  "default": 5,
      -  "maximum": 10,
      -  "minimum": 1,
      -  "type": "integer"
      -}
    • addedInput schema / properties / limit
      Added value: +{
      +  "description": "Default 5.",
      +  "maximum": 20,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / locale
      Added value: +{
      +  "enum": [
      +    "ru",
      +    "en",
      +    "ko",
      +    "zh-hant"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / query / description
      Added value: +"Search terms or a question."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "hits": {
      +      "items": {
      +        "properties": {
      +          "distance": {
      +            "type": "number"
      +          },
      +          "slug": {
      +            "type": "string"
      +          },
      +          "title": {
      +            "type": "string"
      +          },
      +          "url": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "slug",
      +          "url"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "hits"
      +  ],
      +  "type": "object"
      +}
  7. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds substantive behavior the annotations cannot: sense-aware disambiguation, with concrete rules for bare 'MSO', professional-industry context, and conflicting context returning both plus an interpretation object. This is exactly the kind of non-obvious resolution logic an agent needs before trusting results.

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?

Three sentences: purpose and return shape first, selection guidance second, disambiguation behavior third. Every sentence adds distinct information with no restatement of the name or title.

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

Completeness4/5

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

An output schema exists, so return-value explanation is not required, and the sense-resolution behavior is well covered. The remaining gap is the locale parameter and any guidance on how limit interacts with ranking, which an agent must infer.

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 67% and the description says nothing about any of the three parameters — no hint that query accepts natural-language questions, no mention of the 1-20 limit, and no explanation of how locale should be set. With the schema already documenting query and limit, the baseline 3 is appropriate, but it does not compensate for the undocumented locale enum.

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

Purpose5/5

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

States a specific verb and resource ('Rank published articles for a query') plus the return shape ('titles and URLs'). It also distinguishes itself from the answer_*/ask siblings by framing output as 'sources to read rather than a single answer', so an agent can pick it without opening another schema.

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?

Gives a clear selection rule: use this when you want sources rather than a synthesized answer, which implicitly routes the agent away from answer_lookup/ask. It stops short of naming the sibling tools or stating explicit exclusions, so it is strong but not fully closed.

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.

Resources