Skip to main content
Glama

LLMExpert: cited Q&A over YouTube videos

Query a channel

query_channel
Read-only

Run a retrieval-augmented query against a channel's indexed knowledge base and return a generated answer with citations. Maps to POST /v1/query. Requires the key's query scope and access to the channel. Charged: $0.02 flat per call by default. Prices are the service defaults; quote returns the exact price.

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": {
      "channel_id": "<channel_id>",
      "query": "<query>"
    },
    "name": "query_channel"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesThe natural-language question.
top_kNoChunks to retrieve (default 5).
channel_idYesChannel to query. The key must be scoped to it.
session_idNoOptional session for multi-turn continuity.
source_typesNoRestrict retrieval to these source types.
idempotency_keyNoIdempotency-Key for safe retries.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Beyond the readOnlyHint/openWorldHint annotations, the description discloses authorization requirements (query scope + channel access) and the billing model ($0.02 flat per call, service defaults, with `quote` for exact pricing). That is substantive context the annotations do not carry; it stops short of describing rate limits or response shape details beyond 'answer with citations'.

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 tightly packed sentences, front-loaded with the action and resource, then prerequisites, then cost. The pricing sentence is slightly redundant ('by default' followed by 'Prices are the service defaults'), but each element is useful and no filler is present.

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?

With no output schema, the description carries return-value burden and does so at a high level ('generated answer with citations'). Combined with endpoint, auth scope, and cost disclosure, an agent has enough to call it correctly; only the contrast with query_collection and pagination/answer structure remain unstated.

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 all six parameters including top_k defaults, session_id continuity, source_types restrictions and idempotency_key are already documented in the schema. The description adds no parameter-level syntax or format detail, which is the expected baseline when the schema does the work.

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 gives a specific verb+resource: 'Run a retrieval-augmented query against a channel's indexed knowledge base and return a generated answer with citations', plus the concrete endpoint POST /v1/query. It clearly identifies the channel scope (implying separation from query_collection), but never explicitly contrasts itself with the similarly-named sibling, so differentiation is left to inference.

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 states prerequisites ('Requires the key's `query` scope and access to the channel') and routes pricing questions to the `quote` sibling when the default does not apply. It gives no guidance on when to pick this over query_collection or multi-turn session usage, so exclusions are absent.

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