Skip to main content
Glama

Query any collection (read-only)

swell_query
Read-only

Power tool: read-only (GET only) access to ANY Swell model not covered by a dedicated tool — e.g. stock, promotions, giftcards, payments, shipments, settings. Supply the collection name plus the usual list params (limit, page, where, sort, expand, fields, search). Swell backend REST API: GET /{collection}.

Input Schema

NameRequiredDescriptionDefault
pageNoPage number for pagination (default 1).
sortNoSort expression, e.g. "date_created desc" or "name asc".
limitNoMax records to return (1–1000, Swell default 15).
whereNoMongoDB-style filter as a JSON object string, e.g. {"active":true,"price":{"$gte":10}}.
expandNoComma-separated related fields to expand, e.g. "variants,categories".
fieldsNoComma-separated fields to return, e.g. "name,price,active".
searchNoFree-text search across the model's searchable fields.
collectionYesSwell model/collection name, e.g. "products", "stock", "promotions", "giftcards".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations cover readOnlyHint=true, and the description reinforces it with 'read-only (GET only)' and adds the underlying REST endpoint GET /{collection}, which is genuine behavioral context. It doesn't discuss rate limits or response shape, but for a read-only passthrough query tool the safety profile is well covered.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tightly-packed sentences, front-loaded with the scope and the sibling differentiator, then params, then the REST mapping. No filler.

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 generic read-only query passthrough with no output schema and a fully documented input schema, the description provides enough to invoke it correctly. Minor gaps: no mention of how to discover valid collection names or pagination envelope, but nothing critical is missing.

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 all eight parameters are already fully documented in the schema including examples and defaults. The description only lists the param names, adding no semantics beyond that. Baseline 3 applies.

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+resource+scope: read-only GET access to any Swell model. It explicitly carves out its niche versus the dedicated sibling tools ('not covered by a dedicated tool'), so an agent can distinguish it from swell_list_products, swell_get_order, etc.

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?

Clearly states the context of use ('ANY Swell model not covered by a dedicated tool') and names concrete examples like stock, promotions, giftcards. It doesn't explicitly say when not to use it, but the 'not covered by a dedicated tool' qualifier effectively implies the routing rule.

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.