Skip to main content
Glama

Torgix Free Equipment Tools

Repair, rebuild or replace

repair_rebuild_or_replace
Read-onlyIdempotent

Decides whether to repair (or rebuild) a machine or replace it, by comparing cost per hour. The repair is priced by the hours it buys before the next major event. Uses the method on torgix.ai/learn/repair-rebuild-or-replace. Give the replacement either as a cost per hour or as a purchase price. For a rebuild, enter the rebuild cost and the much larger hours it buys.

Input Schema

NameRequiredDescriptionDefault
repair_costYesRepair or rebuild quote in US dollars
current_valueYesWhat the machine is worth today
hours_per_yearNoHours it runs per year (default 1,200)
hours_repair_buysYesHours the repair should run before the next major event (use the low end of the shop's range)
interest_rate_pctNoCost of capital, percent (default 8)
replacement_priceNoPurchase price of the replacement, if the cost per hour is not known
replacement_years_ownedNoYears you'd keep the replacement (default 7)
value_after_those_hoursYesWhat it would be worth after those hours
insurance_tax_storage_pctNoInsurance, taxes and storage percent (default 3)
replacement_cost_per_hourNoTotal cost per hour of the replacement, if known
replacement_residual_valueNoReplacement's expected resale value (default 30% of price)
current_operating_cost_per_hourYesWhat it costs to operate per hour today (fuel, repairs, wear)
replacement_operating_cost_per_hourNoReplacement's operating cost per hour (default: same as today's machine)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so safety needs no restating. The description adds real behavioral context the annotations cannot: the repair is priced by the hours it buys before the next major event, and the method is documented at a specific URL. It stops short of saying what the returned decision or numbers look like, which matters somewhat since no output schema exists.

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 that are front-loaded with the decision, then the pricing logic, then the two input patterns. Every sentence carries information; the URL reference is the only slightly self-serving element but it substantiates the method.

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?

For a 13-parameter analytical tool the description covers the two things an agent could plausibly get wrong: which replacement figure to supply and how rebuild differs from repair. The remaining gap is that with no output schema, the shape of the returned verdict and figures is never described.

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?

Schema coverage is 100%, so the 13 parameters are already documented and baseline would be 3. The description goes beyond the schema by explaining the relationship between replacement_cost_per_hour and replacement_price (give either) and the rebuild input pattern, which the schema lists as independent fields without stating they are mutually exclusive routes.

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 decision ('decides whether to repair (or rebuild) a machine or replace it') plus the criterion ('by comparing cost per hour'), so the agent knows exactly what it gets. It doesn't explicitly differentiate itself from the similar-sounding sibling equipment_cost_per_hour, which is the one confusion risk.

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 concrete usage conditions: supply the replacement 'either as a cost per hour or as a purchase price', and for a rebuild 'enter the rebuild cost and the much larger hours it buys'. That resolves the main input-selection ambiguity, though it never names an alternative tool or a case where you should not use it.

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