Skip to main content
Glama

Save keywords

save_keywords
Destructive

Save keywords to a project's saved-keywords list. Uses no credits. Idempotent: re-saving an existing keyword is a no-op. If tags are provided, missing tags may be created. By default tags are appended; set tagMode=replace to remove existing tags from these saved keywords before applying the provided tags, which is useful for reorganizing keywords into page/topic clusters. Ask the user for confirmation before applying or replacing tags broadly.

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

Input Schema

NameRequiredDescriptionDefault
tagsNoOptional tags to attach to every saved keyword. Ask the user for explicit confirmation before using this, especially when saving many keywords or creating new tag names.
metricsNoOptional metrics for the saved keywords. Copy keyword, searchVolume, keywordDifficulty, cpc, competition, and intent from research_keywords or get_keyword_metrics rows. monthlySearches is optional. Match each metric using its keyword field.
tagModeNoHow to apply tags. Defaults to append. Use replace to remove existing tags from these saved keywords before applying the provided tags.
keywordsYesKeywords to save (1-100).
projectIdYesRequired. The NameIO project ID to scope this call to. Get one from list_projects.
languageCodeNoLanguage code (e.g. 'en', 'es', 'vi'). Defaults to the project's default market language (see list_projects).
locationCodeNoLocation code. Defaults to the project's default market (see list_projects; editable in project settings). Some countries (e.g. Iceland, 2352) are served from Google Ads data: keyword volume/CPC/trends work, but keyword difficulty, search intent, and domain analytics are unavailable.

Output Schema

NameRequiredDescriptionDefault
metaNo
tagsYes
tagModeYes
keywordsYes
projectIdYes
savedCountYes
languageCodeYes
locationCodeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations only flag destructiveHint=true; the description goes further by disclosing no credit cost, idempotency (re-saving is a no-op), the side effect that missing tags may be created, and exactly what replace mode destroys (existing tags on these keywords). That is exactly the extra context an agent needs before a destructive-tagged write.

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?

Sentences are front-loaded with purpose, then cost, idempotency, and tag behavior, with no filler. The closing confirmation sentence partially duplicates the tags schema description but still adds a broad-scope qualifier.

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?

Mutating, destructive-flagged tool with an output schema present, so return values need no explanation; the definition covers cost, idempotency, side effects, and destructive scope. Limits on keyword/metrics counts are left to the schema, which is acceptable given full coverage.

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; the description earns above baseline by explaining the semantic difference between append and replace, including the removal step and the cluster-reorganization use case for tagMode, plus a confirmation norm for the tags parameter.

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 opening sentence names a specific verb and resource ('Save keywords to a project's saved-keywords list'), which is unambiguous. It does not explicitly contrast with siblings such as add_rank_tracking_keywords or list_saved_keywords, so it stops short of a 5.

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 concrete conditions: default append vs tagMode=replace for reorganizing into page/topic clusters, and asks for user confirmation before broad tag application. It gives no exclusion criteria relative to other keyword-saving tools, so not a 5.

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