Skip to main content
Glama
wanyingng

docs-search-engine

by wanyingng

count_word_occurrences

Counts how many times a specific word appears on any web page. Provide URL and word to get an exact occurrence count, with optional case-insensitive matching.

Instructions

Count occurrences of a specific word on a web page.

This tool scrapes a web page and counts how many times a specific word appears in the content.

Args: url: The URL of the web page to analyze. word: The word to search for and count. case_insensitive: If True, count is case-insensitive (default: True).

Returns: A dictionary with the count and additional info.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYes
wordYes
case_insensitiveNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It discloses that the tool scrapes a web page and returns a dictionary, which is useful, but it omits caveats about network dependency, page size limits, site accessibility, or what the vague 'additional info' actually contains.

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 well-structured: a one-line summary, brief explanation, Args section, and Returns section. However, the first two sentences are somewhat redundant ('Count occurrences...' and 'This tool scrapes... counts...'), which slightly reduces tightness.

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 tool with three parameters, the description covers inputs, behavior, and return type adequately. It does not specify the exact structure of the returned dictionary or note edge cases such as unavailable pages, but given the tool's simplicity, the remaining gaps are relatively minor.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must compensate for the schema's bare types. The Args section clearly explains all three parameters, including the url to analyze, the word to count, and the case_insensitive behavior with its default. It fully adds meaning beyond the structured schema.

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 states a specific verb-resource combination ('Count occurrences of a specific word on a web page') and clearly distinguishes the tool from siblings: scrape_web (raw content retrieval) and search_docs (searching documentation). The purpose is immediately obvious.

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

Usage Guidelines4/5

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

The purpose makes the tool's usage context clear: use it when you need word frequency from a web page. However, it does not explicitly contrast with alternatives or state exclusions for when another tool would be better, so it stops short of full usage guidance.

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/wanyingng/docs-search-engine'

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