Skip to main content
Glama
DynamoDB MCP Server

DynamoDB MCP Server

delete_item

Deletes a single DynamoDB item by primary key, optionally only when a condition is met, to safely remove specific records.

Instructions

Deletes a single item in a table by primary key. You can perform a conditional delete operation that deletes the item if it exists, or if it has an expected attribute value.

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": "delete_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
condition_expressionNoThe condition that must be satisfied in order for delete 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.3/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden. It clearly signals a destructive mutation and explains conditional-delete semantics ('deletes the item if it exists, or if it has an expected attribute value'), which is useful. However it omits the failure mode when the condition is not met, whether the call is idempotent when the key is absent, and any permission or error behavior.

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?

Two sentences, no padding, and the core action plus scope is front-loaded before the conditional nuance. Every clause carries information.

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 destructive six-parameter tool with no annotations and no output schema, the definition is minimally adequate: it conveys what is deleted and that conditional deletion exists. It leaves out failure behavior for an unmet condition, return content, and the interaction among the expression parameters, which an agent needs before invoking a destructive operation.

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 the schema already documents all six parameters including condition_expression and the expression attribute maps. The description adds only a light mapping ('by primary key', 'expected attribute value') and does not clarify how condition_expression interacts with expression_attribute_names/values. Baseline 3 applies when the schema does the heavy lifting.

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?

Names a specific verb and resource with scope: 'Deletes a single item in a table by primary key.' That is unambiguous and distinguishable from delete_table or update_item. It stops short of explicitly contrasting with siblings (e.g., batch deletes or delete_table), which keeps it from 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 Guidelines2/5

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

The second sentence describes a capability (conditional delete) rather than when to choose this tool over alternatives. There is no guidance on when to use a conditional delete versus an unconditional one, no prerequisites, and no exclusions relative to sibling mutators.

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