Architecture Design and Implementation Built for the Cloud

Several agents on Amazon Bedrock AgentCore Runtime need the same internal inventory API as a tool. The API is described by an OpenAPI specification and accepts only a static API key; it applies no per-user permissions. The key must stay out of agent code, prompts and model context, and the agents should discover the API's operations as MCP tools. Which design BEST meets these requirements?

Show the answer

Correct answerA. Add the API as an OpenAPI target on an AgentCore Gateway, with outbound authorization from an AgentCore Identity API key credential provider.

AWhy this is right: The gateway turns the specification into MCP tools and adds the key, held by AgentCore Identity, to outbound calls without exposing it to agents or the model.

BWhy not this: SigV4 signing with the gateway service role does not supply the API key that this API requires.

CWhy not this: Each agent then holds the key in its own configuration, and the agents get no MCP tool definitions from the specification.

DWhy not this: Putting the key into the prompt exposes it to the model and treats memory as a credential store.

AgentCore Gateway can turn an OpenAPI specification into MCP tools that agents discover. Its outbound authorization for OpenAPI targets can use an API key stored by an AgentCore Identity credential provider, so the gateway adds the key to each call and agents and the model never see it. IAM outbound authorization signs requests with SigV4, which an API-key-only service does not accept.