Skip to main content
Glama

count_customers

Count total customers in your store, optionally filtering by creation date to analyze customer growth over time.

Instructions

Count total customers in the store, optionally filtered by creation date.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
created_on_maxNoFilter by created date max (ISO 8601).
created_on_minNoFilter by created date min (ISO 8601).
Behavior2/5

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

No annotations are provided, so the description carries the full burden of disclosing behavior. It states 'Count total customers' and 'optionally filtered by creation date,' but it does not explicitly say what it returns (e.g., an integer count), nor does it mention any edge cases such as whether deleted customers are included or how date boundaries are handled. For a read-only count, this is a notable gap in return-value clarity.

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?

The description is a single, concise sentence that front-loads the core purpose and includes the key optional filter. Every word contributes value; no fluff or redundant phrasing.

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

Completeness3/5

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

This is a simple tool with two optional parameters, full schema coverage, and no output schema or annotations. The description covers the purpose and filter, but lacks an explicit statement about the return value (e.g., 'Returns the total number of customers'). Given the low complexity, it is adequate but not fully complete.

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% for both parameters (created_on_max and created_on_min), so the schema already documents their meaning. The description does add the context that these filter by 'creation date,' which maps directly to the parameters, but it does not add details beyond the schema. Baseline 3 is appropriate.

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?

The description clearly states the tool's function: 'Count total customers in the store.' It uses a specific verb ('count') and resource ('customers'), making it distinct from other customer tools like list_customers, get_customer, and search_customers. The optional filter by creation date is also mentioned, adding precision.

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?

The description implies usage: use when you need a total count of customers, optionally within a date range. However, it does not explicitly compare with alternatives like count_products or count_orders, nor does it provide when-not-to-use guidance. The intended use is fairly obvious from the wording, but no explicit guidance is given.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nguyennguyenit/Sapo-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server