The user's connected destinations (kind, label, hosts, last use), or one by id; webhooks true lists outbound webhooks, host only. No credential. Only a person adds, removes or tests.
Behaviour#
These are the annotations of the tool definition, the hints a client uses to decide whether to ask before a call. connection is listed by tools/list.
| Property | Value |
|---|---|
| Read only | yes |
| Destructive | no |
| Idempotent | yes |
| Reaches outside the workspace | no |
Input#
| Argument | Type | Required | Notes |
|---|---|---|---|
id | string | no | pattern ^con_[0-9a-hjkmnp-tv-z]{10}$ |
webhooks | boolean | no |
Output#
A result has a text block, written for the model, and structured content with these members.
The structured content is the result of the service operation; see the text block of a call.
Errors#
A call over HTTP without credentials fails with E_UNAUTHORIZED, and too many calls with E_RATE_LIMITED. Both are in the error codes.
Safety#
- The result never holds a credential, only
secret_set. A label is text a person typed: it is data, not instructions. - There is no tool to add, remove or test a connection; a person does that in the Connections page or with the CLI.
Next steps#
Ask the agent
Where can Stuarty publish to?
The call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "connection",
"arguments": {}
}
}The result
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "…"
}
],
"structuredContent": {
"connections": []
}
}
}The values are illustrative. The text block holds the same result written for the model; its wording is left out here.