Skip to main content
Glama
claude-bedrock-mcp-server

claude-bedrock-mcp-server

by Code-Ninety

bedrock_retrieve_knowledge

Retrieve AWS Bedrock Knowledge Base chunks with bounded pagination and PII redaction to ground RAG responses.

Instructions

Retrieve AWS Bedrock Knowledge Base chunks with bounded pagination and PII redaction.

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": {
      "query": "<query>"
    },
    "name": "bedrock_retrieve_knowledge"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes
top_kNo
knowledge_base_idNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3/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, but it does contribute real behavioral facts: results are chunk-granular, pagination is bounded, and returned text is PII-redacted (important, since it means the agent may see masked content). It omits permissions/credential requirements, what 'bounded' means quantitatively, and whether retrieval failures or empty results are signaled.

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 front-loaded sentence with no filler; the resource and its two distinguishing traits come first. Nothing is redundant or buried.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be described, but the definition is still incomplete for a retrieval tool with no annotations and 0% schema coverage. The agent cannot tell from the description which knowledge base is used when knowledge_base_id is null, what top_k controls, or how to exceed the bounded page size.

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 0%, so the description must compensate entirely and it does not: query, top_k, and knowledge_base_id are never mentioned or explained. 'Bounded pagination' hints that result volume is capped in a way related to top_k (default 5), but it never states that, nor what a null knowledge_base_id means. This is a significant gap for a 3-parameter tool.

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 (retrieve) and a specific resource (AWS Bedrock Knowledge Base chunks), plus two qualifiers that sharpen the operation. It does not name or differentiate itself from the nearest sibling, bedrock_grounded_rag, so an agent must infer that this is the lower-level chunk-level retrieval primitive.

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 when-to-use or when-not-to-use guidance and no alternative is named, even though bedrock_grounded_rag and bedrock_evaluate_rag_response occupy adjacent territory. The word 'chunks' implies raw passage retrieval, but nothing tells the agent under what circumstances to prefer this tool over a grounded-RAG tool.

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