Home / Servers / OpenAI API / update_agent

Update an agent

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

Update an agent Updates a reusable agent. See agent configuration. [POST /agents/{agent_id}]

Name on the gateway: openai_api__update_agent · may change things.

Parameters

NameTypeDescription
agent_id requiredstringThe ID of the reusable agent.
experimentalobjectExperimental settings to merge by key. Omitted settings keep their current…
modelstringThe model to use for the agent. The requested model name is preserved.
reasoningobjectConfiguration for model reasoning. Omit to keep the current settings; pass…
textobjectConfiguration for text generated by the agent.
service_tierauto | default | flex | priority | fast | ultrafastThe service tier used for model requests.
instructionsstringAdditional instructions appended to the agent's default base instructions.…
multi_agentobjectConfiguration for creating and coordinating subagents.
compactionobjectContext compaction settings. Omit to keep the current settings. A supplied…
metadataobjectReplaces all metadata. Omit to leave unchanged, or pass null or {} to clear…
namestringA replacement name. Omit to leave unchanged, or pass null to clear it.
toolsarrayReplaces the tool list. Omit to leave it unchanged, or pass null to clear it.…

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__update_agent",
  "arguments": {
    "agent_id": "…"
  }
}

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 update an agent tool with agent_id set to ….

More from OpenAI API