Skip to main content
Glama

Acheter ou louer ? / Rent vs buy in a city

acheter_ou_louer
Read-onlyIdempotent

Call this when the user wonders whether to rent or buy in a Canadian city. Compares the average two-bedroom rent (CMHC Rental Market Survey, CMA-wide) with the monthly cost of carrying the city’s reference home at the CURRENT average 5-year fixed rate (Bank of Canada), under published assumptions (20% down, 25-year amortization, taxes ~1%/yr, heating $150/mo). Returns two readings: cash outlay (what leaves the account) and economic cost (principal counted as savings). Only cities inside a CMHC-covered metro have rent data.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
villeYesCity, e.g. "Montréal", "Toronto", "Winnipeg".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations cover the safety profile (read-only, idempotent, closed-world), and the description goes well beyond them: it names the data sources (CMHC RMS, Bank of Canada), lists the calculation assumptions (20% down, 25-year amortization, ~1%/yr taxes, $150/mo heating), and explains the two distinct output readings. This is rich behavioral disclosure.

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?

Front-loaded with the usage trigger, then data sources, assumptions, return shape, and limitation in dense but non-redundant sentences. Every sentence carries distinct information.

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 no output schema, the description carries the return-value burden and does so by describing the two readings (cash outlay vs. economic cost) and the coverage limitation. Nothing an agent needs to call or interpret the tool is missing.

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% with a single required "ville" parameter, so the schema already documents the input. The description adds nothing syntactic about the parameter, which is the correct baseline when the schema does the work.

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 decision-support purpose (rent vs. buy in a Canadian city) with the exact quantities compared — CMHC two-bedroom rent vs. carrying cost of the reference home. This clearly distinguishes it from data-only siblings like taux_courants and stats_marche.

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?

"Call this when the user wonders whether to rent or buy in a Canadian city" gives explicit triggering context, and the trailing note about CMHC-covered metros implies when the tool will not apply. It stops short of naming a sibling alternative for related questions.

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.