Skip to main content
Glama

YUDOU · Shanghai Office Leasing Data

Calculate monthly and yearly rent

calculate_monthly_rent
Read-onlyIdempotent

按日租金单价与面积计算月租与年租(域豆口径:月租金 = 日单价 × 面积 × 365 ÷ 12;年租金 = 日单价 × 面积 × 365;物业费另算)。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "daily_rate": "<daily_rate>",
      "area": "<area>"
    },
    "name": "calculate_monthly_rent"
  }
}

Input Schema

NameRequiredDescriptionDefault
areaYes建筑面积(㎡,必填)
daily_rateYes日租金单价(元/㎡/天,必填)

Output Schema

NameRequiredDescriptionDefault
formulaNo
area_sqmNo
daily_rateNo
annual_rentYes
monthly_rentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "annual_rent": {
      +      "type": "integer"
      +    },
      +    "area_sqm": {
      +      "type": "number"
      +    },
      +    "daily_rate": {
      +      "type": "number"
      +    },
      +    "formula": {
      +      "type": "string"
      +    },
      +    "monthly_rent": {
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "monthly_rent",
      +    "annual_rent"
      +  ],
      +  "type": "object"
      +}
  2. Changed2 schema fields changed
    • changedInput schema / properties / area / description
      Previous value: -"㎡"New value: +"建筑面积(㎡,必填)"
    • changedInput schema / properties / daily_rate / description
      Previous value: -"元/㎡/天"New value: +"日租金单价(元/㎡/天,必填)"
  3. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, so safety needs no restating. The description adds genuinely new behavioral scope: 物业费另算 makes clear that property fees are excluded from the returned figures, and the embedded formulas reveal the exact computation behind the result.

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?

A single dense sentence that front-loads the purpose and then the two formulas, with the scope caveat last. No filler or redundant restatement of the tool name.

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 and both required parameters fully documented, the description only needs to add the calculation logic and scope note, which it does. Minor gaps such as rounding/precision of the returned amounts are left unstated but are not essential to correct invocation.

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 baseline is 3; the description goes beyond by showing how daily_rate and area are combined (× 365 ÷ 12 for monthly, × 365 for yearly), which tells the agent the expected units and the arithmetic relationship between inputs and outputs.

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 (calculate) and precise resource (monthly and yearly rent) and then pins down the exact formulas for both outputs, so an agent knows exactly what this tool computes rather than merely 'rent'. That formula-level specificity distinguishes it from valuation/advice siblings such as advise_net_rent or assess_price.

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?

The '域豆口径' note implies the convention under which this tool should be used, which is useful context, but the description never says when to pick this over a sibling or what prerequisites apply. Usage is inferable rather than stated.

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.