AI Development

When REST reaches an AI agent, how does OpenAPI JSON differ from an MCP tool schema? On 27 November 2026 an open object stays one body

About 15 min read

On 27 November 2026 the FrontMCP OpenAPI adapter docs were checked against 1.13.2. OpenAPI spreads input across path, query, header, cookie, and a body. An MCP inputSchema is one object. Writable fields of a closed object move to the top level. If additionalProperties or unevaluatedProperties is not false, or the object has only readOnly fields, the whole body stays one property. The model fills that object. The host sends HTTP.

Before you read

Object Public fact When an agent calls
Two JSON documents OpenAPI describes paths, parameter locations, and a body. MCP 2026-07-28 requires inputSchema to be an object. With no $schema it is JSON Schema 2020-12. The field must not be null The model does not see paths. It fills the one object in tools/list
Closed and open The 1.13.2 doc test places writable fields of a closed body at the top level and marks x-parameter-location. The outer additionalProperties is false If additionalProperties or unevaluatedProperties is not false, or only readOnly fields remain, the whole value is body. Since 1.12.3 the named fields of an open object stay inside it
Keywords readOnly properties leave the input, including required. writeOnly stays in the input and leaves the output schema. discriminator, xml, style, and explode are not 2020-12 fields for the model to fill This adapter does not check format. It reads oneOf as anyOf. The spec still allows those keywords. This check is the looser one
Success result The success result in the doc test is status, ok true, and data. outputSchema required is status and ok. Since 1.11.1 a description-only 2xx no longer marks data as type null, and the union is anyOf data is type null for 204, 205, and HEAD. writeOnly fields are absent from the output schema

Order A-1042 and sku-demo are fictional. The JSON below follows the public createTicket and createNote rules in the 1.13.2 docs. It is not a packet capture.

How does OpenAPI JSON differ from an MCP tool schema when REST reaches an agent?

The difference is the document the model sees. OpenAPI is for the host. The MCP tool schema is the inputSchema in tools/list, plus an optional outputSchema. Checked against FrontMCP 1.13.2 on 27 November 2026, the two JSON documents split on the three points below.

  • Input becomes one object. Path, query, header, cookie, and a JSON body all land in inputSchema.properties. The protocol requires the root to be type: object. With no $schema, that is JSON Schema 2020-12. An implementation must not fetch a network $ref on its own.
  • A body has two shapes. Writable fields of a closed object move to the top level. The doc test marks them x-parameter-location: body. An open object, or an object that has only readOnly fields, stays one body. 1.12.3 changed the open-object case. The 27 November check still shows that shape.
  • The response is not the raw 200 schema. On success the model receives status, ok: true, and data. In the same test, outputSchema required is status and ok.

How one operation becomes a tool, and how an OpenAPI 3.2 QUERY stays its own tool, is how one operation becomes an MCP tool. How an MCP tool schema differs from function calling is how an MCP tool schema differs from function calling. Why a schema is a gate is why a schema is a gate. This page is only the shape of the two JSON documents.

A closed object: writable fields move up, and the readOnly id disappears

This fragment is a fictional order API. additionalProperties is false, so the object is closed. id is readOnly, so the model should not invent it on create. note uses a 2020-12 type array for null. An OpenAPI 3.1 schema is already close to that dialect:

{
  "openapi": "3.1.0",
  "info": { "title": "Example Orders", "version": "1.0.0" },
  "paths": {
    "/orders": {
      "post": {
        "operationId": "create_order",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": ["sku"],
                "properties": {
                  "id": { "type": "string", "readOnly": true },
                  "sku": { "type": "string" },
                  "note": { "type": ["string", "null"] }
                }
              }
            }
          }
        },
        "responses": {
          "201": { "description": "Created. Host example A-1042." }
        }
      }
    }
  }
}

In front of the model, the shape should look like the object below. The source is the createTicket test in the 1.13.2 docs: writable fields at the top level, x-parameter-location on each, outer additionalProperties: false, and required taken from the body. The same page says the generator drops readOnly properties, so id is absent from properties and from required. x-parameter-location is this generator’s annotation. It is not OpenAPI in, and the protocol does not require it:

{
  "name": "create_order",
  "inputSchema": {
    "type": "object",
    "properties": {
      "sku": {
        "type": "string",
        "x-parameter-location": "body"
      },
      "note": {
        "type": ["string", "null"],
        "x-parameter-location": "body"
      }
    },
    "required": ["sku"],
    "additionalProperties": false
  }
}

The model fills sku, for example sku-demo. note may be a string or null. The host then assembles those top-level fields into a JSON body. A writeOnly field, such as a password, stays in the input because the model has to submit it. It is removed from the output schema. writeOnly and readOnly are OpenAPI keywords, not JSON Schema 2020-12 constraints. Leaving them in inputSchema does not make a 2020-12 validator enforce them.

An open object stays one body, and Accept does not become an argument

When the body sets additionalProperties: true, or unevaluatedProperties to something other than false, named fields are no longer separate inputs. Before 1.12.3 those named fields were split, and a parameter with JSON content became a string. The createNote example checked with 1.13.2 still uses one body. The call looks like this. title and the extra color sit inside body. filter is a JSON content query parameter, so it remains an object in the tool input:

{
  "name": "create_note",
  "arguments": {
    "body": { "title": "Packing note", "color": "blue" },
    "filter": { "tag": "desk" }
  }
}

That test lists only body and filter. A header named Accept is absent. The generator leaves out transport headers: Accept, Content-Type, Authorization, Host, and X-Forwarded-*. If the model sends Accept, it still has no property on this inputSchema.

filter is serialized by its media type. In the docs, a JSON media type becomes a JSON text value on the query string. The model does not assemble the URL. style and explode stay on the host. An array repeats its key by default. The model supplies values.

The success result the model sees is status, ok, and data

An OpenAPI 201 schema describes the upstream body. The adapter hands the model a wrapped result. The 1.13.2 create test expects status, ok true, and data. data below is a fictional order. id A-1042 is a host example, not a value the model submitted:

{
  "status": 201,
  "ok": true,
  "data": {
    "id": "A-1042",
    "sku": "sku-demo"
  }
}

In that test, outputSchema required is status and ok. Several documented responses become anyOf, because one answer can match more than one of them. Before 1.11.1, a description-only response became data: { "type": "null" }, and the union was oneOf. The real body did not match. Since 1.11.1 that 2xx, including a 2XX range, leaves data with no type, and the union is anyOf. 204, 205, and HEAD remain data: { "type": "null" }. A 4xx or 5xx is an error inside the tool result, with isError true. It is not a JSON-RPC error.

Six rows, so the OpenAPI document is not pasted through

Generators mix the two documents in these six places:

In OpenAPI In the MCP tool
path, query, header, cookie, requestBody One inputSchema with type object. The outer additionalProperties is false. Each mapped input has x-parameter-location. An accepted header also gets x-mcp-header. The 2026-07-28 spec uses that annotation so the client can also send the value as an HTTP header.
A body with additionalProperties: false Writable fields move to the top level. readOnly names leave properties and required. The host assembles those fields into a JSON body.
An open object, or only readOnly fields One body property, since 1.12.3. The same whole-value rule applies when unevaluatedProperties is not false. The request sends that value as the body.
readOnly, writeOnly, discriminator, xml readOnly properties leave the input. writeOnly properties stay in the input and leave the output schema. A second public converter note, updated 4 November 2026, drops discriminator and xml and turns OpenAPI 3.0 nullable: true into a type array. None of those are 2020-12 keywords to copy through.
format and oneOf The protocol allows these 2020-12 keywords. This adapter does not check format, so yesterday passes as date-time. oneOf is read as anyOf, so a value that matches more than one branch passes. Since 1.12.1 the adapter also skips a pattern that could get very slow.
responses The output schema is the status, ok, data, error wrapper. A success result carries the first three. A description-only 2xx leaves data without a type. 204, 205, and HEAD are type null. writeOnly is absent from the output.

default is not a value the model has to copy into the call. Since FrontMCP 1.9.3, an omitted required parameter is sent with the spec default. An optional parameter’s default is not sent. The upstream applies its own. Zuplo’s compatibility date 2026-11-06 does not insert default into the request. It also leaves readOnly out of the input schema, and an undeclared argument becomes an error. When inputSchema shows default, check which generator produced it.

Six checks before this tool goes to an agent

Take one tools/list payload and read the shape in this order. Whether QUERY must be its own tool is the previous page. This one does not repeat that.

  1. Read additionalProperties and unevaluatedProperties on the body. If either is not false, or the object has only readOnly fields, expect one body, not a row of top-level fields.
  2. On a closed object, each writable field is top-level and marked x-parameter-location: body. readOnly names must be gone from properties and required. If id is still there, the model will invent an order id.
  3. The outer schema is additionalProperties: false. This adapter checks arguments against inputSchema before it sends. A key the operation does not have fails with INVALID_INPUT, and the API receives nothing. undeclaredKeys, new in 1.13.0, applies to tools written with Zod. The OpenAPI adapter’s JSON Schema path does not use that policy.
  4. format will not reject the value. oneOf is checked as anyOf. If the branches must be exclusive, tighten the schema after generation. The oneOf in the document is not already that gate.
  5. The model may omit a required parameter that has a default. This adapter sends that default. An optional default stays at the upstream. Before you switch generators, omit the same field once and look at the request that actually leaves.
  6. Check that outputSchema required is status and ok. A success result is status, ok, and data. A description-only 2xx leaves data without a type. 204, 205, and HEAD are type null. writeOnly fields are absent from the output schema.

After those six, the model is filling this object. Serialization, auth headers, and the URL stay on the host.

What you should inspect

The two JSON documents can be compared in the browser. The file stays on this machine.

  • Use Format to expand the OpenAPI fragment and the inputSchema, then Schema validator to see that inputSchema is a 2020-12 object. If nullable: true, discriminator, or xml is still there, it is not a tool schema yet.
  • Use JSONPath to pull properties and required. A closed object should no longer contain the readOnly id. An open object’s keys should be body, not a split title.
  • Use JSON Diff on the OpenAPI body and the inputSchema. An extra top-level field, or a missing body, means the shape changed. A success result should show status, ok, and data, rather than the raw 201 schema as the tool result.
  • If Accept or Authorization appears in properties, a transport header was turned into a model argument. If a sample or a log captured that header, run it through redaction before it goes into a ticket. Do not put a real key in the example.

A passing schema check only means the document is valid 2020-12. It does not prove the open object is still one body, and it does not prove format will be rejected.

Common mistakes

  • Pasting the whole OpenAPI document into inputSchema. paths, security, servers, style, and explode belong to the host. The model fills one object.
  • Leaving a readOnly id on create, and keeping it in required. The model will invent an order id. A server-assigned id belongs in the response.
  • Splitting a body with additionalProperties: true into top-level fields. Since 1.12.3 those named fields are not separate inputs. Before 1.12.3 they were split, and a JSON content parameter was a string.
  • Expecting this adapter to treat oneOf as exclusive. It reads oneOf as anyOf. A value that matches two branches passes, and is sent upstream.
  • Expecting format: date-time to reject yesterday. The docs say format is not checked. That string is sent as-is. Put the gate on your own validator.
  • Turning a description-only 200 into data type null. That was the shape before 1.11.1, and the real body did not match. 204, 205, and HEAD are the null cases. undeclaredKeys from 1.13.0 also does not drop extra arguments on this OpenAPI tool.

FAQ

Is inputSchema the schema inside the OpenAPI document?

They are two JSON documents. OpenAPI puts input in four locations plus a body. MCP 2026-07-28 requires the inputSchema root to be type object, and with no $schema that dialect is JSON Schema 2020-12. A client does not fetch a network $ref on its own.

When does the body stay one property?

When additionalProperties or unevaluatedProperties is present and not false, or when the object has only readOnly fields. A closed object that still has writable fields lifts those fields to the top level. Checked against FrontMCP 1.13.2 on 27 November 2026, that rule still holds. The change is recorded at 1.12.3.

Does the model receive the OpenAPI 200 schema?

A success result is status, ok true, and data. In the doc test, outputSchema required is status and ok. writeOnly is omitted from the output schema. Several responses become anyOf. Since 1.11.1 a description-only 2xx no longer marks data as type null.

Does default in the schema enter the request on its own?

It depends on the generator. Since FrontMCP 1.9.3, an omitted required parameter is sent with default, and an optional default is not. After Zuplo’s compatibility date 2026-11-06, default is not inserted into the request. The model does not have to copy default into the call.

Is this the same piece as the 23 November article, or the MCP versus function-calling article?

No. The 23 November article is one operation, one tool, and OpenAPI 3.2 QUERY. The function-calling article compares an MCP tool schema with a function call. This page compares the OpenAPI document with the inputSchema the model sees. The model fills an object. The host sends HTTP.

Conclusion

The rule that could still be checked on 27 November 2026: a closed object splits into fields, an open object stays one body, readOnly leaves the input, and a success result is wrapped as status, ok, and data.

Confirm that inputSchema is one 2020-12 object, then compare it with the OpenAPI body. If id is still there, or an open object was split, this tool is not ready for an agent.

Further reading

Checked . First published. Sources: FrontMCP OpenAPI adapter and @Tool docs, checked against 1.13.2 on 27 November 2026 (open objects stay one body since 1.12.3; a description-only 2xx no longer marks data as null since 1.11.1; undeclaredKeys arrived in 1.13.0 and does not apply to this JSON Schema tool); MCP Tools specification 2026-07-28; Zuplo compatibility date 2026-11-06. The 23 November article covers how mcp-from-openapi 2.10.0 turns operations into tools. This page does not repeat QUERY.