Skip to main content
Glama
DynamoDB MCP Server

DynamoDB MCP Server

scan

Reads items and attributes from a DynamoDB table or secondary index, with limits, filters, projections, and pagination to control result size.

Instructions

Returns items and attributes by scanning a table or secondary index. Reads up to Limit items or 1 MB of data, with optional FilterExpression to reduce results.

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

Input Schema

NameRequiredDescriptionDefault
limitNoThe maximum number of items to evaluate
selectNoThe attributes to be returned. Valid values: ALL_ATTRIBUTES, ALL_PROJECTED_ATTRIBUTES, SPECIFIC_ATTRIBUTES, COUNT
index_nameNoThe name of a GSI
table_nameYesTable Name or Amazon Resource Name (ARN)
region_nameNoThe aws region to run the tool
filter_expressionNoFilter conditions expression that DynamoDB applies to filter out data
exclusive_start_keyNoUse the LastEvaluatedKey from the previous call. Must use DynamoDB attribute value format (see IMPORTANT note about DynamoDB Attribute Value Format).
projection_expressionNoAttributes to retrieve, can include scalars, sets, or elements of a JSON document.
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.2/5.0
Behavior3/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 disclose useful behavior: the Limit and 1 MB read cap, and that FilterExpression reduces results. However, it omits the critical DynamoDB caveat that filters apply after items are read and counted against the limit, and it says nothing about pagination via LastEvaluatedKey or read-capacity cost.

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 tightly written sentences with the result shape and the size cap front-loaded, and no filler. It is appropriately sized for a short description, though it leaves no room for the caveats noted elsewhere.

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 ten-parameter scan with nested attribute-value objects, no annotations and no output schema, the description gives the essential mental model: what is returned, the read cap, and filtering. The main gap is that it never explains that results may be truncated and must be continued with exclusive_start_key, leaving the agent to discover pagination from the schema alone.

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 ten parameters are already documented in the schema. The description restates Limit and FilterExpression but adds no syntax, format, or interaction detail (e.g., how expression_attribute_values pairs with the filter), so the baseline 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?

States a specific verb and resource: returns items and attributes by scanning a table or secondary index. An agent knows exactly what the operation is. It does not explicitly contrast with the scan's natural sibling `query`, so it falls just short of 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?

There is no guidance on when to choose scan over query, or when to use a secondary index. The only contextual hint is that Limit/1 MB caps exist, which implies cost, but no when/when-not conditions or alternatives are stated.

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