Skip to main content
Glama
F6-Security

F6 XDR MCP Server

Official
by F6-Security

xdr_count

Read-only

Count records in an XDR section, with an optional query filter to tally only matching entries. Use it to gauge dataset size or scope a search.

Instructions

Get the total count of records in an XDR section. Optionally filter by query to count matching records only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryNoSearch query string using field:value syntax, e.g. 'resolved : "false" AND severity : "critical"'. Pass an empty string to list the whole section unfiltered — deliberately, since that can be a very large number of records. Fields can be combined with AND, OR, AND NOT, OR NOT and grouped with parentheses. Call xdr_get_mapping for the fields a section accepts, and xdr_get_filters for the values an enumerated field takes — a value outside that set returns zero results rather than an error. Time filtering uses the timestamp field, relative (timestamp >= now-1d, now-6h) or absolute (timestamp >= "2024-01-01T00:00:00.000+03:00"). The calendar-rounding forms now/d, now/w and now/M return nothing, so use now-1d and the like. Note that timestamp is a search field: the ordering parameter takes an entirely different set of names. For the "applications" section, filter by asset, e.g. (asset: "<machine_id>"). A query the API cannot parse is not rejected — it is treated as free text, so verify that the results match what you asked for. (optional)
sectionYesSection name, one of: alerts, incidents, emails, files, events, connections, assets, modules, audit, applications

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

The description (and its embedded schema text) discloses many behaviors beyond the readOnlyHint and openWorldHint annotations: empty query returns the whole unfiltered section, unparseable queries are treated as free text rather than rejected, calendar-rounding time forms return nothing, and enumerated-field mismatches return zero results. This is rich, non-obvious behavioral context that helps the agent avoid pitfalls.

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?

The description is two short sentences that front-load the core purpose ('Get the total count of records in an XDR section') and add the key optional-filter nuance. No filler or redundancy; every word earns its place.

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

Completeness4/5

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

The description is complete for the main purpose, and the schema covers the query intricacies. It does not explicitly state the return value (e.g., an integer count), but given the tool's simplicity and the absence of an output schema, that is a minor omission. The description adequately equips an agent to call the tool correctly.

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%, and the schema's parameter descriptions are already extremely detailed, covering syntax, examples, and edge cases. The tool description adds no additional parameter meaning beyond what the schema provides, so the baseline of 3 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 states a specific verb ('Get') and resource ('total count of records in an XDR section'), and distinguishes it from siblings like xdr_search (which would return records rather than a count). The purpose is immediately unambiguous and not a tautology.

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

Usage Guidelines4/5

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

The description implies usage for counting rather than retrieving records, and the query parameter documentation (in the schema) provides extensive guidance on filtering syntax and edge cases. However, it does not explicitly name alternatives like xdr_search or state when to prefer this tool over them, so the routing is implied rather than explicit.

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/F6-Security/xdr-mcp'

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