Skip to main content
Glama

Search landlord rules

search_rules
Idempotent

Costs 1 prepaid credit. Use for general questions about what private landlords in England must do, such as gas safety, deposits, EPC ratings, smoke alarms or notices. Searches Lettance's catalogue of rules, each cited to legislation.gov.uk or GOV.UK, and returns matching rule ids with summaries. Use get_rule for one rule's full detail. Read-only.

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>",
      "requestId": "<requestId>"
    },
    "name": "search_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesKeywords, e.g. 'gas safety certificate' or 'deposit protection'
requestIdYesPurchase UUID. Reuse only for a retry with identical arguments.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / requestId
      Added value: +{
      +  "description": "Purchase UUID. Reuse only for a retry with identical arguments.",
      +  "format": "uuid",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "query"
      -]New value: +[
      +  "query",
      +  "requestId"
      +]
  2. Changed1 schema field changed
    • addedInput schema / properties / query / description
      Added value: +"Keywords, e.g. 'gas safety certificate' or 'deposit protection'"
  3. First observed

TDQS

A3.9/5.0
Behavior2/5

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

The description adds real behavioral context beyond the annotations: a 1-credit charge, the citation sources (legislation.gov.uk or GOV.UK), and the return shape. However, it closes with 'Read-only' while the annotations declare readOnlyHint=false — the credit-consuming call is precisely a non-read-only side effect. The upfront cost disclosure mitigates the harm, but the two statements still conflict.

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-loads the cost, then purpose, then scope, then the sibling pointer in a tight sequence of sentences. The trailing 'Read-only.' is the one piece of dead weight, and it is also the sentence that creates the inconsistency.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/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 usefully states that results are rule ids plus summaries and that sources are cited, and it discloses the billing side effect. Nothing essential to invoking it is missing, though the read-only/billing tension should be resolved.

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 both parameters are documented in the schema, including the retry-only rule for requestId. The description adds nothing about query syntax or how keywords are matched, so the schema does all the work — the baseline 3 applies.

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 (searches Lettance's catalogue of rules) plus the exact domain (what private landlords in England must do) and enumerates the topic areas covered. It also tells the agent what comes back (matching rule ids with summaries), which distinguishes it from fetching a single rule.

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?

Explicitly scopes use to 'general questions' and names the alternative for the narrow case: 'Use get_rule for one rule's full detail.' The cost line and the read-only framing give the agent the conditions needed to choose this tool over the sibling.

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.

Resources