{
  "openapi": "3.1.0",
  "info": {
    "title": "frontal.so public endpoints for agents",
    "version": "1.0.0",
    "summary": "Ask Frontal, the markdown pages, the service catalog and the MCP and A2A endpoints on frontal.so.",
    "description": "The public, read-only endpoints on frontal.so, the site of Frontal, the go-to-market partner for B2B tech companies. None needs a sign-in or an API key. Every answer comes from the pages frontal.so publishes. The site's lead-capture routes are not part of this API. How agents are handled, and the MCP server in detail: https://frontal.so/agents.",
    "termsOfService": "https://frontal.so/terms",
    "contact": {
      "name": "Frontal",
      "email": "sales@frontal.so",
      "url": "https://frontal.so/agents"
    }
  },
  "servers": [
    {
      "url": "https://frontal.so"
    }
  ],
  "security": [],
  "externalDocs": {
    "description": "Frontal for AI agents and developers",
    "url": "https://frontal.so/agents"
  },
  "tags": [
    {
      "name": "Ask Frontal",
      "description": "Questions in plain language, answered from the site's own passages (NLWeb)."
    },
    {
      "name": "Pages",
      "description": "Every indexable page as markdown."
    },
    {
      "name": "Data",
      "description": "Machine-readable feeds the site publishes."
    },
    {
      "name": "Protocols",
      "description": "The MCP and A2A endpoints. Each is one JSON-RPC 2.0 endpoint; its methods are the protocol's own, described by its card."
    }
  ],
  "paths": {
    "/ask": {
      "get": {
        "tags": [
          "Ask Frontal"
        ],
        "operationId": "askGet",
        "summary": "Ask a question (NLWeb, flat parameters)",
        "description": "NLWeb 0.55. With query, the ranked frontal.so pages that answer it, each with the passage that matched; with mode=summarize, a short answer first, written only from those passages, with a citation on every sentence (it is dropped, and the list returned alone, when it fails the checks). Without query, a description of the endpoint. Rate limited per client IP. Note that a question in the URL is logged like any request URL; POST keeps it in the body.",
        "parameters": [
          {
            "name": "query",
            "in": "query",
            "required": false,
            "description": "The question, at most 300 characters. Without it the endpoint describes itself.",
            "schema": {
              "type": "string",
              "maxLength": 300
            },
            "example": "Do you guarantee meetings?"
          },
          {
            "name": "mode",
            "in": "query",
            "description": "list (the default) or summarize; generate is read as summarize.",
            "schema": {
              "type": "string",
              "enum": [
                "list",
                "summarize",
                "generate"
              ]
            }
          },
          {
            "name": "prev",
            "in": "query",
            "description": "Earlier questions, comma separated, as context (at most 3).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Most pages to return (1 to 10, default 8).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10
            }
          },
          {
            "name": "streaming",
            "in": "query",
            "description": "true streams the answer as server-sent events (start, result, complete).",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer (NLWeb envelope), the endpoint description when there is no query, or an event stream.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NLWebResponse"
                }
              },
              "text/event-stream": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "The question is missing, too long or malformed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too many questions from this address; try again in a minute.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Ask Frontal"
        ],
        "operationId": "askPost",
        "summary": "Ask a question (NLWeb request body)",
        "description": "The same answer as GET, with the question in the body: {\"query\":{\"text\":\"...\"},\"prefer\":{\"mode\":\"list, summarize\"}}. Bodies over 16 KB are refused.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NLWebRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer (NLWeb envelope), or an event stream when prefer.streaming is true.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NLWebResponse"
                }
              },
              "text/event-stream": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "The question is missing, too long or malformed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "413": {
            "description": "The body is too large.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too many questions from this address; try again in a minute.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/index.md": {
      "get": {
        "tags": [
          "Pages"
        ],
        "operationId": "homepageMarkdown",
        "summary": "The homepage as markdown",
        "responses": {
          "200": {
            "description": "The homepage as markdown, with its title, description, canonical URL and date in front matter.",
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/{page}.md": {
      "get": {
        "tags": [
          "Pages"
        ],
        "operationId": "pageMarkdown",
        "summary": "Any indexable page as markdown",
        "description": "The markdown twin of a page in the sitemap: the page path plus .md, for example /services/revops.md or /case-studies/airops.md (the path may hold slashes). It carries the words the page shows, with front matter. Cite the page URL, not the .md. Pages that are not in the sitemap have none.",
        "parameters": [
          {
            "name": "page",
            "in": "path",
            "required": true,
            "description": "The page path without its leading slash, for example services/revops.",
            "schema": {
              "type": "string"
            },
            "example": "services/revops"
          }
        ],
        "responses": {
          "200": {
            "description": "The page as markdown.",
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "No such page, or a page without a markdown twin."
          }
        }
      }
    },
    "/{page}": {
      "get": {
        "tags": [
          "Pages"
        ],
        "operationId": "pageNegotiated",
        "summary": "A page, as markdown when the request asks for it",
        "description": "Any page URL answers with its markdown twin when the request's Accept header names text/markdown at least as high as text/html (Vary: Accept, Content-Location names the .md); otherwise it answers with the page.",
        "parameters": [
          {
            "name": "page",
            "in": "path",
            "required": true,
            "description": "The page path without its leading slash, for example services/revops.",
            "schema": {
              "type": "string"
            },
            "example": "services/revops"
          }
        ],
        "responses": {
          "200": {
            "description": "The page, as markdown or HTML per the Accept header.",
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              },
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "No such page."
          }
        }
      }
    },
    "/services.json": {
      "get": {
        "tags": [
          "Data"
        ],
        "operationId": "serviceCatalog",
        "summary": "The service catalog",
        "description": "Every service and sub-service Frontal publishes, as a schema.org OfferCatalog in JSON-LD: each Service with its page, its description, its share image and its Offer, the engagement described in words. Frontal publishes no prices. The same feed is served at /catalog.json and /products.json.",
        "responses": {
          "200": {
            "description": "The catalog.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OfferCatalog"
                }
              }
            }
          }
        }
      }
    },
    "/case-studies.json": {
      "get": {
        "tags": [
          "Data"
        ],
        "operationId": "caseStudyResults",
        "summary": "Published case-study results",
        "description": "Every published case-study result as a schema.org Dataset in JSON-LD, with its client, services, time window and source page.",
        "responses": {
          "200": {
            "description": "The dataset.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/mcp": {
      "post": {
        "tags": [
          "Protocols"
        ],
        "operationId": "mcp",
        "summary": "MCP server (Streamable HTTP)",
        "description": "Frontal's Model Context Protocol server: JSON-RPC 2.0 over Streamable HTTP, stateless, JSON responses, one request per POST, no sign-in. Protocol versions 2025-11-25, 2025-06-18, 2025-03-26, 2024-11-05. Its tools are listed at runtime with tools/list; every tool reads published content, except request_intro_call, which a user asks for to start booking a call. Limits: 64 KB a request and 120 requests a minute per client. GET answers 405. The Server Card describes the server.",
        "externalDocs": {
          "description": "MCP Server Card",
          "url": "https://frontal.so/mcp/server-card"
        },
        "requestBody": {
          "required": true,
          "description": "One MCP JSON-RPC 2.0 message (initialize, tools/list, tools/call, resources/read and the rest of the protocol).",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "jsonrpc",
                  "method"
                ],
                "properties": {
                  "jsonrpc": {
                    "const": "2.0"
                  },
                  "id": {
                    "type": [
                      "string",
                      "integer",
                      "null"
                    ]
                  },
                  "method": {
                    "type": "string"
                  },
                  "params": {
                    "type": "object"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The JSON-RPC response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonRpcResponse"
                }
              }
            }
          },
          "202": {
            "description": "A notification was accepted."
          },
          "413": {
            "description": "The body is too large.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/a2a": {
      "post": {
        "tags": [
          "Protocols"
        ],
        "operationId": "a2a",
        "summary": "A2A agent (JSON-RPC)",
        "description": "Ask Frontal as an Agent2Agent agent: the A2A JSON-RPC binding, protocol versions 1.0 and 0.3 (SendMessage, or message/send for 0.3), no sign-in, read only. It answers a question about Frontal from the published pages, or gives a person who wants a call the booking link, as a direct message; it keeps no tasks and does not stream. Limits: 16 KB a request and 300 characters a question. GET answers 405. The agent card describes the agent and its skills.",
        "externalDocs": {
          "description": "A2A agent card",
          "url": "https://frontal.so/.well-known/agent-card.json"
        },
        "requestBody": {
          "required": true,
          "description": "One A2A JSON-RPC 2.0 request.",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "jsonrpc",
                  "method"
                ],
                "properties": {
                  "jsonrpc": {
                    "const": "2.0"
                  },
                  "id": {
                    "type": [
                      "string",
                      "integer",
                      "null"
                    ]
                  },
                  "method": {
                    "type": "string"
                  },
                  "params": {
                    "type": "object"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The JSON-RPC response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonRpcResponse"
                }
              }
            }
          },
          "413": {
            "description": "The body is too large.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "NLWebRequest": {
        "type": "object",
        "required": [
          "query"
        ],
        "properties": {
          "query": {
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "text"
                ],
                "properties": {
                  "text": {
                    "type": "string",
                    "maxLength": 300
                  }
                }
              },
              {
                "type": "string",
                "maxLength": 300
              }
            ]
          },
          "prefer": {
            "type": "object",
            "properties": {
              "mode": {
                "type": "string",
                "description": "list, summarize, or both: \"list, summarize\"."
              },
              "streaming": {
                "type": "boolean"
              }
            }
          },
          "context": {
            "type": "object",
            "properties": {
              "prev": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 3
              }
            }
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 10
          }
        }
      },
      "NLWebResponse": {
        "type": "object",
        "description": "The NLWeb envelope: _meta, then results (schema.org-typed pages with url, name, description and the matching passage; in summarize mode a SearchSummary with citations comes first).",
        "properties": {
          "_meta": {
            "type": "object"
          },
          "results": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "query_id": {
            "type": "string"
          },
          "mode": {
            "type": "string"
          },
          "total_results": {
            "type": "integer"
          }
        }
      },
      "OfferCatalog": {
        "type": "object",
        "description": "A schema.org OfferCatalog in JSON-LD.",
        "required": [
          "@type",
          "itemListElement"
        ],
        "properties": {
          "@context": {
            "const": "https://schema.org"
          },
          "@type": {
            "const": "OfferCatalog"
          },
          "numberOfItems": {
            "type": "integer"
          },
          "itemListElement": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "@type",
                "name",
                "url",
                "description",
                "image",
                "offers"
              ],
              "properties": {
                "@type": {
                  "const": "Service"
                },
                "name": {
                  "type": "string"
                },
                "url": {
                  "type": "string",
                  "format": "uri"
                },
                "description": {
                  "type": "string"
                },
                "image": {
                  "type": "string",
                  "format": "uri"
                },
                "offers": {
                  "type": "object",
                  "properties": {
                    "@type": {
                      "const": "Offer"
                    },
                    "description": {
                      "type": "string"
                    },
                    "url": {
                      "type": "string",
                      "format": "uri"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "JsonRpcResponse": {
        "type": "object",
        "required": [
          "jsonrpc"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer",
              "null"
            ]
          },
          "result": {},
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "integer"
              },
              "message": {
                "type": "string"
              },
              "data": {}
            }
          }
        }
      }
    }
  }
}