count_digits
Count the number of digits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| number | Yes | Number to count digits |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| number | Yes | ||
| digit_count | Yes | ||
| digit_frequency | Yes |
Count the number of digits.
| Name | Required | Description | Default |
|---|---|---|---|
| number | Yes | Number to count digits |
| Name | Required | Description | Default |
|---|---|---|---|
| number | Yes | ||
| digit_count | Yes | ||
| digit_frequency | Yes |
Changes observed during successful MCP inspections.
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description is the sole source of behavioral info. It does not address edge cases such as negative numbers, zero, or how the count is performed (e.g., treating minus sign as a digit).
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?
The description is extremely concise at 5 words, making it easy to read. Every word is necessary, and no redundant information is present.
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?
Given the tool's simplicity, the description is minimally adequate. However, it lacks elaboration on return value behavior (though output schema may cover that) and edge cases, making it only 'just enough'.
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?
The schema already covers 100% of the parameter with a clear description. The tool description adds no extra meaning beyond what the schema provides, meeting the baseline.
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 'Count the number of digits' essentially repeats the tool name, providing no additional detail. It is clear but adds no value beyond the name, making it a tautology.
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 is given on when to use this tool versus similar siblings like 'count_char', 'count_items', or 'sum_digits'. The agent has no context for selection.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.