Skip to main content
Glama

Za Law Get

za_law_get
Read-onlyIdempotent

Fetch one South African Act by id from za_law_search (e.g. "acts/expropriation-act-13-2024-english-sepedi-24-jan-2025"). Returns title, Act number and year, the Government's summary of what the Act does, the commencement statement where the page gives one, the gazetted PDF link(s) and, when the PDF has a readable text layer, the text (capped at max_chars; use offset to read on). The site states no in-force flag, so status is null. Recent gazette PDFs often lose letters in text extraction; when that is detected the text is withheld with an empty_reason rather than returned corrupted, and the PDF link is the authoritative text.

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": {
      "id": "abolition-racially-based-land-measures-act",
      "max_chars": 3000
    },
    "name": "za_law_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesId from za_law_search, e.g. "acts/expropriation-act-13-2024-english-sepedi-24-jan-2025"
offsetNoCharacter offset into the text, to read on after a capped result
max_charsNoCap on returned text (default 20000, max 100000)

Output Schema

NameRequiredDescriptionDefault
idNo
urlNo
hintNo
noteNo
textNo
foundNo
pagesNo
titleNo
offsetNo
sourceNo
statusNo
summaryNo
citationNo
pdf_urlsNo
text_noteNo
truncatedNo
data_as_ofNo
total_charsNo
commencementNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover safety (read-only, idempotent, non-destructive, open-world), yet the description adds substantial behavior beyond them: the exact fields returned, that status is always null because the site publishes no in-force flag, and that corrupted PDF text is withheld with an empty_reason instead of being returned. That last point is exactly the kind of non-obvious failure mode an agent needs to interpret an empty result correctly.

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?

Front-loaded with the action and resource, then dense but purposeful sentences covering returns, the null status caveat, and the corrupted-text rule. The inline id example slightly duplicates the schema example, an avoidable redundancy in an otherwise tight definition.

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 supplies the interpretive context an agent needs: why status may be null, why text may be absent, and that the PDF link is authoritative. For a single-resource fetch tool this leaves no meaningful gap.

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 coverage is 100% and the schema already documents id, offset and max_chars including defaults and the 100000 maximum. The description's "capped at max_chars; use offset to read on" corroborates the truncation pattern but adds no new syntax or format detail, so it sits at the baseline.

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 one South African Act by id") plus the source of the identifier (za_law_search), and the parenthetical example of the id format removes ambiguity. An agent can distinguish this from the search sibling immediately.

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?

Makes clear the id must come from za_law_search and that offset should be used to read on after a capped result, which is genuine procedural guidance. It stops short of explicit when-not-to-use or a full alternatives comparison, so it lands just below the top band.

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.