Skip to main content
Glama

Contract Lily

Deposit cap check

check_deposit_cap
Read-onlyIdempotent

Work out the most a landlord or agent can ask for as a tenancy deposit and a holding deposit, from the rent, in any UK nation, and optionally check a deposit the user was asked for. England limits both; Wales limits the holding deposit; Scotland and Northern Ireland limit the tenancy deposit.

Input Schema

NameRequiredDescriptionDefault
rentYesThe rent for one rent period, in pounds, for example 1200 or 950.50.
nationYesThe UK nation the home is in.
rentPeriodYesHow often the rent falls due.
depositAskedNoThe tenancy deposit the landlord or agent asked for, in pounds, if the user gave one.

Output Schema

NameRequiredDescriptionDefault
pageYes
rentYes
limitsYes
nationYes
lawAsAtYes
depositAskedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare this read-only, idempotent and non-destructive, so the safety profile is covered. The description adds genuine domain context beyond them: which deposit type is capped in each nation (England both, Wales holding only, Scotland and NI tenancy only), which tells the agent what the result will and will not contain. Return shape is covered by the output schema.

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?

A single dense sentence that front-loads the core computation and appends the optional check, followed by the jurisdiction caveat. No filler, and the most important information (what it computes) comes first.

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?

For a read-only, idempotent calculation tool with a full output schema and 100%-documented parameters, this covers scope, jurisdiction coverage and the optional validation path. Slightly more could be said about how non-monthly rent periods (week/four_weeks) are normalised, but the essentials are present.

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; the description earns an extra point by clarifying that depositAsked is an optional validation input ('optionally check a deposit the user was asked for') and that the core computation is driven from the rent figure, framing the required-vs-optional distinction in one clause.

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 precise verb+resource: works out the maximum tenancy and holding deposit from rent, for any UK nation, with an optional check of a deposit already asked for. This is clearly distinguishable from siblings like check_rent_increase_notice or check_notice_period, which cover different regulatory questions.

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?

The description makes the trigger condition clear: computing statutory deposit caps from a rent figure, and optionally validating an amount the user was quoted. It gives clear context but does not explicitly route the agent away from or toward any named sibling, so it stops short of the 5 bar.

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