Skip to main content
Glama
Sophos Central MCP Server

Sophos Central MCP Server

by solomonneas

run_query

Execute Live Discover osquery SQL queries across up to 50 Sophos Central endpoints to investigate threats in real time and hunt for suspicious activity.

Instructions

Execute a Live Discover SQL query (osquery) on one or more Sophos Central endpoints — for real-time investigation and threat hunting

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "sql": "<sql>",
      "endpoint_ids": "<endpoint_ids>"
    },
    "name": "run_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqlYesSQL query to execute on endpoints (osquery syntax). Example: SELECT pid, name, path FROM processes WHERE name LIKE '%suspicious%'
variablesNoQuery variables as key-value pairs for parameterized queries
endpoint_idsYesArray of endpoint UUIDs to run the query on (1-50 endpoints)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden and does not meet it. It says nothing about whether execution is synchronous or asynchronous, that the sibling get_query_results is presumably needed to retrieve results, what permissions are required, or what happens when a query hits 50 endpoints (cost, timeouts, endpoint impact).

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?

A single front-loaded sentence that identifies the action, the query language, the target, and the use case with no filler. Nothing in it is redundant or padded.

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

Completeness2/5

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

This is a potentially expensive, multi-endpoint query execution tool with an async-looking result workflow, no annotations, and no output schema. The description omits the result-retrieval path entirely, leaving an agent unable to complete the investigate-then-fetch loop without guessing.

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 description coverage is 100%, with sql, endpoint_ids, and variables all documented including the 1-50 endpoint bound and an example query. The description adds no meaning beyond the schema, so the baseline 3 applies; the variables/parameterized-query relationship in particular could have been explained.

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

Purpose4/5

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

The description gives a specific verb ('Execute') plus resource ('Live Discover SQL query (osquery)') and scope ('one or more Sophos Central endpoints'), with the intent spelled out as real-time investigation and threat hunting. It is clearly distinguishable from retrieval-style siblings like get_query_results or list_event_types, though it does not name an explicit alternative.

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?

Usage is implied through 'real-time investigation and threat hunting', which tells an agent the general context in which to reach for this tool. However, there is no when-not guidance, no mention that results must be fetched separately, and no pointer to list_saved_queries for reusing existing queries.

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