Skip to main content
Glama

Search landlord rules

search_rules
Read-onlyIdempotent

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.

Input Schema

NameRequiredDescriptionDefault
queryYesKeywords, e.g. 'gas safety certificate' or 'deposit protection'

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / query / description
      Added value: +"Keywords, e.g. 'gas safety certificate' or 'deposit protection'"
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and non-destructive, so the description's 'Read-only' is partly redundant. It still adds value beyond structured fields by disclosing return content (matching rule ids with summaries) and provenance (each cited to legislation.gov.uk or GOV.UK).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences, front-loaded with the when-to-use clause and ending with the routing hint and safety note. No wasted words.

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?

No output schema exists, yet the description tells the agent what comes back (rule ids plus summaries). Combined with the usage and sibling routing, an agent has everything needed to call it 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%, and the schema already documents the single query parameter with its own examples. The description's inline topic list is illustrative context rather than new parameter syntax, so baseline 3 is appropriate.

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 (searches) and resource (Lettance's catalogue of landlord rules), scoped to private landlords in England. It explicitly contrasts itself with sibling get_rule, so an agent can distinguish the two 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?

Opens with 'Use for general questions about...' and closes with 'Use get_rule for one rule's full detail', naming the alternative and the condition that selects it. Concrete topic examples (gas safety, deposits, EPC ratings) reinforce the intended use.

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