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.

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"
  }
}

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. Changed1 schema field changed
    • changedInput schema / properties / locale / enum
      Previous value: -[
      -  "ru",
      -  "en",
      -  "ko",
      -  "zh-hant"
      -]New value: +[
      +  "ru",
      +  "en",
      +  "zh-hant"
      +]
  2. 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"
      +}
  3. 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."
  4. 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."
  5. 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"
      +]
  6. 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"
      +]
  7. 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"
      +}
  8. First observed

TDQS

A4.4/5.0
Behavior4/5

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

The annotations already establish that this is a safe, read-only, idempotent operation. The description adds meaningful behavioral detail about sense-aware handling and ambiguous context returning both interpretations with an interpretation object.

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?

The description is front-loaded with purpose, followed by usage guidance and then a dense but relevant explanation of sense-aware behavior. There is no filler, and every sentence contributes to correct tool selection or invocation.

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?

The definition covers purpose, usage distinction, and the most notable ambiguity behavior, while annotations and the output schema cover safety and return structure. It leaves locale and limit semantics mostly to the schema, which is a minor gap for a three-parameter tool.

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

Parameters4/5

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

Schema coverage is moderate, and the description adds important meaning for the query parameter by explaining how bare MSO and professional-industry context are interpreted. It does not clarify the locale enum or limit behavior beyond what the schema already states.

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?

The description states a specific verb and resource: it ranks published articles for a query and returns titles and URLs. It also distinguishes this tool from answer-oriented siblings by saying it is for sources to read rather than a single answer.

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 a clear usage condition: use this when you want sources to read rather than a single answer. It does not explicitly name the answer-oriented alternatives or state when not to use it, so it stops short of fully explicit routing guidance.

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