Skip to main content
Glama

word_count

Read-onlyIdempotent

Count words and characters in an Obsidian note or section, including CJK characters as words, and estimate reading time for quick note-length checks.

Instructions

Word and character count of a note or section (CJK characters count as words, like Obsidian), plus reading time.

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": {
      "file": "<file>"
    },
    "name": "word_count"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesNote path ("Folder/Note.md"), path without .md, note name, alias, or [[wikilink]]
vaultNoVault name, id or folder path (see list_vaults). Default: OBSIDIAN_VAULT or the vault open in Obsidian.
sectionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare the full safety profile (readOnly, idempotent, non-destructive, not open-world), so the bar is lower. The description does add genuine value by disclosing a non-obvious counting rule (CJK characters count as words, matching Obsidian) and by naming reading time as a returned metric. It says nothing about how reading time is derived or the shape/precision of the returned counts, which matters since there is no output schema.

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 sentence that front-loads the core purpose, then adds the two genuinely useful qualifiers (CJK counting rule, reading time) in a compact aside. No boilerplate, nothing that restates the tool name or the annotations.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a low-complexity read-only computation tool, so it doesn't need much. However, with no output schema the description carries the burden of describing returns, and it only gestures at them ('plus reading time') without saying what fields come back. The undocumented section parameter also leaves a real gap for callers who want a sub-note count.

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?

Schema coverage is 67%: file and vault carry rich descriptions in the schema, so the description need not repeat them. The gap is section, which has no schema description and no mention in the description — the agent gets no signal whether it expects a heading text, a heading level, or a block reference. The description also doesn't clarify whether word count for a section includes subsections.

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 computational operation (word and character count) on a specific resource (a note or section), and adds a third output (reading time). This is unambiguous and an agent can immediately tell what the tool is for. It stops short of a 5 only because it doesn't contrast itself with any related capability, though the sibling list suggests no close alternative exists.

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 — an agent infers it should call this when it needs metrics about a note's length. There is no explicit 'use this when' framing, no prerequisite (e.g. whether the note must exist / be readable), and no guidance on when the section parameter should be supplied versus counting the whole note.

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