Skip to main content
Glama

Seller Labs Amazon MCP

update_sp_keyword_state

Enable, pause, or archive one or more Sponsored Products keywords. Use execute_sql against the keyword_performance table to find keyword IDs first.

Supported state values: ENABLED, PAUSED, ARCHIVED. ARCHIVED permanently stops a keyword — this cannot be undone and the keyword cannot be restored. Keywords must be PAUSED before they can be archived. If any keyword in the batch is ENABLED, the entire batch is rejected — split ENABLED and PAUSED keywords into separate calls.

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": {
      "keywordIds": "<keywordIds>",
      "state": "<state>",
      "venueId": "<venueId>"
    },
    "name": "update_sp_keyword_state"
  }
}

Input Schema

NameRequiredDescriptionDefault
stateYesNew state: ENABLED, PAUSED, or ARCHIVED (required). ARCHIVED permanently stops a keyword and cannot be undone.
venueIdYesVenue ID of the storefront to change (required; never defaulted). In an agency account each venue can be a different client, so if the user has not named the venue, ask them before calling. Use get_ads_connection_status or execute_sql with 'SELECT venue_id, name, marketplace_name FROM venues' to list venue IDs.
keywordIdsYesList of keyword IDs to update (required). Use execute_sql against keyword_performance to find IDs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: ARCHIVED is declared permanent and unrestorable, batch rejection on any ENABLED keyword is disclosed, and the PAUSED prerequisite is stated. It omits what happens to the non-offending keywords in a rejected batch and what the response reports per keyword, which are the remaining behavioral gaps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short sentences, front-loaded with the action, then lookup guidance, then the valid values, then the two hard constraints. No filler or restatement of the name.

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 destructive, batch, three-parameter mutation tool with no annotations and no output schema, the description supplies the irreversibility warning and batch preconditions that matter most. It stops short of describing the per-keyword result or failure reporting and never mentions the required venueId selection, which the schema carries but a caller must not overlook.

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 keywordIds, state and venueId, including the venue-disambiguation instruction and the ARCHIVED caveat. The description echoes the state values from the schema and adds the PAUSED-before-ARCHIVED constraint, but says nothing about venueId, so it does not materially exceed the schema.

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 first sentence gives a precise verb set (enable, pause, archive) against a specific resource (Sponsored Products keywords) and notes batch scope. It does not name or contrast with the closest sibling, update_sp_keyword_bid, so an agent must infer the boundary from resource/field alone, and execute_sql is referenced only as a lookup step rather than as an alternative.

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?

The definition routes the agent explicitly: call execute_sql against keyword_performance first to obtain IDs, and split ENABLED and PAUSED keywords into separate calls because mixed batches are rejected. It also states the ordering precondition that keywords must be PAUSED before archiving, covering the main usage pitfalls.

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