Skip to content
POST /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

idstring
required·

Connection id (conn_…).

Response Body

summaryobject
required
addedstring[]

The first 20 names new to the connector’s registry.

added_countinteger

How many names are new to the connector’s registry.

changedstring[]

The first 20 names whose definitions changed.

changed_countinteger

How many names’ definitions changed.

removedstring[]

The first 20 names this connection stopped listing.

removed_countinteger

How many names this connection stopped listing.

tier_changedstring[]

The first 20 names whose tier on this connection's own definition changed, in either direction.

tier_changed_countinteger

How many names' tier on this connection's own definition changed, in either direction.

tier_changesobject[]

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
fromstring
Possible values:
readwritedestructive
namestring
tostring
Possible values:
readwritedestructive
listedinteger

Tools this connection lists now.

tools_refresh_errorstring
tools_refreshed_atstring · date-time
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())