Skip to main content
Glama

datasets_substack_facets

Read-only

Return up to 50 count-sorted buckets for one Substack snapshot field under the filters from datasets_substack_search. facet accepts kind or language; page, page_size, and sort do not change counts. Coverage is the incomplete stored public corpus. Use datasets_substack_search to retrieve matching profiles and publications.

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_substack_facets"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoOptional full-text query over public profile/publication name, handle, bio, subdomain, custom domain and hero text; max 256 characters.
kindNoOptional record kind. Allowed values: user, publication.
pageNoResult page number, 1-based, default 1; page times page_size must not exceed 10000.
sortNoOptional sort order. Allowed values: relevance, name_asc, hydrated_at_desc, hydrated_at_asc. Defaults to relevance with q, otherwise hydrated_at_desc.
facetYesrequired,Required facet. Allowed values: kind, language.
languageNoOptional exact publication language filter; use facet=language to discover stored values.
page_sizeNoPage size, default 20, max 100; page times page_size must not exceed 10000.
identifierNoOptional exact Substack profile handle or publication host from a dataset row, max 253 characters.

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. Added

TDQS

A4.1/5.0
Behavior4/5

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

Beyond readOnlyHint/openWorldHint, the description discloses a hard 50-bucket cap, count-sorted ordering, the fact that paging and sort parameters are inert for counts, and that coverage reflects an incomplete stored public corpus. That corpus-coverage caveat is exactly the kind of behavioral context annotations cannot convey. Rate limits or whether empty facets return an empty set are still unstated.

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?

Four short sentences, front-loaded with the return shape before the constraints and the sibling routing. Nothing is wasted, though 'Coverage is the incomplete stored public corpus' is compressed to the point of mild ambiguity.

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 an output schema present, the description needn't explain bucket shape, and it covers the operationally important facts: cap, ordering, inert parameters, corpus coverage, and the search alternative. The only gap is clarifying how filter combinations (e.g., q plus facet) affect which buckets are returned.

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 the schema already documents all eight parameters and their enums. The description adds one genuinely useful semantic fact beyond the schema: page, page_size, and sort do not affect counts, and facet accepts kind or language. That is real value, but the remaining filter parameters (q, identifier, language) are left to the schema.

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: return up to 50 count-sorted buckets for one Substack snapshot field, with facet limited to kind or language. It names the sibling datasets_substack_search as the record-retrieval path, so an agent can distinguish the two 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_substack_search for matching profiles and publications, and warns that page, page_size, and sort do not change counts, which prevents misuse of pagination. It stops short of an explicit 'use this to discover valid language/kind values when search filters are needed' statement, though that is strongly implied.

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.