Prepare Agent Connection
prepare_agent_connectionCreate a short-lived, single-use connection setup session for a direct agent endpoint.
Validates the requested endpoint configuration against the agent's
platform (see `get_agent_connection` for supported `platform_config`
fields and `auth_schemes`) and returns a 15-minute `url` and signed
`ticket` for completing endpoint verification in VAIL. Does not contact
the agent endpoint or modify the saved connection until that session is
submitted and passes VAIL's verification check. Do not pass endpoint
credentials in MCP tool arguments.
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": {
"agent_id": "<agent_id>",
"connection": "<connection>"
},
"name": "prepare_agent_connection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | Stable agent ID from list_agents or create_agent. | |
| connection | Yes | Direct endpoint configuration (endpoint_url, auth_scheme, optional auth_header, allow_insecure_http, and platform_config). |