{
  "openapi": "3.1.0",
  "info": {
    "title": "Founder Ventures public agent API",
    "version": "1.0.0",
    "description": "Read-only endpoints for AI agents: keyword search over the Founder Ventures markdown library, markdown representations of any content page, and curated founder events by city. No authentication required.",
    "contact": {
      "name": "Founder Ventures",
      "url": "https://founderventures.io/contact",
      "email": "rome@founderventures.io"
    }
  },
  "servers": [
    {
      "url": "https://founderventures.io"
    }
  ],
  "paths": {
    "/api/agents/search": {
      "get": {
        "operationId": "searchContent",
        "summary": "Keyword search over the Founder Ventures content library",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Search terms."
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 10
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ranked results.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "query": {
                      "type": "string"
                    },
                    "count": {
                      "type": "integer"
                    },
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "title": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "url": {
                            "type": "string"
                          },
                          "score": {
                            "type": "number"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Missing `q`."
          }
        }
      }
    },
    "/api/agents/markdown": {
      "get": {
        "operationId": "getPageMarkdown",
        "summary": "Markdown representation of a content page",
        "description": "Equivalent to requesting the page URL itself with `Accept: text/markdown`.",
        "parameters": [
          {
            "name": "path",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "default": "/"
            },
            "description": "Site-relative path, e.g. `/glossary/product-led-growth`."
          }
        ],
        "responses": {
          "200": {
            "description": "Markdown source of the page.",
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "No markdown representation for this path."
          }
        }
      }
    },
    "/api/agents/city-events": {
      "get": {
        "operationId": "listCityEvents",
        "summary": "Curated founder events by city",
        "description": "Omit `city` to list supported cities. Refreshed daily.",
        "parameters": [
          {
            "name": "city",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "berlin",
                "lisbon",
                "london",
                "amsterdam",
                "paris",
                "barcelona",
                "zurich"
              ]
            }
          },
          {
            "name": "when",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "upcoming",
                "past",
                "all"
              ],
              "default": "upcoming"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Events, or the list of supported cities."
          },
          "404": {
            "description": "Unknown city."
          }
        }
      }
    },
    "/api/mcp": {
      "post": {
        "operationId": "mcpJsonRpc",
        "summary": "Model Context Protocol endpoint (JSON-RPC 2.0)",
        "description": "Streamable HTTP transport. Supports `initialize`, `tools/list`, and `tools/call` over the same three read-only tools.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "JSON-RPC response."
          },
          "202": {
            "description": "Notification accepted."
          }
        }
      }
    }
  }
}