Skip to content

McpExternalOperationCreateRequest

Creates a tool that calls an MCP connector.

Kind: an object, used in requests.

FieldTypeRequiredDescription
namestringyesThe tool’s name, unique within its namespace (under 150 characters). The model calls the tool by it. Constraints: maxLength: 150, required (empty or whitespace-only strings are rejected).
connectorIduuidyesThe id of the connector the tool calls. Constraints: required (empty or whitespace-only strings are rejected).
connectorVersioninteger | nullThe connector version to build on. Omitted: the connector’s latest enabled version when the tool is saved. A tool version always calls one exact connector version. Constraints: range: 1..2147483647.
requestBindingsConnectorBinding[]yesFixed values for fields of the request body, which the model never sees or chooses ([] for none). Constraints: required (empty or whitespace-only strings are rejected).
authenticationHeaderConnectorAuthenticationHeader| nullThe credential sent with every call, from a secret. The connector needs Header authentication.
promptGuidancestring | nullWhen and how to use the tool, written for the model (under 10,000 characters). Omitted: the connector’s description. Constraints: maxLength: 10000.
requiresApprovalbooleanWhether a person must approve each call before it is made. The run waits with status PendingApproval.
{
"name": "...",
"connectorId": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
"connectorVersion": 0,
"requestBindings": [
{
"target": "...",
"value": "..."
}
],
"authenticationHeader": {
"headerName": "...",
"secretId": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f"
},
"promptGuidance": "...",
"requiresApproval": false
}
  • tools.createMcp (POST /namespaces/{namespaceName}/external-operations/mcp)