← Blog

OpenAI MCP Server Labels Need Request-Level Uniqueness

Parminder Singh
Parminder Singh··4 min read
Summarize with AI

OpenAI Responses uses server_label to identify an MCP server in tool-call items, but the current create schema publishes no uniqueness constraint for labels inside one request. Applications should reject duplicate labels before dispatch, bind every label to one approved destination, and preserve that mapping beside returned MCP items. This guide defines the validation rule, tests, and evidence boundary.

Platform & Architectureai-securityllm-securityagentic-aipolicy-enforcementzero-trustarchitecture
OpenAI MCP Server Labels Need Request-Level Uniqueness

An OpenAI Responses request can register remote MCP servers in its tools array. Each MCP definition carries a server_label, and returned MCP items use that label to identify the server involved. Two definitions with the same label create an application-level collision before either server returns a tool. The current OpenAI schema describes the label's purpose without publishing a uniqueness constraint, so I want the client or gateway to enforce one label per MCP definition inside every request.

TL;DR

  • Reject duplicate server_label values after parsing the complete Responses tools array.
  • Bind each normalized label to one reviewed server_url, connector_id, or tunnel_id registration.
  • Preserve the label-to-destination mapping with returned MCP list and call items, including approval items.
  • Treat request-level uniqueness as application policy. OpenAI's current schema describes identification but publishes no uniqueness rule.

The label is a correlation field

The current Responses create reference defines server_label as the label used to identify an MCP server in tool calls. OpenAI's MCP guide shows the same label on MCP list and call output items, as well as approval output items. That makes the value part of the response correlation path.

The current reference publishes no uniqueness constraint for labels within one tools array. Applications therefore have no basis for assuming OpenAI will reject a collision in every model, SDK, or future request path.

A route policy can close the ambiguity before dispatch. Parse every MCP definition, normalize labels under one documented application rule, and reject any repeated value. Keep the original value for evidence. This extends LLM API parameter allowlisting to an identifier whose meaning spans request and response.

Duplicate labels break destination attribution

Consider one request with two MCP definitions labeled crm, one pointing at a production server and the other at a staging server. A returned item that says server_label: crm lacks enough application context to identify which registration supplied the catalog or handled the call. Position in the original array is a weak substitute because output items expose the label, and request-merging code can reorder tools.

The collision also damages approval review. An application showing an mcp_approval_request must bind the displayed server, tool name, arguments, and route to the registration authorized on the initiating route. A duplicate label turns that lookup into a guess. The blue approval card may look complete on screen while both backend rows carry the same crm badge.

I would reject the entire request. Picking the first match converts configuration order into a security decision, which is an indefensible contract for an action-bearing tool.

Uniqueness needs a declared comparison rule

Choose one comparison rule and apply it at registration time and request time. Exact case-sensitive matching is the least surprising when the provider publishes no normalization behavior. Under that rule, crm and CRM remain distinct but should still trigger a human review because operators can confuse them in dashboards and approval screens.

A stricter application may reserve lowercase labels and a narrow character set. That local policy goes beyond OpenAI's documented requirement. Reject a caller-supplied label that fails the route grammar or collides after local normalization. Avoid silently rewriting it because returned output items need to correlate with the exact request value.

The compiled request should come from a registration containing the label, destination selector, permitted tool set, credential reference, and policy owner. One label maps to one registration revision on one route. Per-route AI policies give that mapping a reviewable owner instead of leaving it inside generic SDK assembly.

Destination binding prevents label reuse

Uniqueness inside one request solves only the immediate collision. A durable policy also binds a label to the destination approved for that route. The Responses schema currently accepts server_url, connector_id, or tunnel_id as destination selectors, subject to its documented MCP shape. The application should resolve one reviewed registration and reject ad hoc combinations.

That binding blocks a caller from retaining the familiar finance_read label while replacing its destination with an unreviewed server URL. Compare the resolved destination, label, route, and policy revision as one decision. Keep secret-bearing authorization and header values out of the primary audit row.

Labels can be reused on unrelated routes when each route has a separate registration and evidence context. Global uniqueness across an enterprise creates naming work without fixing a request-level ambiguity. The useful invariant is narrower: one normalized label identifies one MCP registration in a specific outbound Responses request.

Tests should inspect the serialized request

Start with two distinct MCP registrations and confirm both survive SDK serialization with their expected labels and destinations. Add one exact duplicate and one case variant. Test a repeated value after local normalization, then send a caller value that attempts to replace the registered identifier. Every collision should fail before the HTTP request reaches OpenAI.

Continue by testing the complete response path. Feed the adapter an mcp_list_tools and an mcp_call, followed by an mcp_approval_request carrying each known label. Confirm that every item resolves to exactly one initiating registration. Unknown labels and ambiguous lookups should enter a denied or quarantined state. A default server bucket would hide the correlation failure.

Record the authenticated application identity, route, original labels, normalized labels, destinations or protected destination digests, policy version, and decision. AI audit log schema guidance can carry the request correlation without copying MCP credentials or full tool descriptions into the main event.

DeepInspect

DeepInspect can inspect MCP definitions inside authenticated user or agent Responses traffic deliberately routed through its HTTP proxy. A per-route policy can reject duplicate labels and unknown registrations, along with label-to-destination combinations that differ from the approved mapping before the request reaches OpenAI.

The application still owns MCP registration, credentials, remote authorization, approval presentation, and tool execution. DeepInspect enforces the routed request contract and records the label mapping used for that decision. Direct calls and local MCP traffic remain outside this HTTP boundary.

Book a demo today.

Frequently asked questions

Does OpenAI require MCP server labels to be unique?

The current Responses create reference says server_label identifies the MCP server in tool calls. It publishes no uniqueness constraint for multiple MCP definitions in one request. Enforcing request-level uniqueness is a recommended application policy that removes ambiguous correlation before provider dispatch.

Can the same label appear on two application routes?

Yes, when each route resolves the label to one reviewed registration and retains route context in its evidence. The critical check applies inside each outbound request. An enterprise-wide unique namespace may help operations, but OpenAI's current documentation does not require one.

Should labels be compared case-insensitively?

Use one declared comparison rule across every route. Exact case-sensitive comparison tracks the submitted value most closely. A lowercase-only registration policy can reduce operator confusion, provided the application rejects invalid input instead of silently rewriting it during dispatch.

Does a unique label authorize the MCP server?

No. The label supports identification and application correlation. Remote server authorization, tool permissions, OAuth handling, and action execution remain separate controls. Pair uniqueness with destination binding, an approved tool set, and remote authorization.