{
    "schema_version": "1.1.0",
    "status": "pilot",
    "service": "A-102 Geodata",
    "endpoint": "https://a-102.ru/mcp",
    "transport": "streamable-http-json",
    "protocol_versions": [
        "2026-07-28",
        "2025-11-25",
        "2025-06-18",
        "2025-03-26"
    ],
    "authentication": {
        "current": "X-API-Key; one key per integration; keep it in a protected client secret store",
        "source_binding": "mcp",
        "oauth": "not_implemented"
    },
    "execution": {
        "enabled_by_default": false,
        "operator_setting": "mcp_agent_tools_enabled",
        "anonymous_trial_enabled_by_default": true,
        "trial_operator_setting": "mcp_agent_trial_enabled",
        "trial_calls": 3,
        "trial_window_days": 30,
        "trial_points_per_call": 1
    },
    "wallet": {
        "operator_setting": "api_wallet_enabled",
        "unit": "elevation_point_or_profile_sample",
        "request_budget_field": "max_cost_units",
        "request_id_field": "request_id",
        "idempotency_scope": "account_shared_REST_MCP",
        "result_ttl_hours": 24,
        "trial_units": 1000,
        "trial_days": 7,
        "packages": "https://a-102.ru/api-elevation.php"
    },
    "limits": {
        "body_bytes": 131072,
        "protocol_requests_per_ip_per_minute": 120,
        "account_rate_and_units_per_minute": "shared across account keys; limited by current account package",
        "actual_points_and_distance": "limited by current account package",
        "global_concurrent_calculations": 4,
        "busy_pool": "429 Retry-After; no waiting queue"
    },
    "instructions": "A-102 read-only terrain elevation tools. Coordinates: WGS 84 latitude/longitude; heights: metres. DEM resolution is not vertical accuracy. Check returned DEM tier. Account calculations use shared package units: one point/sample is one unit. Paid execution requires request_id and max_cost_units; quote_only estimates without a charge. Reuse the same request_id for retry/recovery: a completed request is not charged twice. A new request served from cache still counts. Do not split requests to evade limits. Never request passwords, cookies, admin access or secret keys in conversation. No LOS, buildings, exports, purchases or account mutations are exposed as MCP tools. Registered tool execution and anonymous trials have independent operator controls; discovery is not proof that execution is enabled.",
    "tools": [
        {
            "name": "elevation_lookup",
            "title": "Высоты по координатам",
            "description": "Возвращает высоту местности в метрах. Если оператор включил анонимную пробу: 3 вызова за 30 дней с одного сетевого источника, по одной координате за вызов. С ключом можно передавать пакет координат в пределах тарифа. Порядок полей: latitude/longitude WGS 84.",
            "inputSchema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                    "locations": {
                        "type": "array",
                        "minItems": 1,
                        "maxItems": 5000,
                        "items": {
                            "type": "object",
                            "properties": {
                                "latitude": {
                                    "type": "number",
                                    "minimum": -90,
                                    "maximum": 90
                                },
                                "longitude": {
                                    "type": "number",
                                    "minimum": -180,
                                    "maximum": 180
                                }
                            },
                            "required": [
                                "latitude",
                                "longitude"
                            ],
                            "additionalProperties": false
                        }
                    },
                    "request_id": {
                        "type": "string",
                        "minLength": 8,
                        "maxLength": 96,
                        "description": "Stable idempotency ID required for paid/account calls. Reuse for retries."
                    },
                    "max_cost_units": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 1200000,
                        "description": "Maximum account units authorized for this call; required for execution."
                    },
                    "quote_only": {
                        "type": "boolean",
                        "description": "Estimate units and eligibility without calculation or charge."
                    }
                },
                "required": [
                    "locations"
                ],
                "additionalProperties": false
            },
            "outputSchema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "oneOf": [
                    {
                        "type": "object",
                        "required": [
                            "ok",
                            "dem",
                            "usage",
                            "points"
                        ],
                        "properties": {
                            "ok": {
                                "const": true
                            },
                            "dem": {
                                "type": "object",
                                "required": [
                                    "provider",
                                    "dataset",
                                    "dem_tier",
                                    "resolution_m"
                                ],
                                "properties": {
                                    "provider": {
                                        "type": "string"
                                    },
                                    "dataset": {
                                        "type": "string"
                                    },
                                    "dem_tier": {
                                        "type": "string"
                                    },
                                    "resolution_m": {
                                        "type": [
                                            "number",
                                            "null"
                                        ]
                                    }
                                },
                                "additionalProperties": false
                            },
                            "usage": {
                                "type": "object",
                                "required": [
                                    "cost_units"
                                ],
                                "properties": {
                                    "cost_units": {
                                        "type": "integer",
                                        "minimum": 0
                                    }
                                }
                            },
                            "points": {
                                "type": "array",
                                "minItems": 1,
                                "maxItems": 5000,
                                "items": {
                                    "type": "object",
                                    "required": [
                                        "index",
                                        "latitude",
                                        "longitude",
                                        "elevation_m"
                                    ],
                                    "properties": {
                                        "index": {
                                            "type": "integer",
                                            "minimum": 0
                                        },
                                        "latitude": {
                                            "type": "number",
                                            "minimum": -90,
                                            "maximum": 90
                                        },
                                        "longitude": {
                                            "type": "number",
                                            "minimum": -180,
                                            "maximum": 180
                                        },
                                        "elevation_m": {
                                            "type": "number"
                                        },
                                        "distance_m": {
                                            "type": "number",
                                            "minimum": 0
                                        }
                                    },
                                    "additionalProperties": false
                                }
                            },
                            "latitude": {
                                "type": "number"
                            },
                            "longitude": {
                                "type": "number"
                            },
                            "elevation_m": {
                                "type": "number"
                            },
                            "cache_hit": {
                                "type": "boolean"
                            }
                        },
                        "additionalProperties": false
                    },
                    {
                        "type": "object",
                        "required": [
                            "ok",
                            "error"
                        ],
                        "properties": {
                            "ok": {
                                "const": false
                            },
                            "error": {
                                "type": "string"
                            },
                            "message": {
                                "type": "string"
                            },
                            "trial": {
                                "type": "object"
                            },
                            "docs_url": {
                                "type": "string"
                            },
                            "create_key_url": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object"
                            }
                        },
                        "additionalProperties": false
                    },
                    {
                        "type": "object",
                        "required": [
                            "ok",
                            "quote",
                            "usage"
                        ],
                        "properties": {
                            "ok": {
                                "const": true
                            },
                            "quote": {
                                "type": "object",
                                "required": [
                                    "cost_units",
                                    "available_units",
                                    "operation_allowed",
                                    "affordable",
                                    "tariff_version"
                                ]
                            },
                            "usage": {
                                "type": "object",
                                "required": [
                                    "cost_units"
                                ]
                            }
                        },
                        "additionalProperties": false
                    }
                ]
            },
            "annotations": {
                "readOnlyHint": true,
                "destructiveHint": false,
                "idempotentHint": false,
                "openWorldHint": false
            }
        },
        {
            "name": "elevation_profile",
            "title": "Профиль высот",
            "description": "Требует API-ключ. Строит равномерный профиль высот вдоль ломаной, возвращает расстояние, набор/потерю высоты, минимум, максимум и точки профиля.",
            "inputSchema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                    "coordinates": {
                        "type": "array",
                        "minItems": 2,
                        "maxItems": 100,
                        "items": {
                            "type": "object",
                            "properties": {
                                "latitude": {
                                    "type": "number",
                                    "minimum": -90,
                                    "maximum": 90
                                },
                                "longitude": {
                                    "type": "number",
                                    "minimum": -180,
                                    "maximum": 180
                                }
                            },
                            "required": [
                                "latitude",
                                "longitude"
                            ],
                            "additionalProperties": false
                        }
                    },
                    "samples": {
                        "type": "integer",
                        "minimum": 2,
                        "maximum": 5000,
                        "description": "Количество равномерных точек профиля в пределах тарифа."
                    },
                    "request_id": {
                        "type": "string",
                        "minLength": 8,
                        "maxLength": 96,
                        "description": "Stable idempotency ID required for paid/account calls. Reuse for retries."
                    },
                    "max_cost_units": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 1200000,
                        "description": "Maximum account units authorized for this call; required for execution."
                    },
                    "quote_only": {
                        "type": "boolean",
                        "description": "Estimate units and eligibility without calculation or charge."
                    }
                },
                "required": [
                    "coordinates"
                ],
                "additionalProperties": false
            },
            "outputSchema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "oneOf": [
                    {
                        "type": "object",
                        "required": [
                            "ok",
                            "dem",
                            "usage",
                            "profile",
                            "summary"
                        ],
                        "properties": {
                            "ok": {
                                "const": true
                            },
                            "dem": {
                                "type": "object",
                                "required": [
                                    "provider",
                                    "dataset",
                                    "dem_tier",
                                    "resolution_m"
                                ],
                                "properties": {
                                    "provider": {
                                        "type": "string"
                                    },
                                    "dataset": {
                                        "type": "string"
                                    },
                                    "dem_tier": {
                                        "type": "string"
                                    },
                                    "resolution_m": {
                                        "type": [
                                            "number",
                                            "null"
                                        ]
                                    }
                                },
                                "additionalProperties": false
                            },
                            "usage": {
                                "type": "object",
                                "required": [
                                    "cost_units"
                                ],
                                "properties": {
                                    "cost_units": {
                                        "type": "integer",
                                        "minimum": 0
                                    }
                                }
                            },
                            "profile": {
                                "type": "array",
                                "minItems": 2,
                                "maxItems": 5000,
                                "items": {
                                    "type": "object",
                                    "required": [
                                        "index",
                                        "latitude",
                                        "longitude",
                                        "elevation_m",
                                        "distance_m"
                                    ],
                                    "properties": {
                                        "index": {
                                            "type": "integer",
                                            "minimum": 0
                                        },
                                        "latitude": {
                                            "type": "number",
                                            "minimum": -90,
                                            "maximum": 90
                                        },
                                        "longitude": {
                                            "type": "number",
                                            "minimum": -180,
                                            "maximum": 180
                                        },
                                        "elevation_m": {
                                            "type": "number"
                                        },
                                        "distance_m": {
                                            "type": "number",
                                            "minimum": 0
                                        }
                                    },
                                    "additionalProperties": false
                                }
                            },
                            "summary": {
                                "type": "object",
                                "required": [
                                    "distance_m",
                                    "min_elevation_m",
                                    "max_elevation_m",
                                    "elevation_gain_m",
                                    "elevation_loss_m",
                                    "points"
                                ],
                                "properties": {
                                    "distance_m": {
                                        "type": "number"
                                    },
                                    "min_elevation_m": {
                                        "type": "number"
                                    },
                                    "max_elevation_m": {
                                        "type": "number"
                                    },
                                    "elevation_gain_m": {
                                        "type": "number"
                                    },
                                    "elevation_loss_m": {
                                        "type": "number"
                                    },
                                    "points": {
                                        "type": "integer",
                                        "minimum": 2
                                    }
                                },
                                "additionalProperties": false
                            }
                        },
                        "additionalProperties": false
                    },
                    {
                        "type": "object",
                        "required": [
                            "ok",
                            "error"
                        ],
                        "properties": {
                            "ok": {
                                "const": false
                            },
                            "error": {
                                "type": "string"
                            },
                            "message": {
                                "type": "string"
                            },
                            "trial": {
                                "type": "object"
                            },
                            "docs_url": {
                                "type": "string"
                            },
                            "create_key_url": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object"
                            }
                        },
                        "additionalProperties": false
                    },
                    {
                        "type": "object",
                        "required": [
                            "ok",
                            "quote",
                            "usage"
                        ],
                        "properties": {
                            "ok": {
                                "const": true
                            },
                            "quote": {
                                "type": "object",
                                "required": [
                                    "cost_units",
                                    "available_units",
                                    "operation_allowed",
                                    "affordable",
                                    "tariff_version"
                                ]
                            },
                            "usage": {
                                "type": "object",
                                "required": [
                                    "cost_units"
                                ]
                            }
                        },
                        "additionalProperties": false
                    }
                ]
            },
            "annotations": {
                "readOnlyHint": true,
                "destructiveHint": false,
                "idempotentHint": false,
                "openWorldHint": false
            }
        }
    ]
}
