Skip to main content
Glama

check cn rental contract deposit

check_cn_rental_contract_deposit
Read-onlyIdempotent

China mainland residential lease check: lease term over 20 years is void beyond 20 (民法典 第705条), leases of 6 months or more need a written contract (第707条), the deposit amount and return time must be written in the contract (住房租赁条例 第10条・第12条, in force 2025-09-15), and notice rules for ending an open-term lease (第730条). City-level rules are not computed. China mainland (gov.cn, 民法典), as of 2026-11-21. General information and estimates only: no legal advice, no representation, no filing; values that could not be verified are flagged in the result, not computed.

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": {
      "termMonths": "<termMonths>",
      "written": "<written>",
      "deposit": "<deposit>",
      "rent": "<rent>"
    },
    "name": "check_cn_rental_contract_deposit"
  }
}

Input Schema

NameRequiredDescriptionDefault
rentYesMonthly rent (CNY)
depositYesDeposit (CNY)
writtenYesThere is a written contract
returnDaysNoDays for returning the deposit written in the contract
termMonthsYesLease term in months

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description goes beyond them with genuinely non-obvious behavior: unverifiable values are 'flagged in the result, not computed' rather than guessed, the reference date is pinned (as of 2026-11-21), and it disclaims legal advice, representation and filing. What it doesn't describe is the shape of the verdict (pass/fail per rule vs. narrative), which keeps it off a 5.

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?

It is front-loaded with the tool's purpose and every clause carries a distinct rule, jurisdiction, or disclaimer, with no filler. The downside is that the first sentence is a long run-on clause chain punctuated by parenthetical citations, which is harder to parse than a bulleted or segmented structure. Dense but not wasteful.

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?

Five flat parameters, no output schema, and annotations that already establish it as a safe pure computation — the description supplies the rule set, the jurisdictional and temporal scope, the exclusion for city-level rules, and how unverified values surface in the result. An agent has what it needs to invoke and interpret it. It would be a 5 with an explicit note on the form of the returned findings.

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 a 3 is the floor, but the description maps legal meaning onto specific parameters: termMonths decides the 20-year void rule and the 6-month written-form trigger, written feeds 第707条, and deposit/returnDays feed the 第10条・第12条 disclosure rule. Only 'rent' goes unaddressed, and the description adds rule semantics the schema's terse unit labels ('Lease term in months') do not convey.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/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 ('China mainland residential lease check') and enumerates the exact rule classes it tests: 20-year term cap (第705条), written-form requirement for 6+ months (第707条), deposit amount/return time disclosure (第10条・第12条), and open-term notice (第730条). Jurisdiction is stated twice ('China mainland', 'gov.cn, 民法典'), which implicitly separates it from the JP/TW/KR/UK/US deposit-check siblings. It stops short of explicitly contrasting with a named sibling tool, so it lands at 4 rather than 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage context is implied by the jurisdiction and rule list — you call it to screen a mainland China residential lease — and one exclusion is stated ('City-level rules are not computed'). However, there is no explicit when-to-use framing, no statement of what inputs make the check meaningful, and no routing to an alternative tool for city-level or non-residential matters. Adequate but leaves the agent to infer selection conditions.

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.