Skip to main content
Glama

GetLawED — Verified South African Law

Search South African law

legal_library_search
Read-onlyIdempotent

Search GetLawED's library of official South African legal texts (Constitutional Court, SCA, High Court, Labour, Land, Tax and tribunal judgments; Acts; regulations, rules and codes issued under them; municipal by-laws and land use schemes; Bills; Government Gazettes). Returns matching documents with the best-matching section reference where the text is split into sections, a short passage and the official source link. Absence from the library does not mean an authority does not exist. South African law only unless country is given (e.g. "GB" for United Kingdom Acts).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "legal_library_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum results, 1-10 (default 5)
queryYesWhat to look for, in plain language (e.g. "business rescue post-commencement tax debt")
countryNoJurisdiction to search. Default "ZA" = South African law only. "GB" = United Kingdom Acts of Parliament (legislation.gov.uk, revised text; Open Government Licence v3.0 — show the attribution returned with each result). "US" = United States federal law (US Code, Constitution, federal regulations, Supreme Court opinions; public domain; no state law). "GE" = Georgia (laws as published by the Legislative Herald, Georgian + English; Constitutional and Supreme Court decisions, Georgian). "all" = every jurisdiction held. Each result carries its country and jurisdiction: only results with country "ZA" are South African law — never present a result from another country as South African law.
doc_typeNoLimit to one kind of document: regulation = regulations, rules and codes; bylaw = municipal by-laws and land use schemes (default: judgment, act and regulation)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / country / description
      Previous value: -"Jurisdiction to search. Default \"ZA\" = South African law only. \"GB\" = United Kingdom Acts of Parliament (legislation.gov.uk, revised text; Open Government Licence v3.0 — show the attribution returned with each result). \"all\" = every jurisdiction held. Each result carries its country and jurisdiction: only results with country \"ZA\" are South African law — never present a result from another country as South African law."New value: +"Jurisdiction to search. Default \"ZA\" = South African law only. \"GB\" = United Kingdom Acts of Parliament (legislation.gov.uk, revised text; Open Government Licence v3.0 — show the attribution returned with each result). \"US\" = United States federal law (US Code, Constitution, federal regulations, Supreme Court opinions; public domain; no state law). \"GE\" = Georgia (laws as published by the Legislative Herald, Georgian + English; Constitutional and Supreme Court decisions, Georgian). \"all\" = every jurisdiction held. Each result carries its country and jurisdiction: only results with country \"ZA\" are South African law — never present a result from another country as South African law."
  2. Changed1 schema field changed
    • addedInput schema / properties / country
      Added value: +{
      +  "description": "Jurisdiction to search. Default \"ZA\" = South African law only. \"GB\" = United Kingdom Acts of Parliament (legislation.gov.uk, revised text; Open Government Licence v3.0 — show the attribution returned with each result). \"all\" = every jurisdiction held. Each result carries its country and jurisdiction: only results with country \"ZA\" are South African law — never present a result from another country as South African law.",
      +  "type": "string"
      +}
  3. First observed

TDQS

A4/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 closed-world, so the safety profile is covered. The description adds genuinely useful behavior beyond that: return shape (bestsection reference, short passage, official source link), the coverage caveat about absence, and the licensing/attribution obligation for GB results. It does not describe ranking, pagination, or limits behavior.

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 primary scope statement, followed by return shape, the absence caveat, and the jurisdiction default in a logical order. The long parenthetical enumeration of covered sources and the duplicated jurisdiction remark make it denser than necessary, but no sentence is wasted.

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?

With no output schema, the description carries the return-value burden and does so: it explains the best-matching section reference, passage and source link. Combined with the coverage caveat and the per-result country labelling rule, an agent has everything needed to call and interpret this search correctly.

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 each parameter (query, limit, country, doc_type) is already fully documented, including jurisdiction codes and the attribution requirement. The description's jurisdiction sentence largely restates the schema's country description, so it adds little beyond it.

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 GetLawED's library of official South African legal texts') and enumerates the covered corpora (courts, Acts, regulations, by-laws, Gazettes), which lets an agent separate it from lookup-style siblings like legal_get_section or legal_verify_citations without opening the 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 clear usage context: the library is South African by default and other jurisdictions are only searched when the country parameter is supplied, plus a caveat that absence from the library is not proof an authority does not exist. It does not, however, route the agent among siblings (e.g. when to prefer legal_get_section or legal_verify_citations over this search), so it stops short of explicit alternatives.

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.