Skip to main content
Glama

Get a landlord rule

get_rule
Idempotent

Costs 1 prepaid credit. Use when you have a rule id from search_rules and need its full detail: the requirement, deadline, evidence to keep, penalty, legal basis and official guidance links. Read-only. Unknown ids return an error rather than a guess.

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": {
      "id": "<id>",
      "requestId": "<requestId>"
    },
    "name": "get_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesRule id, e.g. 'gas-safety-annual-check'
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: -[
      -  "id"
      -]New value: +[
      +  "id",
      +  "requestId"
      +]
  2. Changed1 schema field changed
    • addedInput schema / properties / id / description
      Added value: +"Rule id, e.g. 'gas-safety-annual-check'"
  3. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Adds context that the annotations cannot carry: the call costs 1 prepaid credit, and unknown ids return an error rather than a fabricated result. The 'Read-only' statement is about data effects and is consistent with the charge/cost rationale behind readOnlyHint=false, so this is not a contradiction. Cost disclosure is exactly the kind of behavioral fact an agent needs before spending a credit.

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 short sentences, front-loaded with the cost and usage trigger, then the return contents, then the error behavior. Every sentence carries information an agent would otherwise have to guess.

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?

There is no output schema, and the description compensates by naming the fields returned and the failure mode for bad ids. Combined with the cost and the schema's requestId retry note, an agent has everything needed to call this 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 coverage is 100%, so both parameters are already documented, including the requestId retry semantics and an id example. The description only implies that id originates from search_rules and says nothing about requestId, so it does not add meaning beyond the schema. 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?

The description names a specific verb and resource ('Get a landlord rule' with full detail) and enumerates exactly what comes back: requirement, deadline, evidence, penalty, legal basis, official guidance links. It also distinguishes itself from search_rules by positioning this tool as the detail lookup for an id obtained there.

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?

It states a clear precondition and route to the tool: 'Use when you have a rule id from search_rules'. That names the sibling that produces the required input. It does not explicitly state when not to use it or what search_rules itself returns, but the usage trigger is unambiguous.

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