connect_agent
Atomically create a User(kind='agent') + Membership + Integration in the target org and return the bearer token exactly once. Caller must be owner or admin. The token is pasted into the agent runtime (Lambda / MCP client / automation workflow / custom worker) and authenticates as the agent User on every subsequent call (spec §4.5). Mirrors POST /v1/orgs/{id}/agents.
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": {
"org_id": "<org_id>",
"display_name": "<display_name>"
},
"name": "connect_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | member | |
| org_id | Yes | ||
| avatar_url | No | ||
| display_name | Yes | ||
| can_create_boards | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||