health_check
Verify that the Lawstronaut MCP server and its backing services (database, cache) are reachable and responding. Returns the overall status, per-service status, server version, and a UTC timestamp.
When to use: Call at the start of a session to confirm connectivity before running any data tools, or when a previous tool call returned an unexpected error and you want to diagnose whether the service itself is down. When not: Do not call on every tool invocation — use it only for diagnostic purposes. It does not return legal data.
Parameters: Takes none — invoke with {}. No filters, pagination, or auth-scoped data.
Behavior: Read-only: one lightweight SELECT 1 against the database and one PING against the cache. Does not create, update, or delete any records. Auth: tools/call requires OAuth 2.0 or a Bearer token (401 if missing, invalid, revoked, or no active subscription). Rate limits: none at the MCP layer; safe to retry. If the database is unreachable the overall status will be 'degraded'. If only the cache is unreachable the overall status will be 'degraded'. Both must be healthy for status 'ok'.
Returns: status ('ok' | 'degraded'), version string, utc_timestamp, and a services object with db and cache each reporting their own status ('ok' | 'error') plus optional latency_ms.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "health_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | Overall health status | |
| version | Yes | MCP server version | |
| services | Yes | ||
| utc_timestamp | Yes | UTC timestamp of the health check |