Refresh a remote MCP connection’s tools
/connection/{id}/refresh-tools
Lists the tools the remote MCP server shows THIS connection (with its own credential) again, now, and applies the result to the connector’s registry; a tool new to it is usable at once. A remote MCP connection also refreshes when it becomes active and once a day; this is the on-demand one. No body. Same mutation bar as reconnect (`can_manage`); render controls on the connection’s `can_refresh_tools`, which is present only on a remote MCP connection. Rate limited to one per connection per minute: `429` with `Retry-After`. The `200` carries the diff as the first 20 tool NAMES of each kind (`summary.added`, `changed`, `removed`, `tier_changed`, and `tier_changes` with each tier's direction) plus whole COUNTS (`added_count`, `changed_count`, `removed_count`, `tier_changed_count`), never definitions: a server may list thousands of tools, so the names are a preview and the counts are whole. There is no fixed cap on how many tools a server lists, but each tool counts as at least 2 KiB against the 8 MiB a listing may take, so one listing holds at most 4,096 tools. `403` `connector_not_shared` when the connector's owner stopped sharing it; `409`: `not_remote_mcp`, `not_refreshable` (not active or not bound), `needs_reauth` (the server rejected the credential; the connection is moved to `needs_reauth`), or `tools_refresh_failed` (the message is safe to show and is also on the row as `tools_refresh_error`).
Path Parameters
Connection id (conn_…).
Response Body
The first 20 names new to the connector’s registry.
How many names are new to the connector’s registry.
The first 20 names whose definitions changed.
How many names’ definitions changed.
The first 20 names this connection stopped listing.
How many names this connection stopped listing.
The first 20 names whose tier on this connection's own definition changed, in either direction.
How many names' tier on this connection's own definition changed, in either direction.
The first 20 tier_changed tools with the direction each moved (from this connection's previous definition's tier, to its new one's).
3 properties
readwritedestructive
readwritedestructive
Tools this connection lists now.
curl -X POST 'https://api.elaichi.ai/connection/<id>/refresh-tools' \
-H 'Authorization: Bearer $ELAICHI_API_TOKEN' \
-H 'Content-Type: application/json'const response = await fetch('https://api.elaichi.ai/connection/<id>/refresh-tools', {
method: 'POST',
headers: {
'Authorization': 'Bearer ' + process.env.ELAICHI_API_TOKEN,
'Content-Type': 'application/json',
},
});
const data = await response.json();
console.log(data);import os
import requests
url = "https://api.elaichi.ai/connection/<id>/refresh-tools"
headers = {
"Authorization": f"Bearer {os.environ['ELAICHI_API_TOKEN']}",
"Content-Type": "application/json",
}
response = requests.post(url, headers=headers)
print(response.json())