Skip to main content
Glama
Discordit142

mcp-counter-server

by Discordit142

counter_parse_and_apply

Parses counter tags from text and applies increment, decrement, reset, delete, and set operations in order, returning final counter states.

Instructions

Parse counter tags from text and apply all operations in order. Supports multiple tag formats: Full syntax: [-counter:ID:+N-] or [-c:ID:+N-] for increment/decrement, [-counter:ID:reset-], [-counter:ID:delete-], [-counter:ID:set:N-]. Shorthand syntax (explicit numbers required): [+N:ID] for increment, [-N:ID] for decrement, [reset:ID], [delete:ID], [set:N:ID]. Examples: [+5:files], [-3:errors], [reset:temp], [set:100:progress]. Processes all tags sequentially and returns final counter states.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesText containing counter tags to parse and execute. Tags will be extracted and executed in order.
debugNoEnable debug mode to see detailed results for each processed tag. Default: false (streamlined mode showing only final counter states).
Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses sequential processing, final state returns, and debug mode behavior, which is helpful. However, it does not mention error handling, what happens with invalid tags, or the mutating side effects on counters beyond 'apply operations'.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is longer but every section earns its place: purpose, syntax forms, examples, and behavior. It is front-loaded with the primary purpose and well-structured. Slight redundancy in tag format enumeration but overall efficient.

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?

Given the tool's complexity (multiple syntaxes) and no output schema, the description is quite complete: it covers supported formats, processing direction, debug mode, and return value. Missing error-handling details, but the core functionality is well-specified.

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?

The schema covers both parameters, but the description adds substantial meaning by detailing the tag syntax for the text parameter and clarifying debug output behavior beyond the schema's simple description. This elevates it above the baseline 3.

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 'Parse counter tags from text and apply all operations in order' with a specific verb and resource. It distinguishes itself from sibling tools (e.g., counter_increment, counter_reset) by targeting batch processing from text with multiple supported tag formats.

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 context is implied through the detailed tag format syntax and examples, but the description never explicitly states when to use this tool versus the individual counter operations. No exclusions or alternative recommendations are provided.

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/Discordit142/mcp-counter-server'

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