Skip to main content
Glama

Get word count

get_word_count

Counts words and characters in an Obsidian note while excluding frontmatter, helping you gauge content length accurately.

Instructions

Word and character count for a note, excluding frontmatter.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_word_count"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNoNote name, resolved like a wikilink. No folder path, no extension.
pathNoExact path from the vault root, e.g. "Projects/Roadmap.md".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the burden alone; it usefully discloses that frontmatter is excluded from the count, which is real behavioral context. It does not cover error behavior for an unresolved file, which of file/path wins if both are supplied, or the shape of the result, so the disclosure is partial.

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 tight sentence with the resource and the exclusion rule front-loaded; every clause earns its place and there is no filler.

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 simple, non-destructive read tool with fully documented parameters and no output schema, the description conveys what is computed and what is skipped. The only real gap is the absence of a rule for when both file and path are given.

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 description coverage is 100%, with both file and path fully documented in the schema (wikilink-style name vs exact vault path). The description adds no guidance on choosing between these two optional parameters, so it does not exceed the baseline.

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 states a specific resource (a note) and specific outputs (word and character count), and adds a scoping rule (frontmatter excluded). It is clearly distinguishable from get_note_info or read_note, though it never explicitly names or contrasts a sibling.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use or when-not-to-use guidance, and no mention of alternatives such as get_note_info for general note metadata. The agent must infer that this is the tool for counting words rather than inspecting a note.

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