Skip to main content
Glama

Save Keywords

save_keywords
Idempotent

Saves keywords (from research or Search Console) and sets their tags, exclusion and rank tracking, in one call. New keywords are tracked and audience-checked (one Google top 10 fetch each) unless track is false or they are excluded. Exclude a keyword whose searchers aren't the buyer; it stops tracking. If this refuses because the workspace is not set up, call get_setup_status and check its rows, including skipped ones. Related: research_keywords, list_saved_keywords, set_up_market.

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": {
      "items": "<items>"
    },
    "name": "save_keywords"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYesKeywords to upsert.

Output Schema

NameRequiredDescriptionDefault
savedYes
outcomesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • addedInput schema / properties / items / items / properties / keyword / maxLength
      Added value: +200
    • addedInput schema / properties / items / items / properties / languageCode / maxLength
      Added value: +16
    • addedInput schema / properties / items / items / properties / languageCode / minLength
      Added value: +1
    • addedInput schema / properties / items / items / properties / locationCode / exclusiveMinimum
      Added value: +0
    • removedInput schema / properties / items / items / properties / locationCode / minimum
      Removed value: --9007199254740991
    • addedInput schema / properties / items / items / properties / tagNames / items / maxLength
      Added value: +64
    • addedInput schema / properties / items / items / properties / tagNames / items / minLength
      Added value: +1
    • addedInput schema / properties / items / items / properties / tagNames / maxItems
      Added value: +20
    • addedInput schema / properties / items / maxItems
      Added value: +100
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations it discloses real side effects and cost: new keywords are audience-checked with one Google top 10 fetch each (latency/consumption), tracking defaults to on unless track is false or the keyword is excluded, and exclusion stops tracking. It also describes an error condition and the correct follow-up tool, which the annotations alone do not convey.

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?

Four tight sentences, front-loaded with the primary action and followed by the side-effect warning, the exclusion rule, and the failure path. The sentence "Exclude a keyword whose searchers aren't the buyer; it stops tracking" is slightly compressed ("it" is ambiguous between the keyword and its tracking), costing a perfect score.

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

Completeness5/5

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

For a single-array-parameter upsert tool with an output schema and rich annotations, the description covers what an agent still needs: side effects, default tracking behavior, the exclusion contract, and the recovery path on refusal. Nothing required to invoke it correctly appears to be missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not: track defaults on for new keywords, exclusion has a downstream effect on tracking, and items behave as upserts ("Saves keywords ... in one call"). It does not clarify siteId, languageCode, or locationCode semantics beyond the schema, which keeps it below 5.

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 names a specific verb and resource ("Saves keywords ... and sets their tags, exclusion and rank tracking, in one call") and scopes the accepted sources (research or Search Console). An agent can tell this apart from read-only siblings like list_saved_keywords without opening the schema.

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?

It gives a concrete decision rule for the exclusion flag ("Exclude a keyword whose searchers aren't the buyer; it stops tracking") and a recovery path when the call refuses because the workspace is not set up (call get_setup_status and check rows, including skipped ones). The closing "Related:" line lists sibling names without stating the conditions that would select them, so the routing guidance is clear but not fully explicit.

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