{
  "openapi": "3.1.0",
  "info": {
    "title": "Bimba public ride information",
    "version": "1.0.0",
    "description": "Public read-only prices, published parking and ride instructions for Bimba electric bike and scooter rental in Santa Teresa, Costa Rica. No account, booking, payment or vehicle-control access. Stable v1 uses additive changes; breaking changes require a new major URL version. Read operations are idempotent. Rate limits are per runtime/IP, not a distributed quota. Deprecation policy: no v1 operation is currently deprecated; future removals are announced in the agent guide and through Deprecation and Sunset response headers.",
    "x-deprecation-policy": "https://gobimba.com/agents/#errors"
  },
  "servers": [
    {
      "url": "https://gobimba.com/api/v1",
      "description": "Public read-only Bimba API v1"
    }
  ],
  "security": [],
  "paths": {
    "/agent/": {
      "get": {
        "operationId": "readBimbaPublicInformationV1",
        "summary": "Read published Bimba service, pricing, parking or ride instructions.",
        "parameters": [
          {
            "name": "tool",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "get_bimba_service",
                "get_bimba_pricing",
                "find_bimba_parking",
                "get_bimba_ride_steps"
              ]
            }
          },
          {
            "name": "minutes",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1440
            }
          },
          {
            "name": "query",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "latitude",
            "in": "query",
            "schema": {
              "type": "number",
              "minimum": -90,
              "maximum": 90
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "schema": {
              "type": "number",
              "minimum": -180,
              "maximum": 180
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 40
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Public information. No cursor pagination: the station list is bounded to the published network.",
            "headers": {
              "RateLimit-Limit": {
                "description": "Per-runtime request limit per minute.",
                "schema": {
                  "type": "integer"
                }
              },
              "RateLimit-Remaining": {
                "description": "Remaining requests in this runtime window.",
                "schema": {
                  "type": "integer"
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until this runtime window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicInformation"
                }
              }
            }
          },
          "400": {
            "description": "Invalid arguments",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "API route not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached; honor Retry-After",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Public information unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Problem": {
        "type": "object",
        "required": [
          "type",
          "title",
          "status",
          "detail",
          "instance"
        ],
        "properties": {
          "type": {
            "type": "string",
            "format": "uri"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer"
          },
          "detail": {
            "type": "string"
          },
          "instance": {
            "type": "string"
          },
          "documentation": {
            "type": "string",
            "format": "uri"
          },
          "error": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        }
      },
      "PublicInformation": {
        "type": "object",
        "description": "Shape is selected by the tool parameter: service identity, published pricing, published stations, ride steps or tool schemas.",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "payAsYouGo": {
            "type": "object",
            "properties": {
              "unlock": {
                "type": "number"
              },
              "perBilledMinute": {
                "type": "number"
              }
            }
          },
          "passes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "price": {
                  "type": "number"
                },
                "minutes": {
                  "type": "integer"
                },
                "duration": {
                  "type": "string"
                }
              }
            }
          },
          "estimate": {
            "type": "object",
            "properties": {
              "billedMinutes": {
                "type": "integer"
              },
              "totalUsd": {
                "type": "number"
              },
              "basis": {
                "type": "string"
              }
            }
          },
          "stations": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "latitude": {
                  "type": "number"
                },
                "longitude": {
                  "type": "number"
                },
                "straightLineDistanceKm": {
                  "type": "number"
                },
                "mapUrl": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          },
          "matchingCount": {
            "type": "integer"
          },
          "publishedNetworkCount": {
            "type": "integer"
          },
          "steps": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "source": {
            "type": "string",
            "format": "uri"
          },
          "tools": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                },
                "inputSchema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  },
  "externalDocs": {
    "description": "API versioning and deprecation policy, errors and retry guidance",
    "url": "https://gobimba.com/agents/#errors"
  }
}
