Skip to main content
Glama

Pk Get Act

pk_get_act
Read-onlyIdempotent

Overview of one Pakistani federal Act: page count, opening text (title, preamble) and the list of section headings, so you can pick a section for pk_get_section. Give act (title words) or act_id.

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": "Contract Act"
    },
    "name": "pk_get_act"
  }
}

Input Schema

NameRequiredDescriptionDefault
actNoAct title words, e.g. "Contract Act".
act_idNoact_id from pk_search_acts.

Output Schema

NameRequiredDescriptionDefault
noteNo
foundNo
pagesNo
titleNo
act_idNo
sourceNo
preambleNo
publisherNo
charactersNo
headings_countNo
section_headingsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description still adds meaningful context beyond that: the returned content is explicitly an 'overview' limited to title/preamble and headings, which warns the agent this is not full statutory text. It does not discuss truncation or size limits for large Acts, which is the remaining behavioral gap.

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?

A single well-ordered sentence leads with what the tool returns, then states the downstream purpose, then the parameter options. Every clause earns its place and nothing is repeated from the schema.

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 a rich annotation set and an output schema, the description need not explain return values, and it correctly avoids doing so. It covers purpose, workflow role, and parameter choice for a simple two-parameter read tool. Only edge-case behavior for very large Acts (heading list truncation, page-count semantics) is left unaddressed.

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 schema already documents both parameters and that is the baseline. The description adds a small amount beyond it by presenting the two parameters as alternatives ('Give act ... or act_id'), which matters because the schema marks neither as required and an agent needs to know at least one must be supplied. That is modest added meaning, not a rewrite of the parameter contract, so baseline 3 applies.

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 and resource ('Overview of one Pakistani federal Act') and enumerates exactly what comes back: page count, title/preamble text, and the list of section headings. It closes by naming the sibling it feeds into (pk_get_section), so an agent can distinguish it from pk_get_section and pk_search_acts without opening a 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 states the workflow role clearly ('so you can pick a section for pk_get_section'), which tells the agent to call this before fetching section text. Parameter selection is also guided ('Give act (title words) or act_id'), and act_id is traced to pk_search_acts. It stops short of an explicit exclusion such as 'do not use this to locate an Act — use pk_search_acts instead', so it is strong but not fully routable.

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.