Register a connection
create_connectionRegister an OpenAI-compatible endpoint: kind=model makes each model pickable as connection// (subject to the Build Envelope); kind=agent is an external agent for create_connected_agent. The API key is NEVER taken here (it would sit in the conversation): add it in Governance > Connections.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ref": "<ref>",
"name": "<name>",
"kind": "<kind>",
"base_url": "<base_url>",
"models": "<models>"
},
"name": "create_connection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Lowercase letters, digits, hyphens (1-32); immutable. | |
| kind | Yes | model or agent. | |
| name | Yes | Display name. | |
| models | Yes | Upstream model names it offers (an agent connection: exactly one). | |
| status | No | active or disabled. | |
| billing | No | {customer_pays_provider: bool (default true = provider cost 0), input_usd_per_million, output_usd_per_million}. | |
| profile | No | Governance profile slug that checks every turn (REQUIRED for an agent connection). | |
| base_url | Yes | The OpenAI-compatible base URL (https, public), e.g. https://models.example.com/v1. | |
| residency | No | Where the endpoint runs. | |
| description | No | What the connection is for. | |
| capabilities | No | {tools, streaming, vision: bool, context_window: int}. | |
| default_model | No | The model used when none is named (default: the first). | |
| send_system_prompt | No | Agent connection: also send the platform agent's system prompt (default off). |