Skip to main content
Glama

List a saved query's matches

saved_queries_matches_list
Read-onlyIdempotent

List the posts a saved query has matched, a page at a time, optionally by platform, time, sentiment or, with insights, relevance (relevant leaves out posts not about the topic), attention (needs_reply or risk) and kind. Every post is kept and listed unless a filter is given. Pass page.nextCursor back as cursor, with the same sort, for the next page. Free: reads what earlier runs stored.

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": {
      "id": "<id>",
      "context": "<context>",
      "llm_model": "<llm_model>"
    },
    "name": "saved_queries_matches_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoOnly posts whose title or text contains this, ignoring case.
idYesThe saved query's id.
kindNoOnly matches insights judged to be this kind of post.
sortNo`posted` (default): the newest posts first, by when they were posted (or found, when the platform gave no time). `found`: the most recently found first, for keeping a copy in step.
limitNoMatches a page, up to 100. Default 50.
sinceNoOnly matches first seen at or after this time.
untilNoOnly matches first seen before this time.
authorNoOnly posts by this author: their handle as the post gives it (`author.handle`), without the `@`. Pair with `platform` when the same handle could be on several.
cursorNoThe `nextCursor` of the previous page, with the same `sort`.
contextYesDescribe the user's underlying goal in one sentence, not the tool you are calling.
platformNoA platform to search: `twitter` (X), `reddit`, `youtube`, `tiktok`, `linkedin`, `instagram` (hashtags only), `threads` (one short page, so it can miss posts) or `hackernews`.
attentionNoOnly matches insights flagged as needing a reply, or as a risk.
judgementNoOnly matches judged against the brief as `relevant` (or not judged), or `irrelevant` (judged not to fit it).
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.
relevanceNoOnly matches with this relevance (a person's, where one was set, else the estimate); `relevant` is anything but `unrelated`. Matches without insights count as relevant.
sentimentNoOnly matches with this sentiment (a person's, where one was set, else the estimate).
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. Changed1 schema field changed
    • addedInput schema / properties / judgement
      Added value: +{
      +  "description": "Only matches judged against the brief as `relevant` (or not judged), or `irrelevant` (judged not to fit it).",
      +  "enum": [
      +    "relevant",
      +    "irrelevant"
      +  ],
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / platform / 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`."
  3. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/openWorld=false, so safety is covered; the description adds non-obvious behavior: unfiltered calls return everything ('Every post is kept and listed unless a filter is given'), it is free because it reads stored data, and the cursor must be reused with the same sort. It doesn't describe result shape or ordering guarantees beyond the sort enum, which is left to the schema.

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?

The purpose and pagination contract are front-loaded, and most sentences carry distinct information (filters, default behavior, cursor reuse, cost). The filter enumeration sentence is syntactically dense ('optionally by platform, time, sentiment or, with insights, relevance ... attention ... and kind'), costing some readability but not much length.

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 a 17-parameter, high-complexity read tool with no output schema, the description covers purpose, pagination, default no-filter behavior, cost, and the trickiest filter semantics, and the output shape is hinted via 'page.nextCursor'. What's missing is only minor: no explicit statement of what a match record contains, though the schema's filter enums imply it.

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 schema already documents each of the 17 parameters, making 3 the baseline. The description adds meaningful semantics for a few (relevance excludes off-topic posts, attention means needs_reply or risk, cursor/sort coupling), but does not cover the majority of parameters, so it only modestly exceeds the baseline.

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 first clause gives a precise verb+resource: 'List the posts a saved query has matched,' which is distinguishable from siblings like saved_queries_runs_list (runs) or saved_queries_list (definitions). It does not explicitly name a sibling as the alternative for a given need, so it stops short of a 5, but an agent can tell what it returns without opening the 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?

It supplies a real usage contract for pagination ('Pass page.nextCursor back as cursor, with the same sort, for the next page') and clarifies that the tool reads stored results rather than executing a query ('Free: reads what earlier runs stored'), implying saved_queries_run is the trigger path. It never states an explicit when-not or names the run tool, so guidance is strong but not complete.

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.