Skip to main content
Glama

Pk Get Section

pk_get_section
Read-onlyIdempotent

Fetch the text of one section of a Pakistani federal Act, e.g. section 302 of the Pakistan Penal Code 1860 (punishment of qatl-i-amd) or section 497 CrPC. Give act (title words like "Penal Code") or act_id from pk_search_acts, and the section number. Read live from the Ministry of Law and Justice's published copy.

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": {
      "act": "Penal Code",
      "section": "302"
    },
    "name": "pk_get_section"
  }
}

Input Schema

NameRequiredDescriptionDefault
actNoAct title words, e.g. "Penal Code" (first match is used). Prefer act_id when ambiguous.
act_idNoact_id from pk_search_acts.
sectionYesSection number, e.g. "302" or "497A".

Output Schema

NameRequiredDescriptionDefault
noteNo
textNo
foundNo
titleNo
act_idNo
sourceNo
sectionNo
publisherNo
truncatedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds one genuinely useful behavioral fact beyond that — the text is read live from the Ministry of Law and Justice's published copy, implying freshness and an external source. It says nothing about failure modes (ambiguous act, missing section) or resolution rules beyond what the schema states.

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, front-loaded with the purpose before the input recipe and the data-source note. Dense and largely waste-free, with only slight overlap between the example section citations in sentence one and the parameter guidance that follows.

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 correctly omitted, and annotations carry the safety and openness traits. What remains thin is resolving the act/act_id fork and what happens on no-match; for a simple three-parameter read tool this is a minor gap rather than a blocker.

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%, so the baseline is 3. The description restates what the schema already documents — act title words, act_id from pk_search_acts, section number — with an added end-to-end example but no new syntax, format, or precedence rules (the 'first match is used' detail lives in the schema, not here).

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 — 'Fetch the text of one section of a Pakistani federal Act' — and anchors it with two concrete examples (s.302 PPC, s.497 CrPC). The 'one section' framing cleanly separates it from a whole-act fetch, and naming pk_search_acts as the place act_id comes from ties it into the sibling flow.

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?

Explains how to invoke it: supply either act title words ('Penal Code') or an act_id sourced from pk_search_acts, plus a section number. It gives clear positive guidance but no explicit exclusion or fallback (e.g. what to do if the act name is ambiguous or the section doesn't exist).

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.