Skip to main content
Glama

RentBuy.org

Sweep one or two inputs

rentbuy_sweep
Read-onlyIdempotent

Varies one input (or a grid of two) across a range and returns, for every point, the buyer-minus-renter net worth at year 30 after selling costs, the winner, both net worths and the break-even year, plus the interpolated crossover value where the winner flips for single-parameter sweeps. Give values[] or min, max and steps (2 to 50 per axis, at most 400 grid points). Other inputs come from "base" or the site defaults. Use it for sensitivity questions such as "at what rent does buying win?" or "how does the result change with the mortgage rate?".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
axisYes
baseNoInputs held fixed during the sweep.
secondAxisNoOptional second input for a grid.
oneTimeCostsNoUp to 20 one-time costs.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
metaYes
unitYes
pointsYesOne row per grid point; difference is buy minus rent at year 30 after selling costs.
crossoverYesSingle-parameter sweeps only: the interpolated value where the winner flips, or null.
parameterYes
secondUnitYes
secondParameterYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds real behavior beyond them: outputs are buyer-minus-renter net worth at year 30 after selling costs, interpolated crossover only exists for single-parameter sweeps, and the grid is capped at 50 steps per axis / 400 total grid points. It also discloses the fallback semantics ('other inputs come from base or the site defaults'), which the schema does not state.

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?

Four sentences, front-loaded with what the tool computes before stating input requirements and then use cases. The opening sentence is dense with output enumeration that partly duplicates the output schema, but nothing is filler and the ordering follows what an agent needs first.

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?

For a nested-object, two-axis sweep tool with an output schema and full safety annotations, the description supplies the missing glue: fallback defaults, grid limits, the values-vs-min/max mode, and the single-axis-only crossover. An agent has everything needed to invoke it correctly; return-value description is redundant given the output schema but harmless.

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?

With 75% schema coverage the baseline is 3, and the description earns above that by stating the either/or input mode ('give values[] or min, max and steps') and the 400-grid-point ceiling — relationships absent from the schema, which only bounds individual fields. It does not explain units or the parameter enum semantics, but those are already documented in the schema.

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?

Opens with a precise verb and scope — 'Varies one input (or a grid of two) across a range' — and enumerates exactly what it returns (net worth at year 30 after selling costs, winner, break-even year, crossover). The 'sensitivity questions such as ...' framing makes it clear this is not the single-scenario tool, so an agent can tell it apart from rentbuy_run_scenario and rentbuy_compare_scenarios without opening a schema.

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?

Gives explicit context with two concrete motivating questions ('at what rent does buying win?', 'how does the result change with the mortgage rate?'), which effectively routes the agent here rather than to run_scenario. It stops short of naming alternatives or stating when NOT to use it (e.g., for one-off single-point answers), so it is clear but not complete routing guidance.

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