landfeedAPI · MCP · 2.1.0Agent Markdown

MCP tool: watch

Obserwacja zmian

Description (verbatim)

Zarządzaj obserwowanymi obszarami. Dodatkowy narysowany obszar: 10 kredytów miesięcznie.

Cost and binding

x-request-cost: 0 requests per call.

REST binding: POST /v1/watches/pl.

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.

FieldRequiredSchema / constraintsDescription
kindsyes{"$anchor": "j", "items": {"$ref": "#W"}, "maxItems": 7, "minItems": 1, "type": "array", "uniqueItems": true}not specified in the source contract
targetsyes{"$anchor": "c", "items": {"$ref": "#/$defs/aq"}, "maxItems": 100, "minItems": 1, "type": "array"}not specified in the source contract
titleno{"$anchor": "f", "maxLength": 256, "minLength": 1, "type": "string"}not specified in the source contract
{
  "inputSchema": {
    "$ref": "#a",
    "additionalProperties": false,
    "properties": {
      "kinds": {
        "$ref": "#j",
        "items": {
          "$ref": "#W"
        },
        "maxItems": 7,
        "minItems": 1
      },
      "targets": {
        "$ref": "#c",
        "items": {
          "$ref": "#/$defs/aq"
        },
        "maxItems": 100,
        "minItems": 1
      },
      "title": {
        "$ref": "#f"
      }
    },
    "required": [
      "targets",
      "kinds"
    ]
  }
}

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": "watch_create_v5"
        }
      }
    },
    "result": {
      "anyOf": [
        {
          "$ref": "#a",
          "additionalProperties": false,
          "properties": {
            "areas": {
              "$ref": "#c",
              "items": {
                "$ref": "#a",
                "additionalProperties": false,
                "minProperties": 2,
                "properties": {
                  "id": {
                    "$ref": "#b",
                    "pattern": "^[0-9]{1,19}$"
                  },
                  "polygon": {
                    "$ref": "#Z"
                  }
                }
              },
              "maxItems": 10000
            },
            "created_at": {
              "$ref": "#o"
            },
            "id": {
              "$ref": "#f"
            },
            "kinds": {
              "$ref": "#c",
              "items": {
                "$ref": "#W"
              },
              "maxItems": 7
            },
            "state": {
              "enum": [
                "active",
                "paused"
              ]
            },
            "targets": {
              "$ref": "#c",
              "items": {
                "$ref": "#/$defs/aq"
              },
              "maxItems": 100
            }
          },
          "required": [
            "id",
            "targets",
            "kinds",
            "state",
            "created_at"
          ]
        },
        {
          "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

{}

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 POST "https://api.landfeed.pl/v1/watches/pl" \
  -H "X-Api-Key: ${LANDFEED_API_KEY}" \
  -H 'Content-Type: application/json' \
  --data '{"targets": [{"kind": "drawn_area", "polygon": {"type": "Polygon", "coordinates": [[[21, 52], [21.001, 52], [21.001, 52.001], [21, 52.001], [21, 52]]]}}], "kinds": ["parcel_split"], "title": "Okolica"}'

MCP transport invocation: not specified in the source contract.