Skip to main content
Glama
DynamoDB MCP Server

DynamoDB MCP Server

put_resource_policy

Attaches a resource-based policy document to a DynamoDB table or stream to control access permissions for tables and their indexes.

Instructions

Attaches a resource-based policy document (max 20 KB) to a DynamoDB table or stream. You can control permissions for both tables and their indexes through the policy.

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": {
      "resource_arn": "<resource_arn>",
      "policy": "<policy>"
    },
    "name": "put_resource_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
policyYesAn AWS resource-based policy document in JSON format or dictionary.
region_nameNoThe aws region to run the tool
resource_arnYesThe Amazon Resource Name (ARN) of the DynamoDB resource

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.8

TDQS

A3.5/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 behavioral burden. It usefully discloses the 20 KB size cap and that the policy can cover tables, streams, and indexes, but omits key mutation behavior: whether an existing policy is replaced, what permissions are required, and whether the call is reversible.

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 sentences, front-loaded with the action and size limit, with zero filler. The second sentence about indexes adds scope rather than noise, though it is slightly redundant with 'table or stream'.

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?

The description is adequate for a three-parameter mutation with no output schema and full schema coverage: purpose, size bound, and target resources are all stated. The remaining gap is behavioral (overwrite semantics, required permissions), which is a real but modest shortfall.

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 coverage is 100%, so all three params are already documented, and the 20 KB limit restates a constraint the schema doesn't carry but which is marginal. The description does not clarify ARN formats for streams vs tables vs indexes beyond the schema's generic wording. Baseline 3 is appropriate.

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 opens with a specific verb+resource: 'Attaches a resource-based policy document ... to a DynamoDB table or stream.' It is operationally distinct from the get_resource_policy sibling (attach vs retrieve), though that sibling is never named.

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?

Usage is only implied by the verb 'attaches' — an agent can infer this is the write counterpart to get_resource_policy. There is no explicit when-to-use/when-not guidance, no mention of prerequisites (IAM permissions), and no statement about what happens if a policy already exists.

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