> ## Documentation Index
> Fetch the complete documentation index at: https://docs-xcor.paloaltonetworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Cortex XCOR MCP server tools

> Learn about the tools that you can interact with using the Cortex XCOR MCP server.

The Palo Alto Networks Cortex XCOR MCP server supports the tools in the following
table. After [authenticating](https://docs-xcor.paloaltonetworks.com/integrate/mcp-server/authenticate.md), you can
query Cortex XCOR and interact with resources from within your code editor.

## Get tools

The following tools return individual resources, such as a single dashboard, monitor,
or log.

| Tool type | Endpoint | Description |
| - | - | - |
| [API](https://docs-xcor.paloaltonetworks.com/tooling/api-info/definition/operations/ReadClassicDashboard.md) | `get_classic_dashboard` | Get classic dashboards tools. |
| [API](https://docs-xcor.paloaltonetworks.com/tooling/api-info/definition/operations/ReadDashboard.md) | `get_dashboard` | Get dashboards tools. |
| [API](https://docs-xcor.paloaltonetworks.com/tooling/api-info/definition/operations/ReadDropRule.md) | `get_drop_rule` | Get drop rules tools. |
| [API](https://docs-xcor.paloaltonetworks.com/tooling/api-info/definition/operations/ReadMappingRule.md) | `get_mapping_rule` | Get mapping rules tools. |
| [API](https://docs-xcor.paloaltonetworks.com/tooling/api-info/definition/operations/ReadMonitor.md) | `get_monitor` | Get monitors tools. |
| [API](https://docs-xcor.paloaltonetworks.com/tooling/api-info/definition/operations/ReadNotebook.md) | `get_notebook` | Get a notebook's Markdown content by its slug. |
| [API](https://docs-xcor.paloaltonetworks.com/tooling/api-info/definition/operations/ReadNotificationPolicy.md) | `get_notification_policy` | Get notification policies tools. |
| [API](https://docs-xcor.paloaltonetworks.com/tooling/api-info/definition/operations/ReadRecordingRule.md) | `get_recording_rule` | Get recording rules tools. |
| [API](https://docs-xcor.paloaltonetworks.com/tooling/api-info/definition/operations/ReadRollupRule.md) | `get_rollup_rule` | Get rollup rules tools. |
| [API](https://docs-xcor.paloaltonetworks.com/tooling/api-info/definition/operations/ReadSLO.md) | `get_slo` | Get SLO tools. |
| Events | `get_events_metadata` | List properties you can query on events. |
| Logs | `get_log` | Get a full log message by its ID. The ID is the unique identifier for the log. |
| Logs | `get_log_histogram` | Get histogram of logs from a given query. |

## List tools

The following tools list multiple resources, such as a list of all available
dashboards, monitors, and log field names.

| Tool type | Endpoint | Description |
| - | - | - |
| [API](https://docs-xcor.paloaltonetworks.com/tooling/api-info/definition/operations/ListClassicDashboards.md) | `list_classic_dashboards` | List classic dashboards tools. |
| [API](https://docs-xcor.paloaltonetworks.com/tooling/api-info/definition/operations/ListDashboards.md) | `list_dashboards` | List dashboards tools. |
| [API](https://docs-xcor.paloaltonetworks.com/tooling/api-info/definition/operations/ListDropRules.md) | `list_drop_rules` | List drop rules tools. |
| [API](https://docs-xcor.paloaltonetworks.com/tooling/api-info/definition/operations/ListMappingRules.md) | `list_mapping_rules` | List mapping rules tools. |
| [API](https://docs-xcor.paloaltonetworks.com/tooling/api-info/state_definition/operations/ListMetricUsagesByLabelName.md) | `list_metric_usages_by_label_name` | List metric usage statistics grouped by label name. Use this tool to find unused or high-cardinality labels that could be dropped. |
| [API](https://docs-xcor.paloaltonetworks.com/tooling/api-info/state_definition/operations/ListMetricUsagesByMetricName.md) | `list_metric_usages_by_metric_name` | List metric usage statistics grouped by metric name. Use this tool to find unused or underutilized metrics that could be dropped to reduce costs. |
| [API](https://docs-xcor.paloaltonetworks.com/tooling/api-info/definition/operations/ListMonitors.md) | `list_monitors` | List monitors tools. |
| [API](https://docs-xcor.paloaltonetworks.com/tooling/api-info/definition/operations/ListNotebooks.md) | `list_notebooks` | List notebooks. Filter the results by collection, name, or slug. |
| [API](https://docs-xcor.paloaltonetworks.com/tooling/api-info/definition/operations/ListNotificationPolicies.md) | `list_notification_policies` | List notification policies tools. |
| [API](https://docs-xcor.paloaltonetworks.com/tooling/api-info/definition/operations/ListRecordingRules.md) | `list_recording_rules` | List recording rules tools. |
| [API](https://docs-xcor.paloaltonetworks.com/tooling/api-info/definition/operations/ListRollupRules.md) | `list_rollup_rules` | List rollup rules tools. |
| [API](https://docs-xcor.paloaltonetworks.com/tooling/api-info/state_definition/operations/ListRuleEvaluations.md) | `list_rule_evaluations` | List rule evaluation issues for monitors and recording rules so you can identify rules that are failing or having problems. |
| [API](https://docs-xcor.paloaltonetworks.com/tooling/api-info/definition/operations/ListSLOs.md) | `list_slos` | List SLO tools. |
| Events | `list_events` | List events from a given query. |
| Events | `list_events_label_values` | List values for a given label name. |
| Logs | `list_log_field_names` | List field names of logs. |
| Logs | `list_log_field_values` | List field values of logs. |
| Monitors | `list_monitor_statuses` | Lists the current status of all monitors. Returns monitor statuses with alert states and optional signal and series details. |
| Metrics | `list_prometheus_label_names` | Returns the list of label names (keys) available on metrics that match the given selectors. Use this tool when you need to discover what labels are available on specific metrics or services. |
| Metrics | `list_prometheus_label_values` | Returns the list of values for a specific label name, optionally filtered by selectors. Use this tool when you know the label name and want to discover what values it has across your metrics. |
| Metrics | `list_prometheus_series` | Returns the complete time series (full label sets with all key-value pairs) that match the given selectors. Each result shows the exact combination of labels for an active time series. |
| Metrics | `list_prometheus_series_metadata` | Returns metadata for the given metric in the form of `type`, `help`, and `unit`. |
| Traces | `list_traces` | List traces from a given query. |

## Query tools

The following tools run a query for a particular data type, such as a query for log data.

| Tool type | Endpoint | Description |
| - | - | - |
| Logs | `query_logs_range` | Execute a range query for logs. This endpoint returns logs as either `timeSeries` or `gridData`. This query might return a large amount of data, so use a shorter range such as one hour. |
| Metrics | `query_prometheus_instant` | Evaluates a Prometheus instant query at a single point in time. |
| Metrics | `query_prometheus_range` | Executes a Prometheus PromQL query over a specified time range and returns time series data points in JSON format. Supports standard PromQL syntax plus Cortex XCOR custom functions. |
| Metrics | `render_prometheus_range_query` | Evaluates a Prometheus expression query over a range of time and renders it as a PNG image. |

## Write tools

Write tools modify Cortex XCOR resources. Configure write access before using the tools.

### Enable write access

The Cortex XCOR MCP server provides read-only access by default. Enable write access
for a connection by adding the `X-Chrono-MCP-Read-Only: false` header or the
`?read_only=false` query parameter. Enabling write access exposes available write
tools to the MCP client. You can
[hide specific tools](#customize-available-tools). Select your MCP client for an
example:

> [tab] Claude Code
>
> Include the following option in the `claude mcp add` command:
>
> ```text theme={null}
> --header "X-Chrono-MCP-Read-Only: false"
> ```

> [tab] Cursor
>
> Add the following property to the `headers` object for the Cortex XCOR MCP server in
> `mcp.json`:
>
> ```text theme={null}
> "X-Chrono-MCP-Read-Only": "false"
> ```

> [tab] MCP server URL
>
> For an MCP client configured by URL only, append the query parameter to the MCP server
> URL:
>
> ```text theme={null}
> https://TENANT.chronosphere.io/api/mcp/mcp?read_only=false
> ```

The tenant's `allowWritesByDefault: true` environment configuration setting enables
write access by default. An explicit read-only header or query parameter overrides the
tenant setting. Write access doesn't override the permissions associated with the
account or token used to authenticate the connection.

### Create and update notebooks

After enabling write access, use the following tools to create or update notebooks:

| Tool type | Endpoint | Description |
| - | - | - |
| [API](https://docs-xcor.paloaltonetworks.com/tooling/api-info/definition/operations/CreateNotebook.md) | `create_notebook` | Create a notebook from Markdown. Specify a collection slug or the user collection is used by default. |
| [API](https://docs-xcor.paloaltonetworks.com/tooling/api-info/definition/operations/UpdateNotebook.md) | `update_notebook` | Update a notebook from Markdown. The tool preserves the notebook title unless you provide a new name. |

Both tools accept Markdown instead of `notebook_json`. If you omit
`collection_slug` when creating a notebook, Cortex XCOR uses or creates your user
collection.

The `update_notebook` tool replaces the notebook's complete Markdown content. To
avoid overwriting a newer change, pass the `updated_at` value returned by
`list_notebooks` as `expected_updated_at`. Both write tools remove a leading level-one
heading when it exactly matches the notebook title.

The MCP server doesn't provide a tool to delete notebooks.

## Customize available tools

By default, the Cortex XCOR MCP server exposes all available tools to your MCP
client. You can use the `X-Chrono-MCP-Disable-Tools` header to selectively hide
specific tools from your client's tool list.

The header accepts a comma-separated list of tool names. Tool names must match the
endpoint names listed in the tools table on this page. Whitespace between entries is ignored,
and unknown tool names are silently ignored. Select your MCP client for instructions:

> [tab] Claude Code
>
> To disable specific tools when using Claude Code, include the
> `X-Chrono-MCP-Disable-Tools` header when adding the MCP server:
>
> ```shell /TENANT/ /API_TOKEN/ /TOOLS/ theme={null}
> claude mcp add --transport http chronosphere "https://TENANT.chronosphere.io/api/mcp/mcp" \
> --header "Authorization: Bearer API_TOKEN" \
> --header "X-Chrono-MCP-Disable-Tools: TOOLS"
> ```
>
> Replace the following:
>
> * *`TENANT`*: The name of your Cortex XCOR tenant.
>
> * *`API_TOKEN`*: The API token generated from your service account. Cortex XCOR
>   recommends storing your API token in a separate file or Kubernetes Secret and
>   calling it using an environment variable, such as `$API_TOKEN`.
>
> * *`TOOLS`*: A comma-separated list of tool names you want to hide. For example:
>
>   ```text theme={null}
>   query_logs_range, render_prometheus_range_query
>   ```
>
> > [!NOTE]
> >
> > To expose all tools, omit the `X-Chrono-MCP-Disable-Tools` header from the command.

> [tab] Cursor
>
> To disable specific tools when using Cursor, add the `X-Chrono-MCP-Disable-Tools`
> header to the `headers` section in your `mcp.json` file:
>
> ```json /TENANT/ /API_TOKEN/ /TOOLS/ theme={null}
> {
>   "mcpServers": {
>     "chronosphere": {
>       "url": "https://TENANT.chronosphere.io/api/mcp/mcp",
>       "headers": {
>         "Authorization": "Bearer API_TOKEN",
>         "X-Chrono-MCP-Disable-Tools": "TOOLS"
>       }
>     }
>   }
> }
> ```
>
> Replace the following:
>
> * *`TENANT`*: The name of your Cortex XCOR tenant.
>
> * *`API_TOKEN`*: The API token generated from your service account. Cortex XCOR
>   recommends storing your API token in a separate file or Kubernetes Secret and
>   calling it using an environment variable, such as `$API_TOKEN`.
>
> * *`TOOLS`*: A comma-separated list of tool names you want to hide. For example:
>
>   ```text theme={null}
>   query_logs_range, render_prometheus_range_query
>   ```
>
> > [!NOTE]
> >
> > To expose all tools, remove the `X-Chrono-MCP-Disable-Tools` line from the `headers`
> > section.


## Related topics

- [Cortex XCOR MCP server](https://docs-xcor.paloaltonetworks.com/integrate/mcp-server.md)
- [Authenticate with the Cortex XCOR MCP server](https://docs-xcor.paloaltonetworks.com/integrate/mcp-server/authenticate.md)
- [Integrate with Cortex XCOR](https://docs-xcor.paloaltonetworks.com/integrate.md)
- [Cortex XCOR tools](https://docs-xcor.paloaltonetworks.com/tooling.md)
- [Get started with Cortex XCOR](https://docs-xcor.paloaltonetworks.com/overview/get-started.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.