count_rows
Count rows in a MySQL table with optional WHERE conditions.
Instructions
统计表的行数,支持可选 WHERE 条件。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | ||
| where | No | ||
| database | No |
Count rows in a MySQL table with optional WHERE conditions.
统计表的行数,支持可选 WHERE 条件。
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | ||
| where | No | ||
| database | No |
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries full burden. It discloses that rows are counted with optional WHERE, but does not explain the execution method (e.g., COUNT(*)), permissions needed, side effects, or return type.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Single sentence that conveys the core function efficiently. No extraneous information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
No output schema or return value description. The tool is simple, but missing details about the output format (e.g., integer count) and potential errors.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 0%, but description only covers 'table' and 'where' implicitly. The 'database' parameter is not mentioned, leaving its purpose unclear.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action (count rows) and the resource (table), and mentions optional WHERE support. It distinguishes from sibling tools like list_tables or execute_query, though it could be more explicit about returning a count value.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance on when to use this tool versus alternatives such as execute_select or describe_table. No mentions of performance considerations, limitations, or prerequisites.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/CCCT173/mysql-mcp-pro'
If you have feedback or need assistance with the MCP directory API, please join our Discord server