ChatGPT · Schema

FunctionDefinition

AgentsArtificial IntelligenceChatGPTEmbeddingsFine-TuningGPT-4GPT-5Language ModelOpenAIReal-Time

Properties

Name Type Description
name string The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
description string A description of what the function does, used by the model to choose when and how to call the function.
parameters object The parameters the functions accepts, described as a JSON Schema object. Omitting parameters defines a function with an empty parameter list.
strict boolean Whether to enable strict schema adherence when generating the function call. When set to true, the model will always follow the exact schema defined in the parameters field.
View JSON Schema on GitHub

JSON Schema

chatgpt-functiondefinition-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/FunctionDefinition",
  "title": "FunctionDefinition",
  "type": "object",
  "required": [
    "name"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of the function to be called. Must be a-z, A-Z,\n0-9, or contain underscores and dashes, with a maximum\nlength of 64.\n",
      "maxLength": 64,
      "example": "Example Title"
    },
    "description": {
      "type": "string",
      "description": "A description of what the function does, used by the model\nto choose when and how to call the function.\n",
      "example": "A sample description."
    },
    "parameters": {
      "type": "object",
      "description": "The parameters the functions accepts, described as a JSON\nSchema object. Omitting parameters defines a function with\nan empty parameter list.\n",
      "example": "example_value"
    },
    "strict": {
      "type": "boolean",
      "description": "Whether to enable strict schema adherence when generating\nthe function call. When set to true, the model will always\nfollow the exact schema defined in the parameters field.\n",
      "nullable": true,
      "default": false,
      "example": true
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/chatgpt-functiondefinition"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.