Skip to main content
Glama

Search Substack publication posts

substack_publication_posts_search
Read-onlyIdempotent

Search the posts inside a Substack publication. Requires publication and query. Returns a list (use page when paginated). Costs credits; see meta.creditsCharged.

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": {
      "publication": "<publication>",
      "query": "<query>",
      "context": "<context>",
      "llm_model": "<llm_model>"
    },
    "name": "substack_publication_posts_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number, 0 to 20; ten results a page.
queryYesRequired. Text to search for inside the publication.
contextYesDescribe the user's underlying goal in one sentence, not the tool you are calling.
llm_modelYesThe exact model identifier you (the assistant) are running as, taken from your system prompt or environment (for example "claude-opus-4-8" or "gpt-5.2"). Used for analytics only. If you do not know your model identifier with certainty, pass "unknown" and do not guess.
publicationYesRequired. A publication: its numeric id (`89120`), its Substack subdomain (`astralcodexten`), its host (`www.astralcodexten.com`) or its URL. A numeric id is refused with a 400 on the routes that need a subdomain, host or URL.
conversation_idNoEcho the conversation_id from the server's previous response. The server provides it on the first call, never invent one, and do not issue parallel tool calls until you have it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, openWorld, non-destructive), so the bar is lower, but the description adds two genuinely non-obvious traits: the call costs credits and the charge is exposed at `meta.creditsCharged`, plus a hint that results are paginated. It does not describe result contents beyond 'a list', but the credit disclosure is real value beyond structured data.

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 with the core action first, then requirements, return shape, and cost. The 'Requires publication and query' sentence is partly redundant with required fields in the schema but still front-loads the essentials efficiently.

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 no output schema, the description does minimally cover the return ('a list') and pagination, and it flags the credit cost, which the schema does not. The remaining gap — what fields a result contains — is small for a search tool whose parameters are fully documented.

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%, including detailed descriptions of publication formats, page bounds, and the meta parameters, so the baseline of 3 applies. The description only restates that publication and query are required and gestures at page, adding no semantics the schema lacks.

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 gives a clear verb+resource pair — 'Search the posts inside a Substack publication' — which separates it from list-style siblings like substack_publication_posts_list and from single-post retrieval like substack_post_get. It does not name any sibling explicitly, so the differentiation is inferred rather than stated.

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?

It states the two required inputs and the one operational condition ('use page when paginated'), which is useful context. It offers no explicit when-to-use/when-not guidance and never contrasts itself with the list or bodies tools, leaving alternatives to inference.

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.