- Newest
- Most votes
- Most comments
Yes, there are specific limits related to Amazon Bedrock AgentCore Gateway targets that may be relevant to your situation.
The default quota is 100 targets per gateway, which is adjustable through the Service Quotas console. Since you mentioned having roughly 50 targets, you're within this limit, so the target count itself shouldn't be the direct cause of your integration failure.
However, there are additional related quotas that could be contributing factors:
- 1,000 tools per target (adjustable)
- Maximum inline schema size of 1 MB (adjustable)
- Maximum S3 payload schema size of 10 MB (adjustable)
- Tool name character limit of 256 characters (adjustable)
- Gateway invocation timeout of 15 minutes (adjustable)
Given that your integration works with a smaller subset but fails with the full set of 50 targets, the issue might be related to the cumulative size or complexity of all the schemas and tools across those targets, rather than just the target count. The total schema size across all targets, the number of tools defined within those targets, or the overall complexity of the configuration could be exceeding limits during the integration process with Amazon Q.
I'd recommend checking the total size of your schemas across all targets and the total number of tools being exposed. You may need to request quota increases through the Service Quotas console, or further optimize your API specification to reduce the overall footprint of your gateway configuration.
Sources
Quotas for Amazon Bedrock AgentCore - Amazon Bedrock AgentCore
To add to what the agent said -- you're likely hitting the 1MB inline schema limit unless you've already adjusted that service quota. If your mentioned 1.2MB is the raw OpenAPI spec, you're probably looking at a fair bit more than that as the MCP tool definition generated from them typically is larger (mostly because each tool gets its own full JSON schema with expanded parameters, no references).
You could consider using S3-based schemas instead of inline schemas for your target (as that allows for 10MB of payload), or splitting into 2-3 gateways, or requesting a service quota increase.
Relevant content
- asked 4 months ago
- asked 5 months ago

The full size of all the schemas are ~1.2mb