Skip to main content
Glama

query_collection

Read-onlyIdempotent

Query a collection for paginated content. Returns the matching items plus pagination metadata (total, limit, offset, has_more); each item is decorated with a public url field where one is configured. Use REST-style include / exclude filter strings (comma-separated field:value pairs; AND-semantics for include, OR-semantics for exclude) and sort (e.g. date:desc). Only properties listed in the catalog below are queryable — other schema properties exist on objects but are not filterable here; use get_object if you need the full record or describe_collection to see every property. This tool does not free-text search content — use search_collection for that. It does not fetch a single object by id — use get_object.

Available collections and filterable properties:

  • articles — id (id, sortable), title (text), author (select), summary (textarea), date (date, sortable), draft (toggle), updated (datetime, sortable)

  • comparisons — competitor (text), competitorUrl (url), heading (text), lede (textarea), reviewed (date, sortable), draft (toggle), sort (number, sortable), id (id, sortable)

  • extension — id (id, sortable), name (text), extensionId (text), soldAs (text), summary (textarea), category (select), price (number, sortable), currency (select), minEdition (select), minVersion (text), bundled (toggle), beta (toggle), docsUrl (url), productUrl (url), draft (toggle), owner (select), featured (toggle), approved (datetime, sortable), submitted (datetime, sortable), weight (range, sortable)

  • releases — id (id, sortable), version (text), title (text), date (date, sortable), draft (toggle), urgent (toggle), fullnotesurl (url), announce (toggle)

  • roundups — heading (text), lede (textarea), reviewed (date, sortable), draft (toggle), headToHead (toggle), sort (number, sortable), id (id, sortable)

  • showcase — name (text), url (url), industry (select), id (id, sortable), owner (select), draft (toggle), featured (toggle), approved (datetime, sortable), submitted (datetime, sortable), weight (range, sortable)

Input Schema

NameRequiredDescriptionDefault
sortNoSort rule "field:direction"; multiple rules comma-separated. Only fields marked sortable in the catalog will sort.
limitNoMaximum items to return. Capped at 50 (vs. REST's 100) to fit MCP response-size budgets.
formatNoRendered format for content fields. Accepted now for forward-compat; full conversion ships with the Tiptap→markdown converter in a later release.markdown
localeNoBCP 47 locale tag. Accepted for forward-compat with the 3.6 i18n release — has no effect today.
offsetNoNumber of items to skip — combine with limit for pagination.
excludeNoComma-separated field:value pairs that exclude items (OR). Drafts the caller may not see are removed before this filter runs, whatever it says.
includeNoComma-separated field:value pairs items must ALL match. Wildcards "*foo*", "foo*", "*foo" supported.
collectionYesCollection id (slug-form). Use list_collections to discover available collections.

Output Schema

NameRequiredDescriptionDefault
itemsYesMatching objects in sort order. Field set varies by collection — call describe_collection for the schema.
limitYesCap applied to this response — server may have lowered the requested limit.
totalYesTotal matching items (post-persona-filter).
offsetYes
has_moreYesTrue when total > offset + count(items); call again with offset += limit to paginate.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description adds genuinely non-obvious behavior: drafts are stripped before the user's exclude filter runs regardless of what it says, limit is capped at 50 rather than REST's 100, and format/locale are currently no-ops accepted for forward compatibility. Those no-op parameters are the kind of surprise that would otherwise mislead an agent, but return-shape detail is thin beyond a one-line mention of pagination metadata.

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?

Front-loaded with the core behavior and exclusions before the property catalog, which is dense but load-bearing. Some redundancy with the schema's own include/exclude and sort explanations costs it a point, though the catalog itself could not be trimmed without losing queryable-field knowledge.

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

Completeness5/5

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

Covers purpose, exclusions, routing to alternatives, pagination metadata, and the full queryable-property matrix; the output schema handles return structure. Nothing an agent needs in order to build a valid call is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description goes well beyond it by enumerating every filterable property per collection along with type and sortability — information the schema cannot express and which determines whether an include/sort clause is even legal. It also clarifies AND-vs-OR semantics at the description level for quick scanning.

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?

States a specific verb and resource ('Query a collection for paginated content') and immediately scopes what it is not: not free-text search (search_collection) and not single-object fetch (get_object). An agent can distinguish it from all 19 siblings without opening a schema.

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?

Explicitly names three alternative tools with the condition that selects each: search_collection for text search, get_object for full records, describe_collection for the complete property list. Also states the routing rule for non-filterable properties, which is the key failure mode an agent would hit.

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.