Skip to main content
Glama
Sophos Central MCP Server

Sophos Central MCP Server

by solomonneas

get_query_results

Retrieve tabular results from a completed Live Discover query run, with endpoint filtering and paging, to inspect osquery findings across Sophos Central endpoints.

Instructions

Retrieve results from a completed Live Discover query run — returns tabular data from each endpoint

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": {
      "query_run_id": "<query_run_id>"
    },
    "name": "get_query_results"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number
pageSizeNoNumber of result rows to return (1-500)
endpoint_idNoFilter results for a specific endpoint ID
query_run_idYesQuery run UUID returned by run_query

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
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 does disclose the key precondition (query must be completed) and the shape of the return (tabular data from each endpoint), which are genuinely useful. However it says nothing about pagination over large result sets, result retention/expiry, or failure modes for an unknown query_run_id.

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

Conciseness4/5

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

One front-loaded sentence with the resource and return shape up front and no filler. It is efficient, though it leans short given the pagination surface it covers.

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?

For a 4-parameter read tool with no output schema, the description covers what is returned (tabular data per endpoint) but omits pagination behavior and total-row/count information an agent needs to page through results correctly. Adequate but with a clear gap.

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%, so page, pageSize, endpoint_id, and query_run_id are already fully documented in the schema. The phrase 'from each endpoint' lightly contextualizes endpoint_id but adds no format, default, or interaction detail beyond the structured fields, so the baseline 3 applies.

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?

States a specific verb (retrieve) and resource (results from a completed Live Discover query run), plus a note that output is tabular data per endpoint. The qualifier 'completed' implicitly separates it from a run/execute sibling, though no sibling is named explicitly.

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 word 'completed' hints that a query must first be run, implying the prerequisite to using this tool, but the description never says when to use this versus get_query-/run_query-style alternatives or what to do if the run is still in progress.

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