Rebuild an org's custom tools, MCP providers, and dependent agents
Invalidates the org’s tool caches, reloads custom tools (from tools table) and DB-backed MCP tools (from tool_providers where type=‘mcp’), then rebuilds every agent in the org whose agentTools reference at least one of those tools (active version per agent).
Authorizations
Org API key (scopes the request to its organization) or the shared trusted key (requires X-Organization-Id on every request).
Headers
Organization to scope the request to. Optional when authenticating with an org API key (the org is taken from the key; if sent, it must match). Required when authenticating with the trusted key.
End-user identity for the request; user-scoped data (threads, memory) resolves to {orgId}_{userId}. Required by endpoints that read or write user-scoped resources. A userId query param (or body field, where documented) is accepted as a fallback.
Body
Organization ID (required only for JWT auth, resolved from API key auth)
Response
Org tools refreshed and dependent agents rebuilt
