Skip to main content
Glama

datasets_x_users_facets

Read-only

Count facet values for matching records in the stored X users dataset using the same filters as search. Use datasets_x_users_search for the matching user records.

Input Schema

NameRequiredDescriptionDefault
qNoOptional full-text query over username, name, bio and location, max 256 characters.
pageNoResult page number, 1-based, default 1; page times page_size must not exceed 10000.
sortNoOptional sort order. Allowed values: relevance, followers_desc, followers_asc, crawled_at_desc, crawled_at_asc, created_at_desc, created_at_asc. Defaults to relevance with q, otherwise followers_desc.
facetYesRequired facet to aggregate. Allowed values: is_blue_verified, has_bio, has_external_url, source_tier.
has_bioNoOptional filter for a non-empty profile bio.
usernameNoOptional exact username filter (case-insensitive), max 128 characters.
max_ratioNoOptional maximum follower-to-following ratio, 0 or greater.
min_ratioNoOptional minimum follower-to-following ratio, 0 or greater. Low values surface follow-spam / bot-like accounts.
page_sizeNoPage size, default 20, max 100; page times page_size must not exceed 10000.
source_tierNoOptional exact filter for which seed tier discovered this account, e.g. github-users, wikidata.
crawled_afterNoOptional filter for records last refreshed on or after this date (RFC3339 or YYYY-MM-DD).
created_afterNoOptional filter for accounts created on or after this date (RFC3339 or YYYY-MM-DD).
max_followersNoOptional maximum follower count, 0 or greater.
min_followersNoOptional minimum follower count, 0 or greater.
crawled_beforeNoOptional filter for records last refreshed on or before this date (RFC3339 or YYYY-MM-DD).
created_beforeNoOptional filter for accounts created on or before this date (RFC3339 or YYYY-MM-DD).
has_external_urlNoOptional filter for a linked external URL.
is_blue_verifiedNoOptional filter for the X blue-check verification flag.

Output Schema

NameRequiredDescriptionDefault
dataYesThe tool result payload (shape varies per tool; see each tool's docs resource).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds one useful behavioral fact: this tool applies the same filter set as the search tool. Beyond that it discloses no rate limits, auth needs, or rationale for the facet requirement.

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 short sentences with zero waste; the core purpose is front-loaded and the sibling pointer follows. Every sentence 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?

With annotations and an output schema present, the description only needs to carry purpose and routing, which it does. It is slightly thin on the facet-counting workflow but nothing an agent needs to call it correctly is missing.

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%, so all 18 parameters (including the required 'facet' with its allowed values) are already documented in the schema. The description adds no parameter syntax or format detail beyond what the schema provides, so the baseline of 3 is appropriate.

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?

States a specific verb and resource ('Count facet values ... in the stored X users dataset') with scope ('using the same filters as search'). It also distinguishes itself from the sibling 'datasets_x_users_search', so an agent can tell the aggregate-count tool apart from the record-list tool without opening either schema.

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?

Explicitly routes the agent to 'datasets_x_users_search for the matching user records', giving a clear alternative and implying this tool is for counts. It does not state an explicit 'when-not' exclusion, but the contrast with the named sibling is strong and unambiguous.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.