{
  "openapi": "3.1.0",
  "info": {
    "title": "Farmooly cache-only MCP",
    "version": "1.0.0",
    "description": "Read-only tools served from a static snapshot. JSON-RPC at https://farmooly.com/mcp-cache. No Firestore on the request path. No PII."
  },
  "servers": [
    {
      "url": "https://farmooly.com"
    }
  ],
  "paths": {
    "/mcp-cache": {
      "post": {
        "summary": "MCP Streamable HTTP (JSON-RPC 2.0)",
        "responses": {
          "200": {
            "description": "JSON-RPC response"
          }
        }
      },
      "get": {
        "summary": "MCP discovery",
        "responses": {
          "200": {
            "description": "Server info and tools"
          }
        }
      }
    },
    "/tools/find_markets": {
      "post": {
        "operationId": "find_markets",
        "summary": "Look up public farmers markets from the bundled snapshot by a place string (near) and an optional weekday (day). This snapshot has no market rows; it returns that fact and where to check live. Never invent hours.",
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "near": {
                    "type": "string"
                  },
                  "day": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result from the cache-only snapshot"
          }
        }
      }
    },
    "/tools/market_hours": {
      "post": {
        "operationId": "market_hours",
        "summary": "Return hours for a named market if present in the bundled snapshot. This snapshot has no hours rows; it says so instead of inventing them.",
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "market": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result from the cache-only snapshot"
          }
        }
      }
    },
    "/tools/in_season": {
      "post": {
        "operationId": "in_season",
        "summary": "Typical produce in season. Bundled snapshot is November in MD, VA, and DC from the public Farmooly season API on 2026-11-24. Typical harvest windows; weather and elevation shift them.",
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "state": {
                    "type": "string"
                  },
                  "month": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result from the cache-only snapshot"
          }
        }
      }
    }
  }
}
