Skip to main content
Glama

Pk Get Judgment

pk_get_judgment
Read-onlyIdempotent

Read the text of one Pakistani High Court judgment from the judgment_url returned by pk_search_judgments (Islamabad, Sindh, Peshawar or Balochistan). Returns extracted text in pages of max_chars with next_offset; a scanned judgment with no text layer returns found:false rather than an empty string.

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": {
      "max_chars": 1500,
      "judgment_url": "https://bhc.gov.pk/media/judgments/1584.pdf"
    },
    "name": "pk_get_judgment"
  }
}

Input Schema

NameRequiredDescriptionDefault
offsetNoCharacter offset to start from (default 0); use next_offset from the previous page.
max_charsNoCharacters to return (default 12000, max 40000).
judgment_urlYesjudgment_url from a pk_search_judgments result.

Output Schema

NameRequiredDescriptionDefault
noteNo
textNo
courtNo
foundNo
pagesNo
offsetNo
reasonNo
sourceNo
publisherNo
truncatedNo
charactersNo
next_offsetNo
judgment_urlNo
returned_charactersNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent and open-world, so the description need not restate safety. It adds genuine behavioral context beyond them: paging via max_chars/next_offset, and the failure mode where a scanned judgment with no text layer returns found:false instead of an empty string — a distinction that materially changes how an agent interprets a response.

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?

Two sentences, front-loaded with the action and the source, then the return/pagination behavior and the failure mode. No filler and nothing repeated from the 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?

For a single-record fetch with full schema coverage and an output schema, the description covers input provenance, paging, and the null/failure case. Only minor gaps remain, such as whether found:false is retryable or terminal, and whether very large judgments require repeated paging calls.

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 100%, so the baseline is 3, but the description goes beyond the schema by explaining how max_chars and next_offset combine into a paging contract. It does not add units or limits beyond what the schema already documents for offset and max_chars.

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 names a specific verb ("Read the text") and resource ("one Pakistani High Court judgment"), enumerates the covered courts, and specifies the exact provenance of the input (judgment_url from pk_search_judgments). That makes it immediately distinguishable from the search sibling without opening either 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?

It clearly implies the usage context: call this after pk_search_judgments and pass the returned judgment_url. It does not spell out exclusions (e.g., when to use pk_get_act or pk_get_section instead), but the source binding to a specific sibling is strong enough 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.