Skip to main content
Glama
Patchbowl MCP Server Template

Patchbowl MCP Server Template

by PatchBowl

Count words

word-count
Read-only

Count words, characters, and lines in provided text to measure content length for writing, editing, or validation.

Instructions

Count the words, characters and lines in a piece of text.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "text": "<text>"
    },
    "name": "word-count"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe text to measure

Output Schema

NameRequiredDescriptionDefault
linesYes
wordsYes
charactersYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true and openWorldHint=false, so safety and locality are covered structurally. The description adds no behavioral context beyond that — nothing on how the counting treats whitespace, unicode, or multi-line input, and nothing on result shape (an output schema exists, so that omission is acceptable). It adds little but contradicts nothing.

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?

A single front-loaded sentence with no filler; the measured quantities are listed immediately after the verb. Nothing could be trimmed without losing information.

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?

For a one-parameter read-only utility with an output schema and full schema coverage, the description covers everything an agent needs to select and invoke it. Only minor edge-case context (e.g., how very long or non-ASCII input is handled) is absent, which the maxLength constraint largely covers.

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?

There is one required parameter with 100% schema description coverage ('The text to measure', maxLength 100000), so the schema does the documentation work. The description's phrase 'a piece of text' reiterates rather than extends that meaning, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb (count) and enumerates the exact measurements returned: words, characters and lines in a piece of text. It is unambiguous about scope. It does not need sibling differentiation because the only sibling, 'greet', is unrelated, but it also makes no routing statement.

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 is only implied by the wording 'a piece of text' — the description never says when to call this versus other tools, nor any preconditions. For a trivial single-input utility the intent is still obvious, but no explicit when-to-use guidance is offered.

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

Deploy Server

Other Tools