Skip to main content
Glama

Search with a Boolean query

query_search_post
Read-only

Search X, Reddit, YouTube, TikTok, LinkedIn, Instagram, Threads and Hacker News live with one Boolean query: each platform is searched in its own syntax, every post is checked against the whole query, and duplicates are merged. Charges what its searches cost, never more than maxCredits, and says how far it got on each platform. Check the query with query_validate_post first: it's free and estimates the cost. Or pass plainLanguage and ask a question in plain words as query: the Boolean query is written for you, and posts come back best first, grouped into themes, for 10 credits more. Returns every match at once, no cursor. Pass the same idempotencyKey to retry a search without being charged again; without one, each call is a new, charged search.

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>",
      "maxCredits": "<maxCredits>",
      "context": "<context>",
      "llm_model": "<llm_model>"
    },
    "name": "query_search_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
noiseNoKinds of post to drop from the matches, such as job ads. Doesn't change what's searched or charged; counts are in `filtered`.
queryYesThe Boolean query. Check it for free first with POST /v1/query/validate. With `plainLanguage`, a question in plain words instead.
sinceNoEarliest post time. Overrides a date in an imported query.
untilNoLatest post time, not before `since`. Overrides a date in an imported query.
strictNoDrop posts whose match can't be confirmed (`outcome: unknown`). Default false.
syntaxNoSyntax the query is written in: `native` (Social Fetch's Boolean language), or another tool's to import: `x` (X search), `onclusive`, `talkwalker`, `brandwatch` (also Cision Social Listening) or `meltwater`.
contextYesDescribe the user's underlying goal in one sentence, not the tool you are calling.
insightsNoJudge each post's relevance, kind, need for a reply and risk, plus up to 3 yes/no questions of your own, for 1 credit per 10 posts judged, on top of maxCredits. Not available with zero data retention.
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.
platformsNoPlatforms to search. Every platform when omitted.
sentimentNoLabel each post positive, neutral or negative, for 1 credit per 10 posts labelled, on top of maxCredits. Skipped, uncharged, when the balance can't cover it. Default false.
maxCreditsYesThe most this search may charge, split evenly between platforms. Unused credits aren't charged.
plainLanguageNoRead `query` as a question in plain words, such as "what are people saying about Notion's new pricing?", up to 500 characters. The query is written for you (see `plan`), posts are ranked by how well they answer the question (`relevance`), and grouped into `themes`. 10 credits on top of maxCredits, only when the posts are ranked. Can't be used with `syntax` other than `native`.
idempotencyKeyNoA key you choose for this search, such as a UUID; send the same one to retry it safely: the first response comes back, charging nothing. Each call is its own search without one.
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.
platformSearchesNoYour own searches for a platform, replacing the planned ones. Posts are still checked against the whole query.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / plainLanguage
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Read `query` as a question in plain words, such as \"what are people saying about Notion's new pricing?\", up to 500 characters. The query is written for you (see `plan`), posts are ranked by how well they answer the question (`relevance`), and grouped into `themes`. 10 credits on top of maxCredits, only when the posts are ranked. Can't be used with `syntax` other than `native`.",
      +  "properties": {
      +    "enrich": {
      +      "description": "How many of the best Reddit, Hacker News and YouTube posts have their comments or transcript read, so they're ranked on what's said under them too. Each read bills at its endpoint's normal rate, inside maxCredits. Default 3; 0 reads none.",
      +      "maximum": 5,
      +      "minimum": 0,
      +      "type": "integer"
      +    }
      +  },
      +  "type": "object"
      +}
    • changedInput schema / properties / query / description
      Previous value: -"The Boolean query. Check it for free first with POST /v1/query/validate."New value: +"The Boolean query. Check it for free first with POST /v1/query/validate. With `plainLanguage`, a question in plain words instead."
  2. Changed17 schema fields changed
    • changedInput schema / properties / insights / description
      Previous value: -"Judge each post found: is it about what the topic is about, what is it (a complaint, question, praise, buying, promotion or news), does it need a reply, is it a risk, and up to 3 yes/no questions of your own. 1 credit per 10 posts given them, on top of maxCredits, as sentiment: only posts given insights are charged; if your balance or the key's monthly limit can't cover it, posts come back without them and nothing is charged, said in warnings. Every post is still returned, whatever its relevance. Not available with zero data retention."New value: +"Judge each post's relevance, kind, need for a reply and risk, plus up to 3 yes/no questions of your own, for 1 credit per 10 posts judged, on top of maxCredits. Not available with zero data retention."
    • changedInput schema / properties / maxCredits / description
      Previous value: -"The most this search may charge, shared evenly between the platforms with something to search. Held from your balance while it runs; what isn't used is given back."New value: +"The most this search may charge, split evenly between platforms. Unused credits aren't charged."
    • changedInput schema / properties / noise / description
      Previous value: -"Kinds of post to leave out of the matches, such as job ads. Checked on each post after it's found, so the search itself isn't narrowed and the credits are the same. How many each left out is in `filtered`. None by default."New value: +"Kinds of post to drop from the matches, such as job ads. Doesn't change what's searched or charged; counts are in `filtered`."
    • changedInput schema / properties / platformSearches / description
      Previous value: -"Searches to run on a platform instead of those planned from the query, by platform. A platform left out is searched as planned. Only changes what's searched: every post is still checked against the whole query."New value: +"Your own searches for a platform, replacing the planned ones. Posts are still checked against the whole query."
    • changedInput schema / properties / platformSearches / properties / hackernews / description
      Previous value: -"Searches to run on this platform instead of those planned from the query, in its own syntax (Instagram: hashtags, with or without `#`). Posts found are still checked against the whole query."New value: +"Searches for this platform, in its own syntax (Instagram: hashtags)."
    • changedInput schema / properties / platformSearches / properties / instagram / description
      Previous value: -"Searches to run on this platform instead of those planned from the query, in its own syntax (Instagram: hashtags, with or without `#`). Posts found are still checked against the whole query."New value: +"Searches for this platform, in its own syntax (Instagram: hashtags)."
    • changedInput schema / properties / platformSearches / properties / linkedin / description
      Previous value: -"Searches to run on this platform instead of those planned from the query, in its own syntax (Instagram: hashtags, with or without `#`). Posts found are still checked against the whole query."New value: +"Searches for this platform, in its own syntax (Instagram: hashtags)."
    • changedInput schema / properties / platformSearches / properties / reddit / description
      Previous value: -"Searches to run on this platform instead of those planned from the query, in its own syntax (Instagram: hashtags, with or without `#`). Posts found are still checked against the whole query."New value: +"Searches for this platform, in its own syntax (Instagram: hashtags)."
    • changedInput schema / properties / platformSearches / properties / threads / description
      Previous value: -"Searches to run on this platform instead of those planned from the query, in its own syntax (Instagram: hashtags, with or without `#`). Posts found are still checked against the whole query."New value: +"Searches for this platform, in its own syntax (Instagram: hashtags)."
    • changedInput schema / properties / platformSearches / properties / tiktok / description
      Previous value: -"Searches to run on this platform instead of those planned from the query, in its own syntax (Instagram: hashtags, with or without `#`). Posts found are still checked against the whole query."New value: +"Searches for this platform, in its own syntax (Instagram: hashtags)."
    • changedInput schema / properties / platformSearches / properties / twitter / description
      Previous value: -"Searches to run on this platform instead of those planned from the query, in its own syntax (Instagram: hashtags, with or without `#`). Posts found are still checked against the whole query."New value: +"Searches for this platform, in its own syntax (Instagram: hashtags)."
    • changedInput schema / properties / platformSearches / properties / youtube / description
      Previous value: -"Searches to run on this platform instead of those planned from the query, in its own syntax (Instagram: hashtags, with or without `#`). Posts found are still checked against the whole query."New value: +"Searches for this platform, in its own syntax (Instagram: hashtags)."
    • changedInput schema / properties / platforms / items / description
      Previous value: -"A platform a search runs on: `twitter` (X), `reddit`, `youtube`, `tiktok`, `linkedin`, `instagram` (searched by hashtag, so only posts that use the hashtag are found), `threads` (searched by plain words, one short page a search, so it can miss posts) or `hackernews` (stories and comments). More platforms follow."New value: +"A platform to search: `twitter` (X), `reddit`, `youtube`, `tiktok`, `linkedin`, `instagram` (hashtags only), `threads` (one short page, so it can miss posts) or `hackernews`."
    • changedInput schema / properties / sentiment / description
      Previous value: -"Estimate each post's sentiment (positive, neutral or negative), for 1 credit per 10 posts given one, on top of maxCredits: the searches still get all of maxCredits, and every post they find with text is given one. Only posts given one are charged. If your balance or the key's monthly limit can't cover it, the posts come back without one and nothing is charged for it, said in warnings. Default false."New value: +"Label each post positive, neutral or negative, for 1 credit per 10 posts labelled, on top of maxCredits. Skipped, uncharged, when the balance can't cover it. Default false."
    • changedInput schema / properties / since / description
      Previous value: -"Earliest post time, between 2000 and 2100. Overrides a date in an imported query."New value: +"Earliest post time. Overrides a date in an imported query."
    • changedInput schema / properties / strict / description
      Previous value: -"Leave out posts whose match depends on something the platform didn't return (`outcome: unknown`). Default false."New value: +"Drop posts whose match can't be confirmed (`outcome: unknown`). Default false."
    • changedInput schema / properties / until / description
      Previous value: -"Latest post time, between 2000 and 2100, not before `since`. Overrides a date in an imported query."New value: +"Latest post time, not before `since`. Overrides a date in an imported query."
  3. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, the description discloses charging behavior, maxCredits capping, per-platform progress reporting, duplicate merging, no cursor/pagination, and idempotency-key retry semantics. The annotations already indicate read-only, open-world, and non-idempotent behavior, and the description adds substantial operational context without contradicting them.

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?

The description is dense but front-loaded and every sentence carries decision-relevant information about scope, cost, validation, plainLanguage, return shape, and retries. It is appropriately sized for a complex 16-parameter search tool.

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?

The description covers the core behavior, cost model, validation prerequisite, plainLanguage mode, and no-cursor return behavior, which is strong given there is no output schema. It is slightly incomplete on optional paid add-ons and detailed response fields, but those are largely handled by the exhaustive schema.

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 detailed parameter meanings are already in the input schema. The description adds some useful cross-parameter context for maxCredits, idempotencyKey, and plainLanguage, but it does not explain many optional filters such as noise, since/until, strict, insights, or sentiment beyond what the schema already provides.

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?

The description states a specific verb and resource: search eight named platforms live with one Boolean query. It distinguishes this from query_validate_post and from post-retrieval siblings by framing it as a cross-platform search with deduplication.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly says to check the query with query_validate_post first because that is free and estimates cost. It also gives the plainLanguage alternative and explains when to use idempotencyKey for a retry versus treating every call as a new charged search.

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.