Skip to content

AWS API MCP: aws autoscaling describe-scaling-activities does not reject --max-records parameter #2855

@sumny

Description

@sumny

Describe the bug

Agent calling aws autoscaling describe-scaling-activities via call_aws results in call_aws not rejecting --max-records although this parameter is not valid

Expected Behavior

call_aws with aws autoscaling describe-scaling-activities including --max-records should be rejected since it is not a valid parameter.

Current Behavior

Call is executed (--max-records is ignored) which can result in context blowing up if there are many autoscaling activies to fetch (they will be returned untrimmed).

Reproduction Steps

Have some autoscaling activies to fetch in account. Task an agent to make a call involving aws autoscaling describe-scaling-activities and explicitly force it to pass the --max-records parameter (and not the correct max-items; happened for me with Claude Sonnet 4.5). Observe that call_aws is executed and --max-records is not rejected which results in untrimmed autoscaling activies being returned.

Possible Solution

Should be caught by call_aws validation.

Additional Information/Context

No response

OS

macOS Tahoe 26.3.1

Server

aws-api-mcp-server

Server Version

No response

Region experiencing the issue

us-east-1

Other information

No response

Service quota

  • I have reviewed the service quotas for this construct

Metadata

Metadata

Assignees

No one assigned

    Labels

    aws-api-mcpIssue related to AWS API MCP serverbugSomething isn't workingneeds-triageThis needs to be handled, it is the first automatically assigned label to issues.

    Type

    No type

    Projects

    Status

    To triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions