Skip to main content
Glama

Pk Search Judgments

pk_search_judgments
Read-onlyIdempotent

Search judgments of Pakistan's High Courts: Islamabad High Court, High Court of Sindh, Peshawar High Court and High Court of Balochistan (Lahore High Court returns an explicit unavailable result). Give court plus words from the headnote or party names, optionally year of decision and reported_only. Returns case title, case number, law-report citation (PLD, SCMR, PCrLJ, YLR, MLD and others), decision date, bench and the judgment link to read with pk_get_judgment. Example: bail before arrest at the Islamabad High Court.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "court": "islamabad",
      "limit": 5,
      "query": "bail before arrest",
      "reported_only": true
    },
    "name": "pk_search_judgments"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearNoFour-digit year, e.g. "2024". Year of decision for Islamabad and Peshawar; year the case was filed for Sindh; year inside the citation for Balochistan.
courtYesWhich High Court: islamabad, sindh, peshawar, balochistan (lahore is recognised and returns unavailable). Also accepts ihc, shc, phc, bhc.
limitNoMax results (default 20, max 100).
queryNoWords to find. Islamabad: headnote or party names (6+ letters work best). Sindh: party names. Peshawar: case title and remarks. Balochistan: case title or citation.
reported_onlyNoOnly judgments approved for reporting in the law reports (Islamabad, Sindh, Balochistan).

Output Schema

NameRequiredDescriptionDefault
hintNo
nextNo
noteNo
yearNo
courtNo
foundNo
queryNo
reasonNo
sourceNo
returnedNo
availableNo
judgmentsNo
publisherNo
reported_onlyNo
total_matchesNo
query_matched_againstNo
latest_decision_in_matchesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/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 read-only, idempotent, non-destructive search. Beyond that, the description adds useful behavior: Lahore returns an explicit unavailable result, reported_only applies only to some courts, and results include citations, dates, bench, and a follow-on judgment link.

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 definition is front-loaded with the searchable courts and the Lahore exception, then moves through query inputs, return fields, and a concise example. The wording is dense but purposeful, with no obvious filler.

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?

Given the multi-court complexity, the description covers supported courts, availability quirks, query semantics, optional filters, return fields, and the follow-on read tool. The rich input schema, output schema, and annotations carry the remaining structural details.

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 description coverage is 100%, and the schema already documents court aliases, per-court year semantics, query differences, limit bounds, and reported_only applicability. The description largely repeats court and query guidance, adding little parameter meaning beyond the schema and a usage example.

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 — searching judgments of named Pakistani High Courts — and enumerates the supported courts while flagging Lahore High Court as unavailable. It also distinguishes this search tool from pk_get_judgment by explaining that results include a judgment link to read with that sibling.

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 usage guidance: provide court plus headnote/party-name words, optionally year and reported_only, and includes a worked example. It also explains the Lahore unavailable-result behavior, though it does not explicitly contrast this tool with non-judgment search siblings such as pk_search_acts.

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.