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.

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": {
      "facet": "<facet>"
    },
    "name": "datasets_x_users_facets"
  }
}

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

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered. The description adds the useful fact that filtering semantics match the search tool, but says nothing about the odd presence of page/page_size on an aggregation call, or about count truncation/limits. Adequate, not rich.

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, zero filler, with the primary purpose stated first and the sibling routing second. Nothing is redundant with the title or schema.

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 18 parameters, an output schema, and annotations all supplied, the description only needs to establish purpose and filtering relationship, which it does. It is slightly thin on how counts relate to the paging parameters, but the output schema and input schema carry the rest.

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 every parameter including the required 'facet' enum and all filters is documented structurally. The description only adds the cross-reference that these are the same filters as search; it adds no meaning about the facet parameter itself beyond the schema.

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 states a specific verb and resource ('Count facet values ... in the stored X users dataset'), which is distinctly different from a record-returning search. It does not explicitly contrast with the other dataset facet tools, but the dataset name in the description resolves ambiguity well enough.

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?

It explicitly routes the agent: use this for facet counts, use datasets_x_users_search for the matching records. What is missing is any statement about when a facet count is inappropriate (e.g. getting individual users), though the sibling pointer largely covers that.

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.