Skip to main content
Glama
Amazon Bedrock Knowledge Base MCP Server

Amazon Bedrock Knowledge Base MCP Server

by Zlash65

DescribeMetadataSchema

Retrieve the effective metadata schema for a knowledge base so you can build valid where/filter clauses before querying. Use static schema files or auto-infer fields from sampled retrieval metadata.

Instructions

Describe the metadata schema used for filtering.

    Returns a JSON string describing the effective schema for a knowledge base. Use this before
    applying metadata filters via `where`, `filter`, or implicit filtering.
    

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": {
      "knowledge_base_id": "<knowledge_base_id>"
    },
    "name": "DescribeMetadataSchema"
  }
}

Input Schema

NameRequiredDescriptionDefault
knowledge_base_idYesThe knowledge base ID to inspect. It must be a valid ID from the ListKnowledgeBases tool.
metadata_schema_modeNoMetadata schema resolution mode. 'static' uses only configured schema files; 'auto' falls back to sampling retrieval metadata to infer a schema.auto
metadata_schema_auto_sample_kNoNumber of retrieval results to sample for auto schema discovery.
metadata_schema_auto_sample_queryNoQuery used for auto schema discovery (only when metadata_schema_mode=auto).the

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.8/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. It discloses that the tool returns a JSON string describing the effective schema and should be used before filtering, but it does not explicitly state read-only behavior, permission requirements, side effects, or how auto-sampling mode behaves at runtime.

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?

The description is short and front-loaded: purpose, return type, and usage are presented in three efficient sentences with no unnecessary wording.

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 tool is simple, the input schema covers parameters fully, and an output schema exists, so the description need not explain return values. The definition covers purpose and usage well; the main remaining gap is that it does not explicitly affirm read-only behavior in the absence of annotations.

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 the input schema already documents all four parameters thoroughly. The description adds no additional parameter-level meaning beyond the general filtering use case, making the baseline score 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 states a specific verb and resource: it describes the metadata schema used for filtering and returns a JSON string describing the effective schema for a knowledge base. It is clear what the tool does, but it does not explicitly differentiate itself from sibling tools such as QueryKnowledgeBasesWithMetadata.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives clear usage context: use this before applying metadata filters via `where`, `filter`, or implicit filtering. It does not provide when-not-to-use guidance or name explicit alternatives, so it stays below the top score.

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