Skip to main content
Glama

Za Law Search

za_law_search
Read-onlyIdempotent

Search South African Acts of Parliament by title or subject words, e.g. "expropriation", "national health" or "cybercrimes". Matching is full-text over the Government's Act pages, so results are Acts whose title or summary mention the words, most relevant first. Returns id, title, Act number and year ("Act 13 of 2024"), Government Gazette number and a link; 30 per page, next_page says whether to continue. Each Act is as published in the Government Gazette (not a consolidation). National Acts only, not provincial legislation or regulations. Pair with za_law_get.

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": {
      "query": "expropriation"
    },
    "name": "za_law_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number, 1-based (default 1)
queryYesTitle or subject words, e.g. "expropriation" or "national health insurance"

Output Schema

NameRequiredDescriptionDefault
pageNo
countNo
queryNo
sourceNo
resultsNo
next_pageNo
data_as_ofNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent, open-world and non-destructive, yet the description adds real behavioral context: matching is full-text over the Government's Act pages with relevance ordering, results are capped at 30 per page with a next_page continuation flag, and each Act is as originally gazetted rather than a consolidated version. That last caveat materially changes how an agent should interpret results and is not recoverable from any structured field.

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?

Front-loads what it searches, then matching behavior, then return shape, then scope limits, then the pairing tool — a sensible information hierarchy with no filler. The query examples mildly overlap the schema's example, but they serve tool selection, not just parameter filling.

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?

Despite an output schema existing, the description still summarizes return fields and pagination, and it closes the gaps an agent would otherwise hit: non-consolidated texts, national-only scope, and the handoff to za_law_get. Nothing needed to call this correctly is missing.

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 adds genuine meaning beyond the schema by specifying the 30-per-page window and that next_page signals whether to continue — pagination behavior the schema only hints at with "1-based." The query parameter's semantics (title or subject words, full-text matching) are also restated with matching behavior rather than just examples.

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 ("Search South African Acts of Parliament") plus the searchable fields (title or subject words), and immediately distinguishes itself from the sibling retrieval tool via "Pair with za_law_get." An agent can tell search from fetch 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?

Gives concrete query examples and explicit scope exclusions ("National Acts only, not provincial legislation or regulations"), and routes to za_law_get for follow-up. It stops short of a full when-not-to-use statement relative to the other search siblings, but the domain boundary is clear.

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.