Skip to main content
Glama
DynamoDB MCP Server

DynamoDB MCP Server

get_item

Retrieve a DynamoDB item's attributes by table and primary key, with eventual consistency by default or strongly consistent reads when required.

Instructions

Returns attributes for an item with the given primary key. Uses eventually consistent reads by default, or set ConsistentRead=true for strongly consistent reads.

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": "get_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
projection_expressionNoAttributes to retrieve, can include scalars, sets, or elements of a JSON document.
expression_attribute_namesNoSubstitution tokens for attribute names in an expression.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.8

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden, and it does disclose a genuinely useful trait: eventually consistent reads by default with an opt-in strongly consistent mode. However, it says to 'set ConsistentRead=true', a parameter that does not exist in the input schema, which is materially misleading, and it says nothing about missing-item behavior or the shape of returned attributes.

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 operation front-loaded and zero filler. The second sentence is efficient in form, though its content is partly unusable since it points at a non-existent parameter.

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 5-parameter read tool with a nested key object, no annotations, and no output schema, the description covers the essential retrieval semantics and consistency model. It omits what happens on not-found, the returned attribute structure, and any interaction between key and projection_expression, and it introduces one incorrect parameter claim.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/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 key, table_name, region_name, projection_expression, and expression_attribute_names, making the baseline 3. The description adds no clarifying meaning for any of these and instead references a ConsistentRead parameter absent from the schema, which could cause an agent to submit an invalid argument.

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 — returns attributes for an item identified by its primary key. This clearly reads as a single-item retrieval, distinguishing it in spirit from bulk siblings like query and scan, though it never names those alternatives explicitly.

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?

Implied usage only: an agent can infer this fetches one item by primary key, and the consistency-mode sentence hints at a read trade-off. There is no explicit when-to-use versus query/scan/batch_get_item, and no note on behavior when the item is absent.

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