Skip to main content
Glama

Pk Search Acts

pk_search_acts
Read-onlyIdempotent

Search Pakistan's federal statute register (The Pakistan Code, Ministry of Law and Justice) by words in the Act title, optionally filtered by year and subject category (Criminal, Civil, Family, Labour, Banking, Evidence, ...). Returns act_id, title, category, citation (e.g. "XLV of 1860") and promulgation date. Title words only, e.g. "penal", "contract", "evidence".

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": {
      "limit": 5,
      "query": "penal"
    },
    "name": "pk_search_acts"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearNoFour-digit year of the Act, e.g. "1860".
limitNoMax results (default 20, max 100).
queryNoWords in the Act title, e.g. "penal code".
categoryNoSubject category name or number, e.g. "Criminal" or "1".

Output Schema

NameRequiredDescriptionDefault
noteNo
yearNo
foundNo
queryNo
sourceNo
categoryNo
publisherNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds the register's identity and the exact returned fields (act_id, title, category, citation format, promulgation date), which is useful framing, but says nothing about pagination, result ordering, or what happens when no query is supplied.

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

Conciseness4/5

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

Three sentences plus a short constraint, front-loaded with the source register and scope before filters and return fields. The final clause slightly repeats the query parameter's own schema example, a minor redundancy rather than bloat.

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?

With an output schema, full annotation coverage, and 100% parameter documentation, the description only needs to orient the agent, which it does: source, searchable field, filters, return shape. The one real gap is behavior when the query is empty, given all four parameters are optional.

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 baseline is 3, but the description earns a bump by enumerating the subject taxonomy (Criminal, Civil, Family, Labour, Banking, Evidence, ...) beyond the schema's single example, and by clarifying that year and category act as optional filters on a title-word search. It still does not explain whether "query" can be omitted for a browse-all, despite zero required parameters.

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?

Specific verb plus named resource: "Search Pakistan's federal statute register (The Pakistan Code, Ministry of Law and Justice)", with the matching dimension stated (words in the Act title) and optional year/category filters. The source authority and the title-only scope clearly separate it from pk_search_judgments and pk_get_act.

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?

"Title words only, e.g. 'penal', 'contract', 'evidence'" is an effective usage constraint that steers the agent away from full-text or citation lookups and toward the right query form. It stops short of naming alternatives explicitly (e.g. use search_within for body text, pk_get_act once an act_id is known), so it is clear context rather than full when/when-not routing.

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.