Skip to main content
Glama
rijul170

Sophos Central MCP Server

by rijul170

sophos_run_xdr_query

Execute ad-hoc XDR SQL queries against the Sophos data lake to investigate security events. Returns a run ID for polling status and results.

Instructions

Run an ad-hoc XDR (Extended Detection and Response) SQL query against the Sophos data lake. Returns a run ID to poll for status and results.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesThe SQL query string to execute (15–50000 characters)
to_dateNoEnd of the query time range. ISO 8601 timestamp or ISO 8601 duration.
from_dateNoStart of the query time range. ISO 8601 timestamp (e.g. '2024-01-01T00:00:00.000Z') or ISO 8601 duration (e.g. 'P7D')
tenant_idYesThe tenant ID to run the XDR query against
variablesNoJSON array of variable objects to substitute into the query template. Each object must have: name (string), dataType (double|integer|text|dateTime|boolean), value (string), and optionally pivotType (deviceId|deviceName|sophosPid|ipAddress|username|sha256|filePath|registryKey|url).
query_nameNoHuman-readable name for this query run (default: 'AdHoc')
endpoint_idsNoComma-separated list of endpoint UUIDs to scope the query. If omitted, the query runs against all eligible endpoints.
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden. It discloses the asynchronous nature (returns a run ID to poll) but omits safety, permission requirements, rate limits, and error behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences that are front-loaded with the action, no redundant phrasing, and every part contributes useful information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 7 parameters, no output schema, and moderate complexity, the description covers the basic flow (ad-hoc query, returns run ID) but lacks details on result retrieval, error states, or state management.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and all parameters have descriptions. The tool description adds no extra parameter meaning beyond the schema, so baseline score applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a clear verb-resource pair ('Run an ad-hoc XDR SQL query') and distinguishes from siblings like sophos_get_xdr_query_results and sophos_cancel_xdr_query_run by specifying that it returns a run ID for polling.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies ad-hoc usage but does not explicitly contrast with saved queries (sophos_run_saved_xdr_query) or other query tools. No when-not-to-use or prerequisite guidance is provided.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rijul170/sophos-central-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server