Lambda-based tools for AgentCore Gateway.
lookup_ip- Look up geolocation for an IP addressget_random_user- Generate random user profilefetch_post- Fetch a post by ID
Tools are invoked via AgentCore Gateway. The tool name is passed in:
context.client_context.custom["bedrockAgentCoreToolName"]
Format: {target_name}___{tool_name}
- Define the tool function with the
@tool("tool_name")decorator - Add the tool definition to
mcp-defs.jsonin your agentcore project - The tool will be automatically routed by the handler