Skip to main content
Glama
Fast Video Cataloger

Fast Video Cataloger

Official

Count a keyword's use

keyword_usage
Read-only

Count videos and scenes that carry a keyword to reveal real usage before renaming or deleting it.

Instructions

How many videos and how many scenes carry one keyword. Use it to tell a keyword that is really used from one that only sits in the list, and before rename_keyword or delete_keyword so the user knows what the change touches. Name the keyword exactly as list_keywords reports it.

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": {
      "keyword": "<keyword>"
    },
    "name": "keyword_usage"
  }
}

Input Schema

NameRequiredDescriptionDefault
keywordYesThe keyword, exactly as list_keywords reports it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv10.6.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered; the description adds that the result is two separate counts (videos and scenes), which is meaningful output context. With no output schema, it could say more about the returned shape (e.g., zero-count behavior), so it stops short of full transparency.

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?

Three short sentences, front-loaded with what the tool returns, then why to use it, then the parameter rule. Nothing is wasted, though the final sentence duplicates the schema's parameter description.

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 single-parameter read-only counting tool, the description covers purpose, usage, and cross-tool dependency. The only gap is the exact shape of the return values, which has no output schema to fall back on.

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 100% and the single parameter is fully documented. The description's 'name the keyword exactly as list_keywords reports it' reinforces exact-match (not fuzzy/partial) semantics and ties the value to another tool, but largely echoes the schema text, so this is baseline-plus.

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?

States a specific measurement ('how many videos and how many scenes carry one keyword') with a clear resource, so an agent can distinguish it from list_keywords, rename_keyword, and delete_keyword. The purpose is concrete and unambiguous.

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

Usage Guidelines5/5

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

Explicitly names when to use it: to distinguish a genuinely used keyword from an unused one, and as a pre-check before rename_keyword or delete_keyword so the user knows the impact. This gives both intent and the sibling tools it should precede.

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