Skip to main content
Glama

Search Posts

search_posts
Read-onlyIdempotent

Finds posts by status (in_review is the review queue), channel, scheduled time range, angle, pillar, text, or website CMS delivery state. Returns each post's current rev, updatedAt, mediaCount (assets, a website cover and images from the CMS; 0 means no media, so finding posts without an image needs no get_post per post) and, for website posts, the buyer questions it answers (buyerQuestions). A refresh of a live website page Mark published carries refresh: { text, pageUrl }, the reason Mark queued it for review; refresh is null on every other post. An approved social post moves to scheduled within seconds while Mark hands it to the publisher; handoff says handing_off then, or stuck with the reason and fix when it can't go (no scheduled time, no connected account, or no progress 5 minutes after approval). An approved LinkedIn Article carries handoff publish_by_hand before its scheduled time and publish_now from it on, each with the reason (a person publishes it on LinkedIn). So does an approved blog, FAQ or competitor post whose post type no CMS maps (a person publishes it on the site). handoff is null on every other post. status: approved still matches handing-off, stuck, publish_by_hand and publish_now posts. rev is the frozen revision: it stays 0 on drafts and only advances when the post is submitted (or frozen). updatedAt confirms a draft save. from and to filter by scheduled time, not created or updated. Each accepts YYYY-MM-DD or a full ISO timestamp. A date-only to includes that whole day in the workspace timezone. Unscheduled drafts never match a date range. websiteState filters blog, FAQ and competitor posts by CMS delivery: preview (a pre-approval preview draft in the CMS, not live), queued, sent_to_cms (saved in the CMS, not live), published, taken_down, failed, removed, conflict, out_of_sync, or none: the same values as get_post's website.state. Optional timezone (IANA) renders scheduled and published times in that zone; it does not change stored data. Does not change anything. Related: get_post, approve_posts, review_post.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_posts"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoScheduled-to: YYYY-MM-DD (includes that whole day in the workspace timezone) or a full ISO timestamp.
fromNoScheduled-from: YYYY-MM-DD (start of that day in the workspace timezone) or a full ISO timestamp.
textNoCase-insensitive match in the body.
limitNoHow many rows to return. Default 20, max 100.
cursorNoOpaque cursor from a previous call's nextCursor.
statusNoFilter by status. in_review is the review queue.
angleIdNoAngle id.
channelNoChannel id, e.g. linkedin.
pillarIdNoPillar id.
timezoneNoIANA zone to render times in. Does not change stored data. Defaults to the workspace timezone.
websiteStateNoFilter website posts by CMS delivery state: queued, sent_to_cms (saved in the CMS, not live), published, taken_down, failed, removed, conflict, out_of_sync, or none. Same values as get_post's website.state.

Output Schema

NameRequiredDescriptionDefault
moreYes
itemsYes
nextCursorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / items / items / properties / handoff / description
      Previous value: -"An approved social post's handoff to the publisher: handing_off (it moves to scheduled within seconds), stuck with the reason and fix (no scheduled time, no connected account for the channel, or no progress 5 minutes after approval), or null for every other status. An approved LinkedIn Article has no publisher: publish_by_hand before its scheduled time and publish_now from it on, until someone records its URL with record_post_published. An approved website post whose post type no CMS maps reads publish_by_hand (get_post and the review page only); every other website post is null."New value: +"An approved social post's handoff to the publisher: handing_off (it moves to scheduled within seconds), stuck with the reason and fix (no scheduled time, no connected account for the channel, or no progress 5 minutes after approval), or null for every other status. An approved LinkedIn Article has no publisher: publish_by_hand before its scheduled time and publish_now from it on, until someone records its URL with record_post_published. An approved website post whose post type no CMS maps reads the same: publish_by_hand before its scheduled time and publish_now from it on, until someone records its URL with record_post_published; every other website post is null."
  2. Changed1 schema field changed
    • changedOutput schema / properties / items / items / properties / handoff / description
      Previous value: -"An approved social post's handoff to the publisher: handing_off (it moves to scheduled within seconds), stuck with the reason and fix (no scheduled time, no connected account for the channel, or no progress 5 minutes after approval), or null for every other status and every website post. An approved LinkedIn Article has no publisher: publish_by_hand before its scheduled time and publish_now from it on, until someone records its URL with record_post_published."New value: +"An approved social post's handoff to the publisher: handing_off (it moves to scheduled within seconds), stuck with the reason and fix (no scheduled time, no connected account for the channel, or no progress 5 minutes after approval), or null for every other status. An approved LinkedIn Article has no publisher: publish_by_hand before its scheduled time and publish_now from it on, until someone records its URL with record_post_published. An approved website post whose post type no CMS maps reads publish_by_hand (get_post and the review page only); every other website post is null."
  3. Changed2 schema fields changed
    • changedInput schema / properties / status / description
      Previous value: -"Filter by status. awaiting_review is the review queue."New value: +"Filter by status. in_review is the review queue."
    • changedInput schema / properties / status / enum
      Previous value: -[
      -  "draft",
      -  "in_review",
      -  "awaiting_review",
      -  "approved",
      -  "scheduled",
      -  "published",
      -  "changes_requested",
      -  "rejected",
      -  "failed",
      -  "missed"
      -]New value: +[
      +  "draft",
      +  "in_review",
      +  "approved",
      +  "scheduled",
      +  "published",
      +  "changes_requested",
      +  "rejected",
      +  "failed",
      +  "missed"
      +]
  4. Changed2 schema fields changed
    • addedOutput schema / properties / items / items / properties / mediaCount
      Added value: +{
      +  "description": "Media on the post: assets, a website cover and images from the CMS. 0 means none.",
      +  "type": "number"
      +}
    • changedOutput schema / properties / items / items / required
      Previous value: -[
      -  "angleId",
      -  "appUrl",
      -  "buyerQuestions",
      -  "channel",
      -  "excerpt",
      -  "handoff",
      -  "id",
      -  "pillarId",
      -  "publishedAt",
      -  "refresh",
      -  "rev",
      -  "scheduledAt",
      -  "status",
      -  "updatedAt"
      -]New value: +[
      +  "angleId",
      +  "appUrl",
      +  "buyerQuestions",
      +  "channel",
      +  "excerpt",
      +  "handoff",
      +  "mediaCount",
      +  "id",
      +  "pillarId",
      +  "publishedAt",
      +  "refresh",
      +  "rev",
      +  "scheduledAt",
      +  "status",
      +  "updatedAt"
      +]
  5. Changed2 schema fields changed
    • changedOutput schema / properties / items / items / properties / handoff / anyOf
      Previous value: -[
      -  {
      -    "oneOf": [
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "state": {
      -            "const": "handing_off",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "state"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "reason": {
      -            "type": "string"
      -          },
      -          "state": {
      -            "const": "stuck",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "reason",
      -          "state"
      -        ],
      -        "type": "object"
      -      }
      -    ]
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "oneOf": [
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "state": {
      +            "const": "handing_off",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "state"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "reason": {
      +            "type": "string"
      +          },
      +          "state": {
      +            "const": "stuck",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "reason",
      +          "state"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "reason": {
      +            "type": "string"
      +          },
      +          "state": {
      +            "const": "publish_by_hand",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "reason",
      +          "state"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "reason": {
      +            "type": "string"
      +          },
      +          "state": {
      +            "const": "publish_now",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "reason",
      +          "state"
      +        ],
      +        "type": "object"
      +      }
      +    ]
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / items / items / properties / handoff / description
      Previous value: -"An approved social post's handoff to the publisher: handing_off (it moves to scheduled within seconds), stuck with the reason and fix (no scheduled time, no connected account for the channel, or no progress 5 minutes after approval), or null for every other status and every website post."New value: +"An approved social post's handoff to the publisher: handing_off (it moves to scheduled within seconds), stuck with the reason and fix (no scheduled time, no connected account for the channel, or no progress 5 minutes after approval), or null for every other status and every website post. An approved LinkedIn Article has no publisher: publish_by_hand before its scheduled time and publish_now from it on, until someone records its URL with record_post_published."
  6. Changed2 schema fields changed
    • changedInput schema / properties / websiteState / description
      Previous value: -"Filter website posts by CMS delivery state: queued, draft (saved in the CMS, not live), published, failed, removed, conflict, out_of_sync, or none. Same values as get_post's website.state."New value: +"Filter website posts by CMS delivery state: queued, sent_to_cms (saved in the CMS, not live), published, taken_down, failed, removed, conflict, out_of_sync, or none. Same values as get_post's website.state."
    • changedInput schema / properties / websiteState / enum
      Previous value: -[
      -  "preview",
      -  "queued",
      -  "draft",
      -  "published",
      -  "failed",
      -  "removed",
      -  "conflict",
      -  "out_of_sync",
      -  "none"
      -]New value: +[
      +  "preview",
      +  "queued",
      +  "sent_to_cms",
      +  "published",
      +  "taken_down",
      +  "failed",
      +  "removed",
      +  "conflict",
      +  "out_of_sync",
      +  "none"
      +]
  7. Changed2 schema fields changed
    • addedOutput schema / properties / items / items / properties / handoff
      Added value: +{
      +  "anyOf": [
      +    {
      +      "oneOf": [
      +        {
      +          "additionalProperties": false,
      +          "properties": {
      +            "state": {
      +              "const": "handing_off",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "state"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "additionalProperties": false,
      +          "properties": {
      +            "reason": {
      +              "type": "string"
      +            },
      +            "state": {
      +              "const": "stuck",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "reason",
      +            "state"
      +          ],
      +          "type": "object"
      +        }
      +      ]
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "An approved social post's handoff to the publisher: handing_off (it moves to scheduled within seconds), stuck with the reason and fix (no scheduled time, no connected account for the channel, or no progress 5 minutes after approval), or null for every other status and every website post."
      +}
    • changedOutput schema / properties / items / items / required
      Previous value: -[
      -  "angleId",
      -  "appUrl",
      -  "buyerQuestions",
      -  "channel",
      -  "excerpt",
      -  "id",
      -  "pillarId",
      -  "publishedAt",
      -  "refresh",
      -  "rev",
      -  "scheduledAt",
      -  "status",
      -  "updatedAt"
      -]New value: +[
      +  "angleId",
      +  "appUrl",
      +  "buyerQuestions",
      +  "channel",
      +  "excerpt",
      +  "handoff",
      +  "id",
      +  "pillarId",
      +  "publishedAt",
      +  "refresh",
      +  "rev",
      +  "scheduledAt",
      +  "status",
      +  "updatedAt"
      +]
  8. Changed3 schema fields changed
    • changedInput schema / properties / websiteState / enum
      Previous value: -[
      -  "queued",
      -  "draft",
      -  "published",
      -  "failed",
      -  "removed",
      -  "conflict",
      -  "out_of_sync",
      -  "none"
      -]New value: +[
      +  "preview",
      +  "queued",
      +  "draft",
      +  "published",
      +  "failed",
      +  "removed",
      +  "conflict",
      +  "out_of_sync",
      +  "none"
      +]
    • addedOutput schema / properties / items / items / properties / refresh
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "pageUrl": {
      +          "type": "string"
      +        },
      +        "text": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "pageUrl",
      +        "text"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • changedOutput schema / properties / items / items / required
      Previous value: -[
      -  "angleId",
      -  "appUrl",
      -  "buyerQuestions",
      -  "channel",
      -  "excerpt",
      -  "id",
      -  "pillarId",
      -  "publishedAt",
      -  "rev",
      -  "scheduledAt",
      -  "status",
      -  "updatedAt"
      -]New value: +[
      +  "angleId",
      +  "appUrl",
      +  "buyerQuestions",
      +  "channel",
      +  "excerpt",
      +  "id",
      +  "pillarId",
      +  "publishedAt",
      +  "refresh",
      +  "rev",
      +  "scheduledAt",
      +  "status",
      +  "updatedAt"
      +]
  9. Changed2 schema fields changed
    • addedOutput schema / properties / items / items / properties / buyerQuestions
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "id": {
      +        "type": "string"
      +      },
      +      "question": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "question"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / properties / items / items / required
      Previous value: -[
      -  "angleId",
      -  "appUrl",
      -  "channel",
      -  "excerpt",
      -  "id",
      -  "pillarId",
      -  "publishedAt",
      -  "rev",
      -  "scheduledAt",
      -  "status",
      -  "updatedAt"
      -]New value: +[
      +  "angleId",
      +  "appUrl",
      +  "buyerQuestions",
      +  "channel",
      +  "excerpt",
      +  "id",
      +  "pillarId",
      +  "publishedAt",
      +  "rev",
      +  "scheduledAt",
      +  "status",
      +  "updatedAt"
      +]
  10. Changed1 schema field changed
    • addedInput schema / properties / websiteState
      Added value: +{
      +  "description": "Filter website posts by CMS delivery state: queued, draft (saved in the CMS, not live), published, failed, removed, conflict, out_of_sync, or none. Same values as get_post's website.state.",
      +  "enum": [
      +    "queued",
      +    "draft",
      +    "published",
      +    "failed",
      +    "removed",
      +    "conflict",
      +    "out_of_sync",
      +    "none"
      +  ],
      +  "type": "string"
      +}
  11. Changed1 schema field changed
    • addedInput schema / properties / timezone
      Added value: +{
      +  "description": "IANA zone to render times in. Does not change stored data. Defaults to the workspace timezone.",
      +  "type": "string"
      +}
  12. Changed2 schema fields changed
    • changedInput schema / properties / from / description
      Previous value: -"Scheduled-from ISO date."New value: +"Scheduled-from: YYYY-MM-DD (start of that day in the workspace timezone) or a full ISO timestamp."
    • changedInput schema / properties / to / description
      Previous value: -"Scheduled-to ISO date."New value: +"Scheduled-to: YYYY-MM-DD (includes that whole day in the workspace timezone) or a full ISO timestamp."
  13. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, yet the description adds substantial behavior beyond them: the handoff state machine (handing_off, stuck with cause and fix, publish_by_hand before scheduled time, publish_now after), rev semantics frozen at 0 on drafts, refresh populated only for live-page refreshes, and status: approved matching handing-off and stuck posts. These are non-obvious behaviors an agent cannot derive from structured fields.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The lead sentence front-loads purpose well, but the body is a dense wall of text mixing filter semantics, return-field explanations, and handoff state transitions into long paragraphs. Much of the return-value detail (buyerQuestions, mediaCount, refresh shape) restates what the existing output schema already defines, so several sentences do not fully earn their 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?

For an 11-parameter, zero-required search tool with an output schema, the description covers the tricky filters thoroughly and clarifies timezone rendering versus stored data. It is complete on the calling side; the only excess is return-field narration that the output schema already supplies.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, but the description still adds real meaning: from/to filter by scheduled time rather than created/updated, date-only to includes the whole day in workspace timezone, unscheduled drafts never match a range, and websiteState enumerates CMS delivery states aligned with get_post's website.state. It does not add anything for angleId, pillarId, channel, text, limit or cursor beyond the schema, which is acceptable given full coverage.

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?

Opens with a specific verb and resource ('Finds posts') and enumerates the dimensions it can filter on (status, channel, scheduled time range, angle, pillar, text, website CMS state). It explicitly hands off to named siblings (get_post, approve_posts, review_post), so an agent can distinguish it from those without opening another 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?

Usage is clearly implied and partially stated: 'status: in_review is the review queue' and 'finding posts without an image needs no get_post per post' tell the agent when this tool replaces per-post lookups. The 'Related:' line names alternatives, but it does not say when to prefer get_post or the approve/review tools over this one, so the routing guidance is suggestive rather than explicit.

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.

Resources