Skip to main content
Glama

Domik u morya - Goa rentals

Compare rentals

compare_properties
Read-onlyIdempotent

Compare 2-5 places side by side by their ids from search_properties. Returns full details of each, a summary (cheapest per month and per night, closest to the beach, most bedrooms, most recently confirmed by the owner) and which amenities they share or only one has. Pass Copy price_context from the selected search results (they should be the same search context) to compare the same prices. Unknown prices remain null. Read-only.

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": {
      "ids": "<ids>"
    },
    "name": "compare_properties"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYesProperty ids, e.g. ['2665', '2701'].
max_priceNoCopy from the selected search results' price_context.max_price.
min_priceNoCopy from the selected search results' price_context.min_price.
stay_monthNoCopy from the selected search results' price_context.stay_month.
price_contextNoCopy the complete `price_context` object from a search result to preserve its original context.

Output Schema

NameRequiredDescriptionDefault
noteNo
errorNoSet instead of the result when the call failed.
itemsNo
summaryNoProperty id per criterion; null if no data.
not_foundNo
amenities_commonNo
amenities_uniqueNoProperty id -> amenities only it has.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / items / items / properties / hotel / properties / rooms / items / properties / booked
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Dates this room is taken, e.g. 13.02–13.03."
      +}
    • addedOutput schema / properties / items / items / properties / hotel / properties / rooms / items / properties / price_month_inr
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Set instead of price_night_inr when rooms are rented by the month."
      +}
  2. Changed1 schema field changed
    • changedOutput schema / properties / items / items / properties / free_from / description
      Previous value: -"ISO date the place is free from, if known."New value: +"ISO date the place is free from. Set = rented right now, frees up on this date (shown up to a month ahead, listed after places free today) — never call it available now."
  3. Changed14 schema fields changed
    • addedInput schema / properties / max_price
      Added value: +{
      +  "description": "Copy from the selected search results' price_context.max_price.",
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / min_price
      Added value: +{
      +  "description": "Copy from the selected search results' price_context.min_price.",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / price_context
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Copy the complete `price_context` object from a search result to preserve its original context.",
      +  "properties": {
      +    "max_price": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "min_price": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "stay_month": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    }
      +  },
      +  "type": "object"
      +}
    • addedInput schema / properties / stay_month
      Added value: +{
      +  "description": "Copy from the selected search results' price_context.stay_month.",
      +  "maximum": 12,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • changedOutput schema / properties / items / items / properties / description / description
      Previous value: -"Realtor's description; contacts removed."New value: +"Realtor's description in Russian; contacts removed."
    • addedOutput schema / properties / items / items / properties / description_en
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "The description in English; null if not translated yet."
      +}
    • addedOutput schema / properties / items / items / properties / price_context
      Added value: +{
      +  "description": "Copy these values into get_property or compare_properties to preserve the search price context.",
      +  "properties": {
      +    "max_price": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "min_price": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "stay_month": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    }
      +  },
      +  "required": [
      +    "stay_month",
      +    "min_price",
      +    "max_price"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / properties / items / items / properties / price_month_inr / description
      Previous value: -"Monthly rent for the requested month (or the base rent), INR."New value: +"Monthly rent in INR. Null when the requested period has no matching tariff."
    • addedOutput schema / properties / items / items / properties / price_note
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Set when the requested month has no listed price: say so, the realtor will quote it."
      +}
    • addedOutput schema / properties / items / items / properties / price_note_ru
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "The same in Russian, e.g. 'Цена на декабрь не указана'."
      +}
    • addedOutput schema / properties / items / items / properties / price_period
      Added value: +{
      +  "description": "Price period/source, e.g. 'December peak rate'. When the requested period has no tariff it ends with 'not listed'.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / items / items / properties / price_status
      Added value: +{
      +  "description": "listed means the returned amount is an explicit tariff for stay_month (or the legacy standard quote when no month was requested). unknown means no applicable monthly price is listed; tell the user the realtor will quote it (see price_note).",
      +  "enum": [
      +    "listed",
      +    "unknown"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / items / items / properties / stay_month
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Requested month, 1-12; null when no month was requested."
      +}
    • changedOutput schema / properties / items / items / required
      Previous value: -[
      -  "id",
      -  "url",
      -  "type",
      -  "location"
      -]New value: +[
      +  "id",
      +  "url",
      +  "type",
      +  "location",
      +  "price_month_inr",
      +  "price_period",
      +  "price_status",
      +  "stay_month",
      +  "price_context"
      +]
  4. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover readOnly, idempotent, non-destructive and closed-world, so the safety profile is set. The description contributes the null-price behavior, the contents of the generated summary, and the requirement that price_context come from a single search context — useful operational context beyond the annotations.

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 action and scope, then the return shape, then the price_context constraint and the null-price caveat. Dense but each clause carries information; the trailing 'Read-only' is redundant with readOnlyHint.

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 description needn't detail return values, yet it still sketches the summary contents and amenity diff. Combined with full schema coverage and annotations, an agent has enough to invoke it correctly; only explicit exclusion of the single-property alternative is missing.

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?

Adds meaning beyond the schema by explaining why price_context must be copied: it preserves the original search context so prices are compared on the same basis, and notes that unknown prices stay null. The schema already documents each field's origin, so this is reinforcement plus intent rather than brand-new information.

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 (compare) and resource (2-5 rentals by id), names the source of the ids (search_properties), and enumerates what comes back: full details, a comparison summary, and shared/exclusive amenities. This clearly separates it from get_property (single) and search_properties (discovery).

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?

Tells the agent to pass 2-5 ids drawn from search_properties and to carry over price_context from the same search so prices are comparable. Implicitly excludes the single-property case (get_property), but no explicit when-not statement is given.

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