Skip to main content
Glama
DynamoDB MCP Server

DynamoDB MCP Server

get_resource_policy

Retrieves the resource-based policy document attached to a DynamoDB table or stream in JSON format, enabling you to inspect and audit access permissions.

Instructions

Returns the resource-based policy document attached to a DynamoDB table or stream in JSON format.

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

Input Schema

NameRequiredDescriptionDefault
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

B3.4/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden; it does disclose that the result is a JSON policy document for a table or stream, which implies a read. It does not say what happens when no policy is attached (error vs. empty), nor what permissions are needed.

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?

A single sentence, front-loaded with the verb and resource, with the scope and format attached as qualifiers. Nothing is redundant or filler.

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 two-parameter read tool with fully documented schema, the description covers purpose and result type adequately. The remaining gaps are edge-case behavior (missing policy, permission errors) and any hint that the policy is a JSON IAM document structure, which matter since no output schema exists.

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

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: resource_arn may point at either a table or a stream, which the schema's generic 'DynamoDB resource' wording does not make explicit. region_name is left to the schema.

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?

Specific verb plus resource ('Returns the resource-based policy document') scoped to a DynamoDB table or stream, with the output format named. It implicitly contrasts with the sibling put_resource_policy (read vs. write), but never names an alternative explicitly.

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?

No when-to-use guidance, no preconditions, and no mention of the obvious alternative put_resource_policy. The agent must infer from the verb 'Returns' that this is the read counterpart for inspecting policies.

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