Skip to main content
Glama

MaCalculatriceEnLigne

Calculate Curtain Width

calculate_curtain_width
Read-onlyIdempotent

Compute total curtain width using a fullness factor (1.5-3.0×). Use for window dressing. Inputs: window width m, fullness ratio. Returns total fabric width. See list_bundles for related 'vie-quotidienne' calculators.

Input Schema

NameRequiredDescriptionDefault
fullnessNoFullnessstandard
window_cmYesWindow width cm

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

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive, and closed-world, so safety is covered. The description adds the fullness factor range (1.5-3.0x) and the return concept, but for a pure calculator that is modest added context beyond what structured data provides.

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?

Front-loaded with the core computation, short sentences, no filler. It reads slightly choppy and mixes input/return/sibling notes, but overall efficient and appropriately sized for a simple calculator.

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?

With an output schema present, the return need not be explained, and the description covers the purpose, inputs, and a cross-reference. It is adequate for a two-parameter calculator, the only gap being the conflicting unit/type statements versus the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema documents both parameters, but the description actively misaligns with it: it says 'window width m' while the schema field is window_cm in centimeters, and calls fullness a numeric 'ratio (1.5-3.0x)' while the schema defines it as a string enum (flat/standard/generous). This introduces unit and type confusion rather than adding meaning.

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?

States a specific verb and resource ('Compute total curtain width') with the domain qualifier 'window dressing'. It hints at related calculators but does not disambiguate from the close sibling calculate_curtain_fabric, which is arguably the most relevant alternative.

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?

'Use for window dressing' gives implied context, and it points to list_bundles for related tools. However, it never addresses when to use this versus the near-identical calculate_curtain_fabric or calculate_fabric_needed siblings, leaving real disambiguation 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.