Declare a connection
declare_connectionDeclares an external API (domain, authentication without a secret, callers), to be approved; a person enters the secret in while.
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": {
"name": "<name>"
},
"name": "declare_connection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apps | No | Calling services and tasks (web, task:charger); by default, those of the while.yaml that declare it. | |
| name | Yes | Lowercase, digits, hyphens: weather, accounting. | |
| read | No | Patterns read with POST, allowed during learning: /api/v1/searches. | |
| label | No | The displayed name ("Pennylane"). | |
| model | No | An AI or Snowflake (account, user, role, warehouse): domain and recipe set automatically. | |
| owner | No | Email of the owner; by default, the signed-in user. | |
| rules | No | Approved with the declaration, they apply from the learning period on; federated: required. A POST that reads: its pattern also in read. | |
| domain | No | API host name, no path: api.example.com. | |
| update | No | An existing connection: read becomes the wanted list; removing applies at once, adding goes through approval. | |
| project | No | The project of the calling apps; by default, the token's. | |
| direction | No | The apps will also write (POST, PUT, PATCH, DELETE). | read |
| organization | No | The organization. | |
| learning_days | No | Days of learning. | |
| authentication | No | Recipe, no secret: none; header {name, prefix}; parameter {name}; basic; bearer; oauth2 {token_url|issuer, scope, client_auth basic|body, header}; session {login_url, token_field, duration_seconds}; jwt {mode exchange|client_assertion|direct, token_url|issuer, alg RS256|ES256, duration_s, claims {iss, aud, scope, sub}, client_id, scope}, signed by while; model google {client_email, scopes}, salesforce {client_id, sub}, microsoft {tenant_id, client_id, scope, x5t}; federated: google {project_number, pool, provider, scopes, service_account?}, azure {tenant, client_id, scope}, generic {exchange_url}. | |
| rate_per_minute | No | Calls allowed per minute. | |
| secondary_domains | No | Hosts relayed without a key (/~<host>/…). |