MCP tool: comparables
Transakcje porównawcze
Description (verbatim)
Odczytaj płatne porównania RCN. Bez potwierdzonego dostępu wiersze pozostają niedostępne.
Cost and binding
x-request-cost: 1 request per call.
REST binding: GET /v1/comparables.
Inputs
Dokładnie jeden z parametrów q, id, point (lat i lng razem liczą się jako point). Wszystkie punkty odczytu API i wszystkie narzędzia obsługują te trzy warianty.
| Field | Required | Schema / constraints | Description |
|---|---|---|---|
area_band | no | {"$anchor": "a", "additionalProperties": false, "minProperties": 1, "properties": {"max": {"$ref": "#n"}, "min": {"$ref": "#n"}}, "type": "object"} | not specified in the source contract |
cursor | no | {"$anchor": "f", "maxLength": 256, "minLength": 1, "type": "string"} | not specified in the source contract |
id | yes | {"$anchor": "s", "maxLength": 100, "pattern": "^\\s*[0-9]{6}[._][0-9]\\.[0-9]{1,4}\\.[0-9A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u024F_./ -]{0,63}[0-9A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u024F_./-]\\s*$", "type": "string"} | not specified in the source contract |
kind | no | {"enum": ["land", "built_land", "agricultural", "forest", "other", "unknown"]} | not specified in the source contract |
limit | no | {"$anchor": "t", "maximum": 100, "minimum": 1, "type": "integer"} | not specified in the source contract |
market | no | {"enum": ["primary", "secondary", "unknown"]} | not specified in the source contract |
months | no | {"$anchor": "t", "maximum": 120, "minimum": 1, "type": "integer"} | not specified in the source contract |
radius_m | no | {"$anchor": "t", "maximum": 10000, "minimum": 1, "type": "integer"} | not specified in the source contract |
right | no | {"enum": ["ownership", "perpetual_usufruct", "other", "unknown"]} | not specified in the source contract |
{
"inputSchema": {
"$ref": "#a",
"additionalProperties": false,
"properties": {
"area_band": {
"$ref": "#a",
"additionalProperties": false,
"minProperties": 1,
"properties": {
"max": {
"$ref": "#n"
},
"min": {
"$ref": "#n"
}
}
},
"cursor": {
"$ref": "#f"
},
"id": {
"$ref": "#s"
},
"kind": {
"$ref": "#/$defs/ay"
},
"limit": {
"$ref": "#t",
"maximum": 100
},
"market": {
"enum": [
"primary",
"secondary",
"unknown"
]
},
"months": {
"$ref": "#t",
"maximum": 120
},
"radius_m": {
"$ref": "#t",
"maximum": 10000
},
"right": {
"$ref": "#/$defs/aF"
}
},
"required": [
"id"
]
}
}
Structured results
Tools return structuredContent (JSON) using canonical definitions in envelope.json.
MCP tools share the published REST operations, evidence and billing contracts. Catalog-local definitions describe their structured input and output.
{
"$ref": "#m",
"properties": {
"meta": {
"properties": {
"operation": {
"const": "comparables"
}
}
},
"result": {
"anyOf": [
{
"$ref": "#a",
"additionalProperties": false,
"allOf": [
{
"else": {
"not": {
"required": [
"withheld_reason"
]
}
},
"if": {
"properties": {
"state": {
"const": "rows_withheld"
}
}
},
"then": {
"required": [
"withheld_reason"
]
}
}
],
"if": {
"properties": {
"state": {
"enum": [
"empty",
"not_covered",
"rows_withheld"
]
}
}
},
"patternProperties": {
"^(not|referenc)e$(?!\\s)": {
"$ref": "#f"
}
},
"properties": {
"as_of": {
"$ref": "#a",
"additionalProperties": false,
"patternProperties": {
"^[0-9]{4}$": {
"$ref": "#a",
"additionalProperties": false,
"minProperties": 4,
"properties": {
"copied_at": {
"$ref": "#o"
},
"rcn_version_date": {
"$ref": "#g"
},
"source_date": {
"$ref": "#p"
},
"unknown_version_deeds": {
"$ref": "#k"
}
}
}
}
},
"counts": {
"$ref": "#S",
"additionalProperties": false,
"minProperties": 3,
"patternProperties": {
"^(excluded_non_market|rows_(found|with_unit_price))$(?!\\s)": {
"$ref": "#k"
}
}
},
"page": {
"$ref": "#X"
},
"rows": {
"$ref": "#c",
"items": {
"$ref": "#/$defs/ComparablesRowV5"
},
"maxItems": 100
},
"state": {
"enum": [
"ready",
"empty",
"not_covered",
"rows_withheld"
]
},
"withheld_reason": {
"enum": [
"plan",
"disabled"
]
}
},
"required": [
"state",
"rows",
"page",
"reference",
"note"
],
"then": {
"properties": {
"rows": {
"maxItems": 0
}
}
}
},
{
"type": "null"
}
]
}
}
}
Shared catalog-local $defs are published once in MCP catalogue. See Envelope and the bound operation for responses.
Server instructions (verbatim)
Podawaj źródło, datę i zakres danych. Nie zapewniaj o bezpieczeństwie, braku zagrożeń przy brakujących danych ani o prawie do zabudowy. Rozróżniaj plan ogólny i MPZP oraz ich stan prawny. Kandydatów wybiera użytkownik. Bez danych tożsamości i KW. Wiersze RCN: konto płatne, poza okresem próbnym i testowym, LANDFEED_RCN_ROWS=on.
Annotations
{
"readOnlyHint": true
}
Coverage states
Cztery stany zakresu danych dla jednej kategorii w danym miejscu. covered: źródło obejmuje to miejsce i zawiera rekord; value zawiera ten rekord. covered_no_data: źródło obejmuje to miejsce, lecz nie zawiera rekordu; value ma określoną dla danej kategorii pustą wartość (false, 0, [], none), nigdy null; jest to potwierdzony brak rekordu, za który naliczana jest opłata. not_covered: źródło nie obejmuje miejsca albo państwo nie publikuje tych danych w postaci do odczytu maszynowego; value=null, agent nie może wyciągać wniosków, a opłata jest zwracana, gdy zapytanie dotyczy tych danych. not_computed: posiadamy źródło, lecz nie obliczyliśmy jeszcze wyniku dla tego miejsca, np. trwa ładowanie zbioru; value=null, opłata jest zwracana. Każdy stan zawiera uwagę napisaną prostym językiem.
States: covered | covered_no_data | not_covered | not_computed.
LayerAnswer required fields: layer, coverage, value, note, source, as_of, layer_version.
Billing rule
Koszt żądania. charged: liczba naliczonych wywołań po zwrotach. refunded: liczba wywołań naliczonych, a następnie zwróconych. rule: zastosowana reguła. Płatne są odpowiedzi, potwierdzone braki rekordów (covered_no_data) i niejednoznaczne listy kandydatów. Bezpłatne są błędne dane wejściowe (400), brak uwierzytelnienia (401), odpowiedzi bez zmiany danych (304) i operacje bezpłatne. Zwrot obejmuje pozostałe 4xx, każde 5xx, status not_covered oraz odpowiedź dotyczącą jednej kategorii ze stanem not_covered lub not_computed. W operacjach zbiorczych liczby dotyczą poszczególnych elementów.
Rule values: charged | free_operation | free_invalid_input | free_unauthorized | free_not_modified | free_idempotency_replay | refunded_client_error | refunded_server_error | refunded_not_covered | refunded_not_computed | batch_mixed | free_record_reuse.
curl example of the REST binding
curl --silent --show-error --request GET "https://api.landfeed.pl/v1/comparables" --get \
-H "X-Api-Key: ${LANDFEED_API_KEY}" \
-H 'Idempotency-Key: docs-example-001' \
--data-urlencode 'id=141803_2.0001.12/3'
MCP transport invocation: not specified in the source contract.