Skip to main content
Glama

update_rank_keywords

Destructive

Change tracked keywords: pause or resume them (a paused keyword is not checked and costs nothing; its history stays), replace their tags, set the page the client wants to rank, or change which engines and devices are tracked. Switching an engine off keeps its history. Requires MCP write actions; without confirm:true it returns a preview.

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": {
      "clientId": "<clientId>",
      "keywordIds": "<keywordIds>"
    },
    "name": "update_rank_keywords"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNoREPLACES the keywords' tags. To add or remove single tags and keep the rest, use addTags / removeTags instead.
activeNofalse = pause, true = resume.
tracksNoThe COMPLETE set of engines and devices these keywords have from now on.
addTagsNoTags to add to each keyword, keeping the tags it has. Ignored when `tags` is given.
confirmNoSet true to apply. Omit for a preview. With confirm:true, also pass the preview's previewToken.
clientIdYesClient id (from list_clients).
targetUrlNoThe page the client wants to rank; null removes it.
keywordIdsYesKeyword ids: rows[].id from get_rankings.
removeTagsNoTags to take off each keyword. Ignored when `tags` is given.
previewTokenNoWith confirm:true: the previewToken from this tool's preview (valid 15 minutes, once, for exactly the previewed arguments).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / tracks / items / additionalProperties
      Removed value: -false
  2. Changed1 schema field changed
    • changedInput schema / properties / tracks / description
      Previous value: -"The COMPLETE set of engines and devices these keywords should have from now on."New value: +"The COMPLETE set of engines and devices these keywords have from now on."
  3. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare this is a non-readOnly, destructive write, and the description adds genuinely useful behavior: a paused keyword is not checked and costs nothing while keeping history, and turning an engine off preserves its history. It also documents the preview/confirm two-step. It would score higher if it said explicitly that supplied tags and tracks REPLACE existing values, a destructive effect only the schema states.

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 primary action and its edit surface are front-loaded, and the parenthetical clarification about paused keywords is dense but earns its space. The write-permission and preview note comes last, where an agent will still see it before calling.

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 10-parameter destructive mutation with no output schema, the description covers the important gaps: cost/history implications of pausing and engine removal, and the two-step preview-then-confirm flow. The main omission is not flagging that tags and tracks are full replacements rather than merges.

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 every parameter is already documented in structured data, including the tags-vs-addTags/removeTags distinction and the previewToken lifetime. The description restates the meaning of pausing and target page at a high level but adds little syntax or constraint detail beyond the schema, so baseline 3 applies.

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 description opens with a specific verb and resource ("Change tracked keywords") and enumerates the four mutable attributes: pause/resume, tags, target page, and engines/devices. That makes it distinguishable from add_rank_keywords and remove_rank_keywords by implication, though it never names them.

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 clear operational context: write permission is required and calls without confirm:true return a preview. It does not explicitly state when to choose this tool over add_rank_keywords, remove_rank_keywords, or addTags/removeTags siblings, but the scope of edits is stated plainly.

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