Health Monitoring
AgentCube reports health at two levels. The Context Engine tells you, for every connector and every data source, whether it is working and, if not, why — as one status, one reason and one plain-English sentence. Each connector also exposes its own /health endpoint describing its process and its backend connection. This page covers both, and how to monitor them.
Connector health in the Context Engine
Section titled “Connector health in the Context Engine”Every connector the Context Engine knows about carries a health block. The same block, derived the same way, appears everywhere health is shown: the get_status tool, the systems API, the data sources API, and the admin pages.
"health": { "status": "unavailable", "reason": "connector_unreachable", "message": "AgentCube cannot reach this data source right now, so it is temporarily unavailable. Contact your AgentCube administrator if this continues.", "last_checked_at": "2026-09-25T14:00:03Z", "last_success_at": "2026-09-25T13:41:12Z"}| Field | Description |
|---|---|
status | One of four values, with the same meaning everywhere: healthy, warning, unavailable, unknown. |
reason | Why it has that status — one of the reasons below. Build alerts and automation on reason, not on message. |
message | One sentence saying what the reason means, written for the people using the data source. |
last_checked_at | When the Context Engine last checked this connector, or null if it has not yet. |
last_success_at | When a request through this connector last succeeded, or null. |
The systems API (GET /api/v1/systems) also returns next_attempt_at — when a paused sign-in will be retried — and a details object with the evidence behind the verdict, for troubleshooting with support. The get_status tool that AI platforms call carries only the five fields above, plus, when sign-in is paused, a stable reason_code matching the one on refused calls.
Statuses and reasons
Section titled “Statuses and reasons”The Context Engine checks the connector’s evidence in this order and reports the first thing that is wrong:
reason | status | What it means | What clears it |
|---|---|---|---|
sign_in_paused | unavailable | The backend kept rejecting the connector’s stored service-account credentials, so the Context Engine has paused sign-ins to avoid locking the account. | Update the connector’s credentials (resumes at once), or wait for the automatic retry at next_attempt_at. |
backend_unreachable | unavailable | The connector is reachable but its backend system is not answering, or requests to the connector keep failing. | The backend recovering; the Context Engine retries automatically. |
connector_unreachable | unavailable | The last check could not reach the connector at all. | The connector running again at its registered URL; the next check clears it. |
check_overdue | warning | Scheduled checks for this connector have stopped happening, so its status may be out of date. | The connector’s discovery job running again (see Scheduled jobs). |
checks_paused | warning | An administrator turned off this connector’s scheduled checks. | Enabling its discovery job. |
recent_call_failures | warning | Recent requests or sign-ins failed, but the connector is still in service. | The next successful request. |
slow | warning | The backend is answering, but slowly. | The backend answering at normal speed at the next check. |
awaiting_first_call | unknown | A connector that signs in as each user (pass-through or per-user tokens) has not been used yet, so there is nothing to judge it by. | The first successful request. |
not_checked_yet | unknown | A newly added connector has not been checked yet. | The first check, shortly after it is added. |
ok | healthy | Checked and working. | — |
A connector never reads healthy without evidence: it needs a successful check or, for a pass-through connector, a successful request.
When sign-in is paused, the message people see is always the same: “The service account for this data source could not sign in, so it is temporarily unavailable. Contact your AgentCube administrator.” The admin pages show administrators the detail instead — until when it is paused and how to resume it.
Data-source health
Section titled “Data-source health”Each data source carries its own health block: the worst of its connectors wins, and connectors lists each bound connector with its own status and reason.
"health": { "status": "warning", "reason": "slow", "message": "This data source is responding slowly.", "connectors": [ {"connector_id": "{connector_id}", "status": "warning", "reason": "slow"} ]}A data source bound to a connector that is no longer registered reads unavailable / connector_missing; one with no connectors bound reads unknown / no_connectors.
Where to read it
Section titled “Where to read it”- Admin UI — the Data Sources page shows a dot and a sentence per data source, each linking to its connectors; the Connected Systems page shows a dot and a reason per connector; a connector’s own page shows the full sentence, when it was last checked and last used successfully, and the details behind it; the dashboard lists every connector.
get_status— the tool AI platforms call carries each connector’s and data source’s health.- REST —
GET /api/v1/systemsper connector,GET /api/v1/admin/data-sourcesper data source. /health— the Context Engine’s public health endpoint counts connectors by status in itsconnectorsblock (totalandby_status).GET /api/v1/healthis the versioned liveness equivalent, and the authenticatedGET /api/v1/statusreturns every registered connector with its health and backend check.
The Context Engine’s /health endpoint
Section titled “The Context Engine’s /health endpoint”GET {ce_url}/health needs no authentication. It carries the same top-level fields as a connector’s /health (below), with backend_system set to AgentCube Context Engine, plus these blocks: persistence (database reachability and schema version), audit_writer, connectors (the total and by_status counts) and license. The response never includes the database host or name.
The license block reports the installed license as the Context Engine last validated it:
| Field | Description |
|---|---|
status | valid, invalid, expired, suspended, instance_limit_exceeded, unreachable or uninitialized. Only valid allows new data sources to be added. |
installed, installed_at | Whether a license key is installed, and when. |
validated_at | When the licensing service last answered. |
license_key_hash | A short hash of the installed key, for matching it with the License page. The key itself is never returned. |
expires_at, entitlements | The license’s expiry and what it entitles. |
data_source_cap | How many active data sources the license allows. |
data_source_provisioning | allowed_by_license or blocked_by_license, with data_source_provisioning_blocked_reason when blocked. |
error_class, error_detail | Why the last validation did not succeed, when it did not. |
With no license installed, the block reads installed: false, status: "unreachable", error_detail: "No license is installed. Install a license to continue." and data_source_provisioning: "blocked_by_license". If the license is missing, expired or cannot be validated, adding data sources is blocked until it validates. The admin console’s Admin & Security → License page shows the same state.
Connector Health Endpoint
Section titled “Connector Health Endpoint”Each connector also exposes /health on its own host, describing the connector process and its backend connection. Fields with no value are left out of the response.
Invoke-RestMethod -Uri "{connector_url}/health" | ConvertTo-Json -Depth 5curl {connector_url}/healthConnector Response Fields
Section titled “Connector Response Fields”| Field | Description |
|---|---|
status | healthy or unhealthy. Only basic mode runs a live service-account check and can return unhealthy (with HTTP 503); the other modes always report healthy |
version | Connector version (e.g., 3.x.y) |
uptime_seconds | Seconds since container start |
timestamp | Current UTC timestamp |
backend_connected | true/false from a service-account probe in basic mode. Absent in other modes (null in mcp_connector_status), where the backend is verified per authenticated request instead |
backend | Unauthenticated reachability probe of the backend, present in every auth mode: status (healthy, degraded when a response takes 2 seconds or longer, or unreachable), last_check_at, last_check_duration_ms, last_error |
last_successful_backend_call | When a request to the backend last succeeded |
cache_ready, last_metadata_sync | Planning and FCCS only: whether the metadata cache is loaded, and when it last synced |
backend_system | Backend system type (Oracle Essbase, Oracle EPM Planning Cloud, or Oracle Financial Consolidation and Close Cloud Service) |
backend_url | Configured backend endpoint URL |
connector_id | Connector identifier (default agentcube-essbase, agentcube-planning, or agentcube-fccs; set by AGENTCUBE_CONNECTOR_ID) |
sdk_version | AgentCube SDK version embedded in this build |
auth_mode | Current authentication mode (basic, delegated_basic, internal, or oidc) |
oidc_issuer | OIDC discovery URL (oidc mode only; internal mode reports internal_issuer / internal_jwks_url instead) |
backend_note | Additional context (e.g., OIDC mode backend verification note) |
When the AI platform connects directly to a connector, the mcp_connector_status tool returns the same information from inside the conversation. Through the Context Engine, use get_status instead.
Monitoring Recommendations
Section titled “Monitoring Recommendations”- Alert on
reason, per connector and per data source — read the systems API or the data sources API on a schedule and alert when astatusisunavailable, orwarningfor longer than you are comfortable with.sign_in_pausedneeds an administrator: the stored credentials have to be fixed. - Probe the Context Engine’s
/healthfor liveness — it is public and cheap. Itsby_statuscounts are per instance and come from memory, so treat them as a quick signal and alert on the authenticated APIs above. - Probe each connector’s
/healthand alert onbackend.status: unreachable(any mode) — the connector cannot reach its backend. Inbasicmode, also alert onstatus: unhealthy/ HTTP 503. - Monitor
uptime_seconds— unexpected resets indicate container restarts. - Check after deployments — verify
versionmatches the deployed version.
Modes Without a Service-Account Probe
Section titled “Modes Without a Service-Account Probe”In delegated_basic (credentials forwarded per call by the Context Engine), internal and oidc modes, the connector holds no credentials of its own, so its /health has no backend_connected field. This is expected. The backend probe still confirms the backend is reachable without a user context; an authenticated call confirms the credentials work. In the Context Engine, a connector reached with pass-through or internal (per-user token) auth reads awaiting_first_call until its first request succeeds.
To verify backend connectivity in these modes:
- Authenticate via your AI platform
- Make an authenticated data call — directly against a connector this is
test_datasource; through the Context Engine it is the genericget_datatool — which makes an authenticated request to the backend and confirms connectivity