Skip to main content
Glama

search_posts

Read-only

Search a Substack publication’s published, draft, or scheduled archive using server-side queries; returns paginated metadata, so use post/draft fetch tools for full content.

Instructions

Search this publication's published, draft, or scheduled archive using Substack's server-side query. One page per call, at most 50 results; use next_offset to continue. Matching/indexing is controlled by Substack, not a guaranteed full-text scan. Returns metadata only; get_post/get_draft fetch full content.

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": {
      "query": "<query>"
    },
    "name": "search_posts"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYes
offsetNo
statusNopublished

Output Schema

NameRequiredDescriptionDefault
limitYes
postsYes
queryYes
totalYes
offsetYes
statusYes
has_moreYes
returnedYes
next_offsetYes
publicationYes
search_scopeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed33 schema fields changedv1.4.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / limit / $ref
      Removed value: -"#/properties/offset"
    • addedOutput schema / properties / limit / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / limit / minimum
      Added value: +0
    • addedOutput schema / properties / limit / type
      Added value: +"integer"
    • changedOutput schema / properties / next_offset / anyOf
      Previous value: -[
      -  {
      -    "$ref": "#/properties/offset"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maximum": 9007199254740991,
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / posts / items / properties / audience / $ref
      Removed value: -"#/properties/posts/items/properties/title"
    • addedOutput schema / properties / posts / items / properties / audience / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / posts / items / properties / canonical_url / $ref
      Removed value: -"#/properties/posts/items/properties/title"
    • addedOutput schema / properties / posts / items / properties / canonical_url / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / posts / items / properties / draft_subtitle / $ref
      Removed value: -"#/properties/posts/items/properties/title"
    • addedOutput schema / properties / posts / items / properties / draft_subtitle / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / posts / items / properties / draft_title / $ref
      Removed value: -"#/properties/posts/items/properties/title"
    • addedOutput schema / properties / posts / items / properties / draft_title / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / posts / items / properties / draft_updated_at / $ref
      Removed value: -"#/properties/posts/items/properties/title"
    • addedOutput schema / properties / posts / items / properties / draft_updated_at / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / posts / items / properties / post_date / $ref
      Removed value: -"#/properties/posts/items/properties/title"
    • addedOutput schema / properties / posts / items / properties / post_date / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / posts / items / properties / slug / $ref
      Removed value: -"#/properties/posts/items/properties/title"
    • addedOutput schema / properties / posts / items / properties / slug / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / posts / items / properties / subtitle / $ref
      Removed value: -"#/properties/posts/items/properties/title"
    • addedOutput schema / properties / posts / items / properties / subtitle / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / posts / items / properties / trigger_at / $ref
      Removed value: -"#/properties/posts/items/properties/title"
    • addedOutput schema / properties / posts / items / properties / trigger_at / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / publication / $ref
      Removed value: -"#/properties/query"
    • addedOutput schema / properties / publication / type
      Added value: +"string"
    • removedOutput schema / properties / returned / $ref
      Removed value: -"#/properties/offset"
    • addedOutput schema / properties / returned / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / returned / minimum
      Added value: +0
    • addedOutput schema / properties / returned / type
      Added value: +"integer"
    • removedOutput schema / properties / search_scope / $ref
      Removed value: -"#/properties/query"
    • addedOutput schema / properties / search_scope / type
      Added value: +"string"
    • changedOutput schema / properties / total / anyOf
      Previous value: -[
      -  {
      -    "$ref": "#/properties/offset"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maximum": 9007199254740991,
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true, so the description carries the real behavioral load and does so: pagination model, result cap, metadata-only return, and the important caveat that matching/indexing is controlled by Substack rather than a guaranteed full-text scan. The one flaw is that it tells the agent to use 'next_offset' while the schema exposes 'offset', which can cause operational confusion.

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?

Dense and front-loaded, with scope first, then paging mechanics, then the indexing caveat, then the routing hint. Every sentence earns its place, though the 'next_offset' reference to a parameter actually named 'offset' is a small precision cost.

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

Completeness5/5

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

An output schema exists so return values needn't be explained, and the description still flags that results are metadata only. Combined with paging rules, the result cap, and the indexing caveat, an agent has everything needed to call this correctly and know when to follow up with get_post.

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 0%, so the description must supply parameter meaning and it only partially does: 'at most 50 results' maps to limit, 'next_offset' maps to offset (under a different name), and 'published, draft, or scheduled' maps to the status enum. The query parameter itself is never characterized (what syntax, whether phrases/booleans work), leaving a real gap at 0% schema coverage.

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?

States a specific verb and resource ('Search this publication's ... archive') and bounds the scope to published, draft, or scheduled content. It does not explicitly contrast with sibling listers like list_published_posts or list_drafts, so an agent must infer that 'search' means query-based matching rather than enumeration.

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?

Gives clear operational context: one page per call, max 50 results, continue via next_offset, and it routes the agent to get_post/get_draft when full content is needed. It stops short of saying when to search versus enumerate with list_published_posts or list_drafts.

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