Skip to main content
Glama
DynamoDB MCP Server

DynamoDB MCP Server

update_item

Edit an existing DynamoDB table item's attributes or insert a new item if the key is absent, using update expressions and optional conditions.

Instructions

Edits an existing item's attributes, or adds a new item to the table if it does not already exist.

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": {
      "table_name": "<table_name>",
      "key": "<key>"
    },
    "name": "update_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesThe primary key of an item. Must use DynamoDB attribute value format (see IMPORTANT note about DynamoDB Attribute Value Format).
table_nameYesTable Name or Amazon Resource Name (ARN)
region_nameNoThe aws region to run the tool
update_expressionNoDefines the attributes to be updated, the action to be performed on them, and new value(s) for them. The following actions are available: * SET - Adds one or more attributes and values to an item. If any of these attributes already exist, they are replaced by the new values. * REMOVE - Removes one or more attributes from an item. * ADD - Only supports Number and Set data types. Adds a value to a number attribute or adds elements to a set. * DELETE - Only supports Set data type. Removes elements from a set. For example: 'SET a=:value1, b=:value2 DELETE :value3, :value4, :value5'
condition_expressionNoA condition that must be satisfied in order for a conditional update to succeed.
expression_attribute_namesNoSubstitution tokens for attribute names in an expression.
expression_attribute_valuesNoValues that can be substituted in an expression. Must use DynamoDB attribute value format (see IMPORTANT note about DynamoDB Attribute Value Format).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.8

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose the important upsert side effect, but says nothing about permissions, reversibility, condition-expression failure behavior, or what the response contains for a seven-parameter mutation tool.

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?

A single efficient sentence with the edit action front-loaded and the upsert caveat attached. It is appropriately sized, though the sentence structure could separate the two behaviors more clearly.

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

Completeness2/5

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

For a mutation tool with seven parameters, nested objects, no annotations, and no output schema, the description is too thin. It omits the DynamoDB attribute-value format, condition-expression semantics, permissions, and return behavior that an agent would need to invoke it confidently.

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 description coverage is 100%, with detailed enum and expression documentation already present in the input schema. The description adds no parameter-level meaning beyond that, so the baseline of 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 states a specific verb and resource: it edits an existing item's attributes and performs an upsert when the item is absent. That upsert behavior is a meaningful clarification of what 'update' means here. It does not explicitly distinguish itself from siblings such as put_item, which is the main gap.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to choose update_item over put_item or update_table, nor any mention of prerequisites such as required permissions or the DynamoDB attribute-value format. Usage is only implied by the verb 'edits'.

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