Skip to main content
Glama

UK & Dutch Law Lookup API: article text by date, in force

get_uk_dutch_law
Read-onlyIdempotent

One call answers "what does section 172 of the Companies Act 2006 say?" or "wat zegt artikel 7:658 BW?": the section or article as plain text from the official consolidated version in force today (or on any date), whether it is in force, and what changed it.

Needs query, a citation. UK and Dutch law only: for EU acts use get_eu_law; for Dutch court rulings use search_dutch_case_law.

Inputs: query holds the act and optionally the article, e.g. "Companies Act 2006 s 172" or "BW 7:658", or a legislation.gov.uk or BWB path. article overrides it (up to 5, comma-separated); asOf gives the text in force on a date; set jurisdiction (UK or NL) only when a bare name is ambiguous.

Read-only, no side effects. Charged per row returned, at the price below; a call that fails or runs out of time (55 s) is free. If one source does not answer, the rest still comes back and warnings names the gap. Limit: 60 calls a minute per key (10 on a new free key); past it the call is refused (rate_limited, free): retry after about 10 seconds.

Price: $0.005 per act-lookup.

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": "get_uk_dutch_law"
  }
}

Input Schema

NameRequiredDescriptionDefault
asOfNoYYYY-MM-DD, e.g. "2025-01-01": return the text as in force on that date (UK point-in-time version; NL consolidated version, newest correction)
queryYesThe act, optionally with the article
articleNoSection, regulation or article number, optionally with a subsection or lid: "172", "172(1)", "7:658", "13 lid 2", "8:1"; several separated by commas (up to 5, e.g. "171, 172")
languageNoOptional, "EN" or "NL"
jurisdictionNo"UK" or "NL"
maxTextCharsNoCap on article_text, in characters, e.g. 30000 (default)

Output Schema

NameRequiredDescriptionDefault
rowsYes
toolNo
countYes
messageNo
warningsNo
balance_usdNo
charged_usdNo
duration_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / query / examples
      Added value: +[
      +  "Companies Act 2006 s 172"
      +]
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "balance_usd": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "charged_usd": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "count": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "duration_seconds": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "message": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "rows": {
      +      "items": {
      +        "additionalProperties": true,
      +        "properties": {
      +          "act_id": {
      +            "description": "Identifier of the act: legislation.gov.uk path (\"ukpga/2006/46\") or BWB id (\"BWBR0005290\"). Same role as celex in eu-law-lookup.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "act_type": {
      +            "description": "Type of act, e.g. \"UK Public General Act\", \"UK Statutory Instrument\", \"Wet\", \"Algemene maatregel van bestuur\".",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "act_type_code": {
      +            "description": "Source code for the type: legislation.gov.uk type (ukpga, uksi, asp...) or BWB soort (wet, AMvB, ministeriele-regeling...).",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "act_url": {
      +            "description": "Official page of the act (legislation.gov.uk id URI or wetten.overheid.nl).",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "article": {
      +            "description": "The section, regulation or article returned, e.g. \"172\", \"658\", \"8:1\"; null for an act-level row.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "article_amended_by": {
      +            "description": "Changes to this article: UK textual amendments shown with it (F-notes), NL the publication that last changed it. Items {source, date, change, url}.",
      +            "type": [
      +              "array",
      +              "null"
      +            ]
      +          },
      +          "article_text": {
      +            "description": "Plain text, one line per subsection, paragraph or list item, numbering kept (UK \"(1)\", \"(a)\"; NL \"1.\", \"a.\").",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "article_text_truncated": {
      +            "description": "True when article_text was cut at maxTextChars.",
      +            "type": [
      +              "boolean",
      +              "null"
      +            ]
      +          },
      +          "article_title": {
      +            "description": "Heading of the section or article (UK sections have one; most Dutch articles do not).",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "articles_count": {
      +            "description": "Act-level row: number of sections or articles (NL: not repealed).",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "as_of": {
      +            "description": "The asOf date used (null = today).",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "consolidated_version_date": {
      +            "description": "Date from which the version used applies, YYYY-MM-DD.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "data_url": {
      +            "description": "The XML the text was read from. Same role as cellar_url in eu-law-lookup.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "date_document": {
      +            "description": "UK: date of Royal Assent or making; NL: date of signature. YYYY-MM-DD.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "date_end_of_validity": {
      +            "description": "NL: last day of the last consolidated version when the regulation has lapsed (vervallen); null when open-ended and for UK.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "date_entry_into_force": {
      +            "description": "UK article rows: when the section came into force (from its commencement note); NL: when the regulation first entered into force. YYYY-MM-DD.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "date_publication": {
      +            "description": "NL: issue date of the original Staatsblad/Staatscourant; null when unknown and for UK.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "duration_seconds": {
      +            "description": "How long the lookup took.",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "eli": {
      +            "description": "European Legislation Identifier URI (UK, e.g. http://www.legislation.gov.uk/id/ukpga/2006/46); null for NL.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "in_force": {
      +            "description": "Whether the returned article (for NL act rows: the act) is in force on as_of (default today). UK act rows: null.",
      +            "type": [
      +              "boolean",
      +              "null"
      +            ]
      +          },
      +          "jurisdiction": {
      +            "description": "\"UK\" or \"NL\".",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "language": {
      +            "description": "Language of the text: EN (UK) or NL (NL).",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "latest_consolidated_version_date": {
      +            "description": "Date of the newest consolidated (revised) version the source holds; may be later than as_of.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "long_title": {
      +            "description": "Long title (UK) or intitule (NL).",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "official_publication": {
      +            "description": "Official reference: UK chapter or SI number (\"2006 c. 46\", \"S.I. 2003/2426\"), NL publication (\"Stb. 1991, 600\"). Same role as oj_reference in eu-law-lookup.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "paragraph": {
      +            "description": "The subsection (UK) or lid (NL) returned; null = whole article.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "pending_changes": {
      +            "description": "UK: changes legislation.gov.uk lists as not yet applied to this provision, {type, affected, source, url, in_force_date}. Always [] for NL.",
      +            "type": [
      +              "array",
      +              "null"
      +            ]
      +          },
      +          "query": {
      +            "description": "The query as given.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "retrieved_at": {
      +            "description": "When the row was made (ISO 8601, UTC).",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "schema_version": {
      +            "description": "Output schema version.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "source_url": {
      +            "description": "Page of the exact text version used (article-level when available).",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "table_of_contents": {
      +            "description": "Act-level row: [{article, title}] for up to 500 sections or articles, to pick one for a follow-up call.",
      +            "type": [
      +              "array",
      +              "null"
      +            ]
      +          },
      +          "text_notice": {
      +            "description": "Licence attribution and the source's status note: revised texts are editorial consolidations; for NL the authentic text is the Staatsblad/Staatscourant publication.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "text_version": {
      +            "description": "\"consolidated\" (revised / geconsolideerde tekst) or \"original\" (as enacted or made, UK only).",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "title": {
      +            "description": "Short title or citeertitel, e.g. \"Companies Act 2006\", \"Burgerlijk Wetboek Boek 7\".",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "warnings": {
      +            "description": "Caveats in plain words: not in force on asOf, repealed, newer version coming, fallbacks, truncation.",
      +            "type": [
      +              "array",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": [
      +          "object",
      +          "null"
      +        ]
      +      },
      +      "type": "array"
      +    },
      +    "tool": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "warnings": {
      +      "items": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "type": [
      +        "array",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "rows",
      +    "count"
      +  ],
      +  "type": "object"
      +}
  3. Added

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered; the description earns credit for going further with pricing ($0.005 per act-lookup), a 55 s timeout, free-on-failure billing, and partial-failure semantics where remaining sources still return and `warnings` names the gap. It also documents the rate limit (60/min, 10 on a new free key) and the retry window. The one gap is the return shape beyond `warnings`, which the output schema presumably covers.

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 user question it answers, then scope exclusions, then inputs, then behavior and price — a sensible ordering. It is dense but nearly every sentence carries new information; the only slack is the near-duplication between the opening examples and the later `query` illustration.

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?

For a six-parameter, multi-jurisdiction, paid lookup tool, the definition covers routing, input forms, date semantics, billing, timeout, rate limits, and degraded-response handling. With an output schema present, it need not explain return values, and the mention of `warnings` is sufficient.

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 semantics the schema cannot express: `article` overrides an article embedded in `query` and accepts up to five comma-separated values, and `asOf` selects a point-in-time version. It also clarifies that UK yields a point-in-time version while NL yields the newest consolidated correction. Minor deduction for not mentioning `language` or `maxTextChars` in prose, leaving those to the schema.

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 pair with concrete examples ("section 172 of the Companies Act 2006", "artikel 7:658 BW") and enumerates exactly what comes back: article plain text, in-force status, and amendment history. It explicitly marks its scope as UK and Dutch law only, which differentiates it from get_eu_law and search_dutch_case_law 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Names the alternatives and the condition that routes to them ("for EU acts use get_eu_law; for Dutch court rulings use search_dutch_case_law"), and gives a rule for the jurisdiction parameter ("set only when a bare name is ambiguous"). Includes a worked set of accepted query forms so the agent knows what input shapes are valid.

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.