CorefinityCorefinityDocs
Open the Control PanelControl Panel
Logs · 19 of 20

corecluster_logs_context_get

Lines around a CoreCluster log line.

Scope readNo secrets returnedCoreCluster
On this page

When to use it

The lines just before and after one log line from corecluster_logs_query (its stream and time), oldest first: what happened around it. Send the same sites and environment the query read.

Ask for it

Prompt
Using the Corefinity MCP server, call corecluster_logs_context_get with cluster_id 812, environment all, line 000000070000000081d2c4e9a1b3f5d7c9e0a2b4c6d8e0f1,2026-10-20T09:53:30Z. (Lines around a CoreCluster log line.) Tell me what it returned.

Inputs

afterinteger

Defaults to 20. 0 to 100.

beforeinteger

Defaults to 20. 0 to 100.

cluster_idintegerRequired

The CoreCluster. At least 1.

environmentstring

Production (the default): each site's production row; all: its environments too. Defaults to production.

productionall
linestringRequired

<stream_id>,<time> from a query line. Up to 200 characters.

sitesarray of integers

The site ids (production rows) of this cluster to read, each once; omitted or empty: every site you may see on it. corestack_site_list with cluster_id names them. Up to 200 items.

Example call

tools/call
{
  "name": "corecluster_logs_context_get",
  "arguments": {
    "cluster_id": 812,
    "environment": "all",
    "line": "000000070000000081d2c4e9a1b3f5d7c9e0a2b4c6d8e0f1,2026-10-20T09:53:30Z"
  }
}

If it is refused

ReasonWhat to do
line_not_foundThe line is not one this read may see — outside the retention, outside sites / environment or the token's pins, or not a line at all. Run the query again.
logs_not_collectedNone of the sites read has its logs collected on this cluster yet (or none is left after sites, environment and the token's pins); nothing to read.
logs_cluster_unavailableLogs cannot be read at the moment; try again shortly.
tenant_mismatchAlso answers a platform cluster, and a sites entry that is not one of this cluster's sites you may see.
invalid_argumentsThe arguments do not match the tool's input schema, or the Control Panel refused a field. Fix the fields named in the answer and call again.
scope_requiredThe token lacks a scope this call needs. Open the link in the answer to add it, then call again.
pin_refusedThe grant is limited to chosen clusters, sites or environments, and this call is outside them. Open the link in the answer to widen it.
rate_limitedToo many calls. Wait for the number of seconds the answer names.
temporarily_unavailableThe Control Panel could not answer just now. Nothing was started; try again shortly.
internal_errorSomething went wrong on our side. Quote the trace id to support.
logs_busySee how this server works.

The answer

{line, before[], after[]}, each line with its site; before and after oldest first.

A token limited to some sites

The read holds only the rows the token's pins cover — its lines, and an export's file. A sites entry outside the pins is pin_refused naming that site. Under a token limited to some environments of a site, leave sites out and send environment: "all": the read then covers exactly the rows the token may read.

The same task elsewhere

Was this helpful?
Open in ClaudeOpen in ChatGPT