Skip to main content
Glama
Shopify Admin MCP Server

Shopify Admin MCP Server

get_collections_count

Count total Shopify collections and optionally filter by a search query to retrieve targeted collection totals.

Instructions

Count the total number of collections, optionally filtered by a query.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_collections_count"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryNoSearch query to filter collections

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.5

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. 'Count the total number' does imply a non-mutating, exact aggregation, which is useful, but it never confirms read-only behavior, whether the count is exact versus approximate, or whether the query filter matches the same semantics as filtering in get_collections.

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?

One compact sentence with the core action front-loaded ('Count the total number of collections') and the filter condition trailing as a qualifier. Nothing is redundant or padded.

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 one-optional-parameter counting tool with no output schema, the definition covers what the tool does and its filtering behavior adequately. The only minor gap is that it does not clarify the return type or whether the count reflects all collections by default.

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% and the single 'query' parameter is documented as a filter, so the schema already does the heavy lifting. The description's phrase 'optionally filtered by a query' reinforces that the filter is optional (zero required params) but adds no syntax or matching details beyond the schema.

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 uses a specific verb ('Count') and resource ('collections') and states the aggregation explicitly ('total number'), which is enough to separate it from the list-oriented 'get_collections' sibling. It stops short of naming that sibling, so the differentiation is implied rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than explained: an agent can infer this is the tool for totals rather than record retrieval, but the description never says 'use this instead of get_collections when you only need a count' or spell out any preconditions. No exclusions or alternatives are given.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.