Skip to main content
Glama
DynamoDB MCP Server

DynamoDB MCP Server

put_item

Creates or replaces an item in a DynamoDB table, optionally using condition expressions to control whether new items are created or existing ones are updated.

Instructions

Creates a new item or replaces an existing item in a table. Use condition expressions to control whether to create new items or update existing ones.

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>",
      "item": "<item>"
    },
    "name": "put_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemYesA map of attribute name/value pairs, one for each attribute. 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
condition_expressionNoA condition that must be satisfied in order for a conditional put operation 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

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose the important full-overwrite semantics ('replaces an existing item'), which is genuinely valuable. It omits what happens to attributes not present in the item payload, error behavior when a condition fails, and any capacity/permission implications.

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?

Two tight sentences with the core action front-loaded and guidance second. No filler, though the second sentence is narrow in scope relative to the number of parameters.

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

Completeness3/5

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

For a 6-parameter mutation tool with no annotations and no output schema, the description covers the operation and one parameter but leaves the overwrite-vs-partial-update boundary with sibling tools unstated. Adequate as a minimum, but not complete enough to prevent misuse in a crowded write-tool family.

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%, so all six parameters are already documented, establishing a baseline of 3. The description adds a hint about the purpose of condition_expression but nothing about item format or the attribute-name/value substitution parameters beyond what the schema states.

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?

States a specific verb and resource: 'Creates a new item or replaces an existing item in a table.' The word 'replaces' implicitly distinguishes it from a partial-update sibling like update_item, but no sibling is named explicitly, so an agent must infer the boundary.

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

Usage Guidelines3/5

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

The second sentence gives conditional guidance ('use condition expressions to control whether to create new items or update existing ones'), which is useful for that one parameter. However, it never states when to prefer this over update_item or delete_item, nor any prerequisites such as write permissions or table existence.

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