Skip to main content
Glama

Get where a saved query's matches come from

saved_queries_sources_get
Read-onlyIdempotent

The accounts (YouTube channels included) and communities (subreddits, groups) a saved query's kept matches come from, most first, each with its match count and how many were judged not to fit the query's brief. Pass judgement relevant or irrelevant to count only those. Use it to find who to follow up with, or what to add to the exclude list. 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_sources_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe saved query's id.
limitNoAccounts and communities to list, each, up to 200. Default 50.
contextYesDescribe the user's underlying goal in one sentence, not the tool you are calling.
judgementNoCount only matches judged `relevant` against the brief (or not judged), or only those judged `irrelevant`. Default: every match.
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.
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. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so safety is covered. The description adds useful context beyond them – results are ordered most-first, each row carries a match count plus an off-brief count, and 'Free: reads what earlier runs stored' discloses that it serves cached results from prior runs rather than fetching fresh data.

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?

Three sentences, front-loaded with the resource and ordering before the usage hint and the cost note. The nested parentheticals in the opening sentence make it slightly dense, but no sentence is wasted.

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 six-parameter read tool with full schema coverage and no output schema, the description covers return shape (ordering, counts, judgement split) and cost/behaviour well. Pagination behaviour beyond the limit parameter is left to the schema, which is acceptable here.

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 coverage is 100%, so every parameter is already documented in the schema, including the judgement enum and its default. The description's 'Pass judgement relevant or irrelevant to count only those' restates the schema's meaning rather than extending it, so the baseline 3 applies.

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 description states a concrete resource – the accounts and communities a saved query's kept matches come from – with ordering (most first) and per-item fields (match count, count judged not to fit). It is clearly distinguishable from saved_queries_matches_list and saved_queries_exclusions_list in substance, though it never names a sibling to route against.

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 gives two explicit use cases: finding who to follow up with, and identifying what to add to the exclude list. That is real when-to-use guidance, but it offers no when-not conditions and does not name the alternative tool to pick when the agent wants raw matches instead of aggregated sources.

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.