Skip to main content
Glama

Compare options

compare_options
Read-onlyIdempotent

Compare the net cost of breaking the lease vs subletting vs staying to term, ranked cheapest first with notes, risks and assumptions. Use when the user is deciding how to leave a lease. Do NOT use for the itemised break-cost breakdown alone - use estimate_break_cost.

Input Schema

NameRequiredDescriptionDefault
depositNoSecurity deposit held by the landlord, non-negative amount, e.g. 2200. Default 0
currencyNoISO 4217 currency code used only to label amounts, e.g. USD, GBP, EUR. Default USD
monthly_rentYesCurrent monthly rent as a positive number in the lease currency, e.g. 2200
notice_monthsNoNotice period required by the lease, in months, e.g. 2; cannot exceed months_remaining. Default 2 (capped at months_remaining) if no break fee, else 0
reletting_feeNoFixed re-letting/advertising/cleaning fee stated in the lease, non-negative amount, e.g. 300. Default 0
break_fee_monthsNoEarly-termination (break) fee stated in the lease, in months' rent, e.g. 2. Default 0 = no break clause
months_remainingYesMonths left on the lease including the current month, positive number, e.g. 7
landlord_mitigatesNoWhether the landlord must try to re-let and offset rent (duty to mitigate). Default true; false = liable for all remaining rent
sublet_discount_pctNoPercent below full rent a subtenant would pay, 0 to under 100, e.g. 15 for 15%. Default 15
expected_relet_monthsNoExpected months until a replacement tenant moves in, e.g. 0.5 for about two weeks. Default 1
sublet_vacancy_monthsNoMonths the unit sits empty before a subtenant starts paying, non-negative, e.g. 1. Default 1

Output Schema

NameRequiredDescriptionDefault
optionsYesThe three exit options sorted by net_cost, cheapest first
cheapestYesIdentifier of the lowest-cost option
currencyYesCurrency code the amounts are labelled in
disclaimerYesInformational, not-legal-advice disclaimer to show with the result
assumptionsYesAssumptions applied (sublet discount, vacancy, deposit handling)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / notice_months / description
      Previous value: -"Notice period required by the lease, in months, e.g. 2; cannot exceed months_remaining. Default 2 if no break fee, else 0"New value: +"Notice period required by the lease, in months, e.g. 2; cannot exceed months_remaining. Default 2 (capped at months_remaining) if no break fee, else 0"
    • changedOutput schema / properties / options / items / properties / net_cost / description
      Previous value: -"Net cost of this option over the remaining lease"New value: +"Net cost of this option over the remaining lease, after crediting the deposit (capped at the option cost)"
  2. Changed20 schema fields changed
    • changedInput schema / properties / break_fee_months / description
      Previous value: -"Early-termination fee in months' rent"New value: +"Early-termination (break) fee stated in the lease, in months' rent, e.g. 2. Default 0 = no break clause"
    • changedInput schema / properties / currency / description
      Previous value: -"Currency code in ISO 4217 format"New value: +"ISO 4217 currency code used only to label amounts, e.g. USD, GBP, EUR. Default USD"
    • changedInput schema / properties / deposit / description
      Previous value: -"Initial deposit amount as a number"New value: +"Security deposit held by the landlord, non-negative amount, e.g. 2200. Default 0"
    • changedInput schema / properties / expected_relet_months / description
      Previous value: -"Expected months to relett the property as a number"New value: +"Expected months until a replacement tenant moves in, e.g. 0.5 for about two weeks. Default 1"
    • changedInput schema / properties / landlord_mitigates / description
      Previous value: -"True if landlord mitigates damages, false otherwise"New value: +"Whether the landlord must try to re-let and offset rent (duty to mitigate). Default true; false = liable for all remaining rent"
    • changedInput schema / properties / monthly_rent / description
      Previous value: -"Monthly rent"New value: +"Current monthly rent as a positive number in the lease currency, e.g. 2200"
    • changedInput schema / properties / months_remaining / description
      Previous value: -"Months left on the lease (including the current one)"New value: +"Months left on the lease including the current month, positive number, e.g. 7"
    • changedInput schema / properties / notice_months / description
      Previous value: -"Number of months' notice required to terminate the lease"New value: +"Notice period required by the lease, in months, e.g. 2; cannot exceed months_remaining. Default 2 if no break fee, else 0"
    • changedInput schema / properties / reletting_fee / description
      Previous value: -"Fee for reletting the property as a number"New value: +"Fixed re-letting/advertising/cleaning fee stated in the lease, non-negative amount, e.g. 300. Default 0"
    • changedInput schema / properties / sublet_discount_pct / description
      Previous value: -"Percentage discount on rent when subletting, as a number 0-100"New value: +"Percent below full rent a subtenant would pay, 0 to under 100, e.g. 15 for 15%. Default 15"
    • changedInput schema / properties / sublet_vacancy_months / description
      Previous value: -"Number of months the property may be vacant while subletting"New value: +"Months the unit sits empty before a subtenant starts paying, non-negative, e.g. 1. Default 1"
    • addedOutput schema / properties / assumptions
      Added value: +{
      +  "description": "Assumptions applied (sublet discount, vacancy, deposit handling)",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • removedOutput schema / properties / break_lease
      Removed value: -{
      -  "description": "Details about breaking the lease",
      -  "properties": {
      -    "break_fee": {
      -      "description": "Early-termination fee",
      -      "type": "number"
      -    },
      -    "notice_cost": {
      -      "description": "Cost associated with giving notice",
      -      "type": "number"
      -    },
      -    "reletting_fee": {
      -      "description": "Fee for finding a new tenant",
      -      "type": "number"
      -    },
      -    "remaining_rent": {
      -      "description": "Rent for the remaining months",
      -      "type": "number"
      -    },
      -    "risks": {
      -      "description": "Potential risks associated with breaking the lease",
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "total_cost": {
      -      "description": "Total cost of breaking the lease",
      -      "type": "number"
      -    }
      -  },
      -  "required": [
      -    "total_cost",
      -    "break_fee",
      -    "notice_cost",
      -    "reletting_fee",
      -    "remaining_rent",
      -    "risks"
      -  ],
      -  "type": "object"
      -}
    • addedOutput schema / properties / cheapest
      Added value: +{
      +  "description": "Identifier of the lowest-cost option",
      +  "enum": [
      +    "break_lease",
      +    "sublet",
      +    "stay"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / currency
      Added value: +{
      +  "description": "Currency code the amounts are labelled in",
      +  "type": "string"
      +}
    • addedOutput schema / properties / disclaimer
      Added value: +{
      +  "description": "Informational, not-legal-advice disclaimer to show with the result",
      +  "type": "string"
      +}
    • addedOutput schema / properties / options
      Added value: +{
      +  "description": "The three exit options sorted by net_cost, cheapest first",
      +  "items": {
      +    "properties": {
      +      "net_cost": {
      +        "description": "Net cost of this option over the remaining lease",
      +        "type": "number"
      +      },
      +      "note": {
      +        "description": "One-line explanation of how the cost arises",
      +        "type": "string"
      +      },
      +      "option": {
      +        "description": "Option identifier",
      +        "enum": [
      +          "break_lease",
      +          "sublet",
      +          "stay"
      +        ],
      +        "type": "string"
      +      },
      +      "risks": {
      +        "description": "Risks to check before choosing this option",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "option",
      +      "net_cost",
      +      "note",
      +      "risks"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • removedOutput schema / properties / stay_to_term
      Removed value: -{
      -  "description": "Details about staying to the end of the lease term",
      -  "properties": {
      -    "remaining_rent": {
      -      "description": "Rent for the remaining months",
      -      "type": "number"
      -    },
      -    "risks": {
      -      "description": "Potential risks associated with staying to the end of the lease term",
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "total_cost": {
      -      "description": "Total cost of staying to the end of the lease term",
      -      "type": "number"
      -    }
      -  },
      -  "required": [
      -    "total_cost",
      -    "remaining_rent",
      -    "risks"
      -  ],
      -  "type": "object"
      -}
    • removedOutput schema / properties / sublet
      Removed value: -{
      -  "description": "Details about subletting the lease",
      -  "properties": {
      -    "risks": {
      -      "description": "Potential risks associated with subletting",
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "sublet_discount": {
      -      "description": "Discount applied to the sublet rent",
      -      "type": "number"
      -    },
      -    "sublet_income": {
      -      "description": "Income from subletting",
      -      "type": "number"
      -    },
      -    "total_cost": {
      -      "description": "Total cost of subletting",
      -      "type": "number"
      -    },
      -    "vacancy_cost": {
      -      "description": "Cost associated with vacancy months",
      -      "type": "number"
      -    }
      -  },
      -  "required": [
      -    "total_cost",
      -    "sublet_income",
      -    "sublet_discount",
      -    "vacancy_cost",
      -    "risks"
      -  ],
      -  "type": "object"
      -}
    • changedOutput schema / required
      Previous value: -[
      -  "break_lease",
      -  "sublet",
      -  "stay_to_term"
      -]New value: +[
      +  "currency",
      +  "options",
      +  "cheapest",
      +  "assumptions",
      +  "disclaimer"
      +]
  3. Changed8 schema fields changed
    • addedInput schema / properties / currency / description
      Added value: +"Currency code in ISO 4217 format"
    • addedInput schema / properties / deposit / description
      Added value: +"Initial deposit amount as a number"
    • addedInput schema / properties / expected_relet_months / description
      Added value: +"Expected months to relett the property as a number"
    • addedInput schema / properties / landlord_mitigates / description
      Added value: +"True if landlord mitigates damages, false otherwise"
    • addedInput schema / properties / notice_months / description
      Added value: +"Number of months' notice required to terminate the lease"
    • addedInput schema / properties / reletting_fee / description
      Added value: +"Fee for reletting the property as a number"
    • addedInput schema / properties / sublet_discount_pct / description
      Added value: +"Percentage discount on rent when subletting, as a number 0-100"
    • addedInput schema / properties / sublet_vacancy_months / description
      Added value: +"Number of months the property may be vacant while subletting"
  4. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "break_lease": {
      +      "description": "Details about breaking the lease",
      +      "properties": {
      +        "break_fee": {
      +          "description": "Early-termination fee",
      +          "type": "number"
      +        },
      +        "notice_cost": {
      +          "description": "Cost associated with giving notice",
      +          "type": "number"
      +        },
      +        "reletting_fee": {
      +          "description": "Fee for finding a new tenant",
      +          "type": "number"
      +        },
      +        "remaining_rent": {
      +          "description": "Rent for the remaining months",
      +          "type": "number"
      +        },
      +        "risks": {
      +          "description": "Potential risks associated with breaking the lease",
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "total_cost": {
      +          "description": "Total cost of breaking the lease",
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "total_cost",
      +        "break_fee",
      +        "notice_cost",
      +        "reletting_fee",
      +        "remaining_rent",
      +        "risks"
      +      ],
      +      "type": "object"
      +    },
      +    "stay_to_term": {
      +      "description": "Details about staying to the end of the lease term",
      +      "properties": {
      +        "remaining_rent": {
      +          "description": "Rent for the remaining months",
      +          "type": "number"
      +        },
      +        "risks": {
      +          "description": "Potential risks associated with staying to the end of the lease term",
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "total_cost": {
      +          "description": "Total cost of staying to the end of the lease term",
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "total_cost",
      +        "remaining_rent",
      +        "risks"
      +      ],
      +      "type": "object"
      +    },
      +    "sublet": {
      +      "description": "Details about subletting the lease",
      +      "properties": {
      +        "risks": {
      +          "description": "Potential risks associated with subletting",
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "sublet_discount": {
      +          "description": "Discount applied to the sublet rent",
      +          "type": "number"
      +        },
      +        "sublet_income": {
      +          "description": "Income from subletting",
      +          "type": "number"
      +        },
      +        "total_cost": {
      +          "description": "Total cost of subletting",
      +          "type": "number"
      +        },
      +        "vacancy_cost": {
      +          "description": "Cost associated with vacancy months",
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "total_cost",
      +        "sublet_income",
      +        "sublet_discount",
      +        "vacancy_cost",
      +        "risks"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "break_lease",
      +    "sublet",
      +    "stay_to_term"
      +  ],
      +  "type": "object"
      +}
  5. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive safety, but the description adds output-shaping behavior the annotations cannot convey: results are net-cost comparisons ranked cheapest-first and include qualitative notes, risks and assumptions. That tells the agent this is an advisory decision tool, not just a calculator.

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 sentences, front-loaded with the comparison scope, then the usage trigger, then the exclusion. Every clause earns its place; there is no restatement of the title or filler.

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?

With a full schema (100% coverage) and an output schema present, the description does not need to enumerate parameters or return fields. It covers purpose, decision context, the routing alternative, and the qualitative nature of the output, which is everything needed to invoke 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% across all 11 parameters, so defaults, units and constraints (e.g. notice_months capped at months_remaining, sublet_discount_pct range) are already fully documented. The description adds no parameter-level meaning beyond the schema, so the baseline of 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 (compare) and a precise set of resources (breaking vs subletting vs staying to term), and adds the shape of the result (net cost, ranked cheapest first, with notes, risks and assumptions). It also names the sibling it is not (estimate_break_cost), so an agent can route 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?

Gives an explicit trigger ('Use when the user is deciding how to leave a lease') plus an explicit exclusion ('Do NOT use for the itemised break-cost breakdown alone') and names the correct alternative (estimate_break_cost). Both the when and the when-not are stated, leaving nothing to inference.

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