Skip to main content
Glama

Bosco Labs: official records for AI agents

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.

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. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/openWorld, so the bar is lower, yet the description still adds pricing ($0.005 per act-lookup row), the 55 s timeout, free-on-failure and free-on-rate-limit behavior, a 60/min (10 on new key) rate limit with ~10 s retry, and partial-result semantics where warnings names the missing source. The only gap is that it does not describe the shape of the returned text, which the output schema 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 a concrete example-driven purpose, then inputs, then behavior, then price. Dense but each block earns its place; the opening quoted example sentences are slightly redundant with the natural-language statement that follows.

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 lookup with an output schema and full annotations, the description covers purpose, alternative routing, parameter precedence, cost, timeout, rate limits, and degraded-result behavior. Nothing needed to invoke it 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 description coverage is 100%, so baseline is 3, but the description adds real meaning beyond the schema: query may hold an act plus article or a legislation.gov.uk/BWB path, article overrides query and accepts up to five comma-separated values, and jurisdiction should be set only when the name is ambiguous. Those precedence and conditional rules are not in 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: return the section or article as plain text from the official consolidated version in force, plus status and amendment history. It distinguishes itself from the sibling get_eu_law explicitly, so an agent can route 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 Guidelines5/5

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

Names the alternative and the condition that selects it: 'UK and Dutch law only: for EU acts use get_eu_law.' It also tells the agent that jurisdiction should only be set when a bare act name is ambiguous, which prevents over-specification.

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.