Skip to main content
Glama

Add keyword

add_keyword
DestructiveIdempotent

Start tracking a search term for an extension. The term is added once per store the extension is listed in, and a rank fetch is enqueued for each store that was not already tracking it.

The position is not available when this returns. Call list_keywords with the same extension_id until this term's status turns from "pending" to "scanned", or list_scrape_runs to watch the fetch itself — a fetch that fails shows up there, rather than as a position that never arrives.

A term is tracked per store language. Tracking "ad blocker" in en and again in de gives two independent keywords with their own positions. Call list_keywords for the languages an extension already tracks.

An extension tracks at most 10 keywords on the Free plan and 50 on Premium, counted per language: "ad blocker" in en and de is two. Past that this returns a limit error. Explain the limit and offer upgrading, or ask which keyword the user wants removed with remove_keyword. Never remove automatically or retry unchanged.

Needs an ExtensionDash account: sign in from your app, e.g. claude mcp login extensions-dashboard or codex mcp login extensions-dashboard.

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": {
      "extension_id": "<extension_id>",
      "term": "<term>"
    },
    "name": "add_keyword"
  }
}

Input Schema

NameRequiredDescriptionDefault
termYesThe search term, e.g. "json viewer". Squished and lowercased before use.
localeNoStore language to search in: "en", "de", "pt-BR". Defaults to "en". The same term ranks differently in each, so this is a separate keyword, not a translation. Canonicalised before use, so "DE" and "de" are one keyword and "pt-br" comes back as "pt-BR".
extension_idYesFrom list_extensions.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare a non-read-only, destructive, idempotent, open-world write, and the description adds genuinely new behavior: no position is returned, a fetch is enqueued per newly tracked store, failures surface in list_scrape_runs, and an account login is required. What it does not cover is what the destructiveHint actually means here (e.g. whether a duplicate add is a no-op given idempotentHint, or what happens to existing ranks), so the safety profile of a destructive-annotated tool stays partly unexplained.

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?

Paragraphs are ordered well: purpose, then return-value caveat, then language semantics, then quota, then auth. It loses a point for redundancy — the 'ad blocker in en and de is two' example appears twice within two paragraphs.

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?

With no output schema, the description correctly spends words on the return contract (no position at call time, status transitions via list_keywords) and on failure visibility via list_scrape_runs. The residual gap is that the destructive/idempotent hints are never unpacked, which a write tool with those annotations would ideally do.

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%, so the schema already documents term squishing, locale canonicalisation, and the per-language independence of a keyword. The description mostly restates the locale model rather than extending it; the only real addition beyond the schema is that the plan limit is counted per language, which is a limit rule rather than parameter meaning.

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 opening sentence gives a specific verb and resource (start tracking a search term) plus the unit of work (one per store the extension is listed in), which separates it cleanly from add_extension and add_competitor. It also names the enqueued rank fetch, so the agent knows this is an async write rather than an immediate lookup.

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?

Explicit follow-up paths are named for every branch: poll list_keywords until pending turns to scanned, use list_scrape_runs to see a failed fetch, use list_keywords to learn the tracked languages, and on a limit error either explain/upgrade or ask the user which keyword to remove with remove_keyword. It even states the prohibitions (never remove automatically, never retry unchanged), which is the strongest form of when-not guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources