Skip to main content
Glama

Validate a Boolean query

query_validate_post
Read-onlyIdempotent

Check a Boolean query before searching: read it (or import it from Talkwalker, Brandwatch, Meltwater, Onclusive or X, or detect which), explain it in English or Spanish, and see how it would be searched on each platform, what won't be covered and the estimated credits. Free.

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

Input Schema

NameRequiredDescriptionDefault
queryYesThe Boolean query to check.
sinceNoEarliest post time. Overrides a date in an imported query.
untilNoLatest post time, not before `since`. Overrides a date in an imported query.
syntaxNoSyntax the query is written in: `native` (Social Fetch's Boolean language), another tool's to import (`x`, `onclusive`, `talkwalker`, `brandwatch` or `meltwater`), or `auto` to detect it from the query. With `auto`, `detected` says which was used and why.
contextYesDescribe the user's underlying goal in one sentence, not the tool you are calling.
languageNoLanguage of the explanation: `en` (default) or `es`.
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 plan for. Every platform when omitted.
maxCreditsNoCredits a search would be allowed, which shapes the plan and estimate. Default 100.
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, planned as search would run them.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changed
    • changedInput schema / properties / maxCredits / description
      Previous value: -"Credits a search would be allowed, shared evenly between the platforms with something to search; the plan and the estimate are shaped by it. Default 100."New value: +"Credits a search would be allowed, which shapes the plan and estimate. Default 100."
    • changedInput schema / properties / platformSearches / description
      Previous value: -"Searches to plan on a platform instead of those planned from the query, by platform, as `POST /v1/query/search` would run them."New value: +"Your own searches for a platform, planned as search would run them."
    • 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 / 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 / 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."
  2. Added

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so safety is covered upstream. The description adds one genuinely new behavioral fact, "Free" (no credit consumption), plus what the response will contain; however, it omits the multi-call sequencing requirement and the fact that the operation is open-world against other vendors' syntaxes.

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?

One front-loaded sentence starting with the imperative verb, and every clause contributes distinct information (input sources, outputs, cost). It is dense and slightly run-on as a single sentence, which hurts scanability a little but wastes no words.

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

Completeness3/5

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

With 11 parameters, a nested object and no output schema, the description should explain the return shape more fully; it does list outputs at a high level (explanation, per-platform plan, uncovered terms, credit estimate), which helps. But it says nothing about the required `context`/`llm_model` fields or the conversation_id handshake that governs sequential calls, leaving gaps for a tool of this complexity.

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%, so baseline is 3; the description lifts it by giving the intent behind the `syntax` enum (importing from another tool or letting it detect which) and tying outputs to `language` and the platform plan. It still adds nothing about the required `context`/`llm_model` parameters or the meaning of `platformSearches`.

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 gives a concrete verb and resource ("Check a Boolean query") and scopes it explicitly as a pre-search step: "before searching." It then enumerates the distinct outputs (explanation, per-platform translation, coverage gaps, credit estimate), which is enough to separate it from query_search_post 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?

"Check a Boolean query before searching" establishes the usage moment clearly, and naming the importable syntaxes (Talkwalker, Brandwatch, Meltwater, Onclusive, X) plus "detect which" tells the agent when the import path applies. There is no explicit when-not-to-use clause or a named alternative tool, so it falls short of a 5.

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.