Home / Servers / OpenAI API / create_platformworkloadidentityfederationrule

Create Platform workload identity federation rule

An MCP tool from the OpenAI API server, hosted on mcp.hjlabs.in.

Create Platform workload identity federation rule Bind verified token attributes to an existing project service account. [POST /organization/workload_identity_providers/{workload_identity_provider_id}/federation_rules]

Name on the gateway: openai_api__create_platformworkloadidentityfederationrule · may change things.

Parameters

NameTypeDescription
workload_identity_provider_id requiredstringworkload_identity_provider_id parameter
project_id requiredstring
service_account_id requiredstring
namestring
descriptionstring
attribute_matchers requiredobject
permissionsobject
enabledboolean

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_api__create_platformworkloadidentityfederationrule",
  "arguments": {
    "workload_identity_provider_id": "…",
    "project_id": "…",
    "service_account_id": "…",
    "attribute_matchers": "…"
  }
}

Or connect the OpenAI API server directly, which lists 371 tools including this one:

Run in your terminal
claude mcp add --transport http hj-openai-api https://mcp.hjlabs.in/mcp/openai-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the create platform workload identity federation rule tool with workload_identity_provider_id set to ….

More from OpenAI API