Skip to main content
Glama

Daily apartment rent for a room size and what you keep in it

calculate_apartment_rent
Read-onlyIdempotent

[Game reference] Daily apartment rent for a room size and what you keep in it. The game's formula: max(minimum rent, sum(tax per stack x amount / stack size) x apartment.rentscaling) scrap per real day, taken continuously from the room's upkeep terminal; evicted after eviction_after_s unpaid. Vanilla apartment.rentscaling is 0, so rent is the room's minimum unless the server raised it. Link https://rust.wiki/apartments.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "calculate_apartment_rent"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeNo1 small, 2 medium, 3 large.
itemsNoComma-separated `shortname:amount` you store in the room or carry nearby, e.g. `sulfur:5000,metal.fragments:10000`.
rent_scalingNoOverride apartment.rentscaling (the server's value; vanilla 0).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent and non-destructive, so safety is covered. The description contributes real behavior beyond that: rent is 'taken continuously from the room's upkeep terminal' and the player is 'evicted after eviction_after_s unpaid', which is genuinely useful simulation context. It stops short of describing the response shape or how the continuous deduction interacts with the returned per-day figure, and eviction_after_s is referenced without being an input, which is mildly confusing.

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 purpose, then formula, then the practical vanilla-scaling caveat, then a reference link. Dense but every clause carries meaning; the embedded formula and eviction variable are slightly technical but appropriate for a calculator tool.

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?

No output schema exists, and the description compensates by naming the unit of the result ('scrap per real day') and the deduction mechanism. For a 3-parameter read-only calculator with full schema coverage, this is close to complete; only the exact return object shape is left unstated.

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

Parameters5/5

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

Schema coverage is 100%, so baseline would be 3, but the description earns more: it explains that rent_scaling is an override of the server's value and that vanilla 0 means rent collapses to the minimum, which is exactly the semantic an agent needs to decide whether to pass the parameter at all. 'What you keep in it' also frames the items parameter as stored/nearby inventory content.

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+resource ('Daily apartment rent for a room size and what you keep in it') and even gives the exact game formula, so the agent knows precisely what is computed. It does not explicitly contrast itself with the similarly-named calculate_upkeep sibling, which is the main thing keeping this from a 5, but the 'apartment' framing is distinctive enough to route correctly.

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?

Usage is implied rather than stated: the agent can infer it should call this when it wants apartment rent, and the note that 'vanilla apartment.rentscaling is 0, so rent is the room's minimum unless the server raised it' tells it when the result will be trivial. There is no explicit when-to-use/when-not, and no alternative (e.g. upkeep vs apartment rent) is named despite calculate_upkeep being a plausible confusion point.

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