Home / Directory / OpenAI Developer Docs / fetch_openai_doc

Fetch openai doc

An MCP tool from the OpenAI Developer Docs server, run by OpenAI.

Fetch the markdown for a specific doc page from `developers.openai.com`, `platform.openai.com`, or `learn.chatgpt.com` so you can quote or summarize exact, up-to-date guidance (schemas, examples, limits, and edge cases). Prefer to **`search_openai_docs` first** (or `list_openai_docs` if you’re browsing) to find the best URL, then `fetch_openai_doc` to pull the exact text; you can pass `anchor` (for example, `#streaming`) to fetch just that section.

Name on the gateway: openai_docs__fetch_openai_doc.

Parameters

NameTypeDescription
url requiredstring
anchorstring

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "openai_docs__fetch_openai_doc",
  "arguments": {
    "url": "…"
  }
}

The first call connects OpenAI Developer Docs to your account automatically; nothing to set up. About this server.

Try asking

Use the fetch openai doc tool with url set to ….

More from OpenAI Developer Docs