Skip to main content
Glama
AkM-2018
by AkM-2018

GenerateBedrockAgentSchema

Convert Lambda files with BedrockAgentResolver into Bedrock-compatible OpenAPI schemas for Agent Action Groups, handling import issues through progressive approaches.

Instructions

Generate OpenAPI schema for Bedrock Agent Action Groups from a file.

This tool converts a Lambda file with BedrockAgentResolver into a Bedrock-compatible OpenAPI schema. It uses a progressive approach to handle common issues: 1. Direct import of the Lambda file 2. Simplified version with problematic imports commented out 3. Fallback script generation if needed Args: ctx: MCP context lambda_code_path: Path to Python file containing BedrockAgentResolver app output_path: Where to save the generated schema Returns: Dictionary with schema generation results, including status, path to generated schema, and diagnostic information if errors occurred

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
lambda_code_pathYes
output_pathYes

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AkM-2018/tmp_cdk_mcp_server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server