Skip to main content
Glama
CarmitHaas

Customer Service Data Analyst MCP Server

by CarmitHaas

count_records

Count records matching a category, intent, or keyword, returning the number and percentage of matches without retrieving data rows.

Instructions

Count how many records match a category, intent, and/or keyword, as a number and as a percentage of the dataset. This is the counting half of a chain: to answer 'how many refund requests did we get?', pass intent='get_refund'. Returns no rows, so it is cheap and safe for large matches.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
categoryNo
intentNo
keywordNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

No annotations are provided, so the description carries the burden. It discloses return behavior (no rows, only count/percentage) and safety (cheap, safe), but lacks details on permissions or side effects. Overall, it provides sufficient transparency for a read-only query tool.

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?

Two sentences: the first states purpose, the second provides usage context and safety. No unnecessary words, front-loaded with the core function.

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?

With an output schema (implied), the description does not need to detail return structure. It covers all three optional parameters, gives a real-world chain scenario, and mentions performance characteristics. The sibling tools context is well integrated.

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

Parameters4/5

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

Schema coverage is 0%, so the description must compensate. It explains the three parameters (category, intent, keyword) as filters and gives an example with 'intent'. This adds meaning beyond the schema's names, though format constraints are not detailed.

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 counts records matching filters (category, intent, keyword), returning a number and percentage. It distinguishes from sibling tools like filter_records (which returns rows) and summarize_category, making the purpose specific and unambiguous.

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?

Provides an explicit example ('how many refund requests?') and explains it is the counting half of a chain, implying when to use it versus filter_records. Also notes it is cheap and safe for large matches, guiding appropriate usage.

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/CarmitHaas/customer-service-agent-carmit-haas'

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