Skip to content

feat(gateway-target): support resource priority on targets / tools #1358

@aidandaly24

Description

@aidandaly24

Description

The user is asking for Resource Priority on Gateway Targets / tools — a way to express ordering / precedence so that when multiple targets expose tools with overlapping names or when the gateway needs to choose among targets, the priority breaks ties.

Today neither CFN nor the CLI exposes this. ApiGatewayToolFilter only has FilterPath and Methods (CFN docs) — no Priority. The L3 schema (src/schema/schemas/mcp.ts) has nothing analogous.

Acceptance Criteria

  • Confirm with the AgentCore service team whether the data-plane API supports a priority field on a target / tool today (control-plane API may have it before CFN).
  • If the data plane supports it: extend AgentCoreGatewayTargetSchema (and/or ToolDefinitionSchema) with an optional priority?: number field; apply via a post-deploy imperative call (same pattern as feat: support resource based policies. #542 for resource-based policies).
  • If the data plane does not support it: file a service-team request for the capability and link this issue.
  • Add --priority flag to agentcore add gateway-target and surface it in the TUI.
  • When CFN ships a Priority property on GatewayTarget or its tool filters, switch to the CDK path and deprecate the imperative one.

Additional Context

  • CFN support: NO — no priority field on any GatewayTarget property, tool filter, tool override, or target-level config.
  • Data-plane: unknown — needs internal confirmation.
  • This may collapse to "service-team request" until the API exposes it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions