Skip to main content
Glama

MaCalculatriceEnLigne

Calculate Housing Aid

calculate_housing_aid
Read-onlyIdempotent

Estimate French housing aid (APL — Aide Personnalisee au Logement). Returns: {rent, rent_ceiling, estimated_apl, note}.

Input Schema

NameRequiredDescriptionDefault
rentYesMonthly rent in euros
city_zoneNoCity zone: 1 (Paris/IDF), 2 (large cities), 3 (rural)2
household_sizeNoNumber of people in household (1-6)

Output Schema

NameRequiredDescriptionDefault
resultNoComputed result. Object whose fields depend on the tool (e.g. {tax, marginal_rate, brackets} for tax tools, {volume_l, gallons} for volume tools).
sourceNoAuthoritative source for the rule or formula (e.g. "Article 197 CGI", "NF DTU 21").
formulaNoHuman-readable formula or method used (e.g. "I=P·r·t", "Magnus formula").
reference_urlNoLink to a calcul2 page documenting the calculation in detail.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare this is a safe, read-only, idempotent, closed-world computation, so the safety profile is fully covered. The description adds only the 'estimate' framing and names a 'note' field, which hints at caveats but does not explain the simplifications or the meaning of the returned note. With annotations doing the heavy lifting, a 3 is appropriate.

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?

Two short clauses, zero waste, and the core purpose is front-loaded before the return-shape mention. Every sentence earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema and annotations cover return values and safety, so little more is strictly required. However, for a French housing-aid estimator whose real-world calculation depends on household income, the description never flags that this is a simplified estimate with assumptions, leaving an agent unable to judge reliability.

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% (rent, city_zone with enum meaning, household_size range), so the schema already documents all three parameters. The description adds no parameter-level meaning beyond that, which is the correct baseline when the schema is complete.

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 (Estimate) and a specific resource (French housing aid / APL), with the French expansion spelled out. It is easily distinguished from the large sibling set, including other French benefit calculators like calculate_prime_activite or calculate_pinel_tax_reduction.

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

Usage Guidelines2/5

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

The description gives no when-to-use context, no eligibility prerequisites (income, tenant status), and no indication of how it differs from neighboring French-aid tools. The reader only knows what it computes, not when it is the right tool.

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.