Yaw Labs AWS MCP
v2.7.5AWS MCP server — call any AWS API from AI assistants, with first-class SSO re-login
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
aws_whoami
Show the current AWS identity (account, role ARN, user ID) plus SSO token status and time remaining. Use this first to verify auth before running other AWS operations. Returns a structured fix-it message if SSO is expired.
| Parameter | Type | Description |
|---|---|---|
profile | string | AWS profile name. Defaults to $AWS_PROFILE or 'default'. |
region | string | AWS region. Defaults to $AWS_REGION or us-east-1. |
aws_login_start
Start an AWS SSO login via the device-code flow (no browser spawned from this process). Returns a verification URL and short code -- surface these to the user so they can open the URL in their own browser and paste the code. After they auth, call aws_login_complete with the returned sessionId to confirm completion. For a user with NO profile yet, pass ssoSession plus startUrl and ssoRegion instead of profile: this writes a managed [sso-session] block to the AWS config file (never touching one the user wrote) and logs in to IAM Identity Center directly; then use aws_sso_list_assignments and aws…
| Parameter | Type | Description |
|---|---|---|
profile | string | AWS profile configured for SSO. Defaults to $AWS_PROFILE or 'default'. Mutually exclusive with ssoSession. |
ssoRegion | string | Region of the Identity Center instance, e.g. us-east-1. Only with ssoSession. |
ssoSession | string | Log in to an IAM Identity Center sso-session directly, without any profile. Use with startUrl + ssoRegion to create the [sso-session] block on first use; omit them to log in to an existing block. |
startUrl | string | Identity Center start URL (https://...). Only with ssoSession. |
aws_login_complete
Block until the SSO login started by aws_login_start finishes (user completed auth in browser, or subprocess exited with error). Returns the new identity on success, or a structured error. For an ssoSession login there is no profile yet, so it returns the token status and points to aws_sso_list_assignments instead of an identity.
| Parameter | Type | Description |
|---|---|---|
sessionId * | string | The sessionId returned by aws_login_start. |
profile | string | Profile to verify identity against after login. Defaults to the profile the login was started for, else the session profile / $AWS_PROFILE / 'default'. |
region | string | Region for the post-login identity check. |
aws_refresh_if_expiring_soon
Proactive SSO token check. If the cached token has fewer than `thresholdMinutes` left (default 10), this kicks off aws_login_start and returns the verification URL + code in one round-trip. If plenty of time remains, returns `status: 'ok'` with the minutes left. Use at the start of a multi-step AWS workflow to avoid mid-session expiry. `status: 'ok'` is a point-in-time reading of the cache, not a lease: nothing re-checks afterwards, so a token that lapses mid-workflow still surfaces as an sso_expired error from the next aws_call / aws_whoami. Raise `thresholdMinutes` to cover the expected leng…
| Parameter | Type | Description |
|---|---|---|
profile | string | AWS profile configured for SSO. Defaults to $AWS_PROFILE or 'default'. |
thresholdMinutes | integer | Trigger refresh when the token has fewer than this many minutes left. Default 10. |
aws_session_set
Set the default AWS profile and/or region for the rest of this MCP session. Subsequent calls to aws_whoami, aws_login_*, and other AWS tools will use these values unless they override explicitly. Use when the user says 'switch to prod', 'use us-west-2', 'look at the staging account', etc. Both params are optional; pass whichever changed. Returns the resulting session state.
| Parameter | Type | Description |
|---|---|---|
profile | string | AWS profile name to use as default. Omit to leave unchanged. |
region | string | AWS region to use as default (e.g. 'us-west-2'). Omit to leave unchanged. |
aws_session_get
Show the current session's default AWS profile and region, and where each value came from ('session' = set by aws_session_set, 'env' = AWS_PROFILE/AWS_REGION env var, 'default' = built-in fallback). Useful for confirming state before running operations or debugging why a call hit the wrong account.
aws_session_clear
Remove session-set profile and/or region overrides so subsequent calls fall back to env vars / defaults. No args clears both. Pass `profile: true` or `region: true` to clear just one. Use when the user says 'go back to the default profile,' 'unset the region,' or 'reset session.'
| Parameter | Type | Description |
|---|---|---|
profile | boolean | If true, clear the session profile override. Default false. |
region | boolean | If true, clear the session region override. Default false. |
aws_call
Run an arbitrary AWS API operation via the aws CLI. Use kebab-case service and operation names as in `aws help` (service='s3api', operation='list-buckets'). Pass params as a JSON object using the AWS API's PascalCase keys (e.g. {Bucket: 'foo'}); they go through --cli-input-json. Session profile/region (from aws_session_set) are used by default; override per-call when needed. Hand-written CLI commands (aws s3 cp/ls/sync, aws logs tail) and operations that stream their response to an output file (s3api get-object, bedrock-runtime invoke-model, bedrock-agentcore invoke-agent-runtime, lambda invok…
| Parameter | Type | Description |
|---|---|---|
operation * | string | Operation name in kebab-case: 'list-buckets', 'describe-instances', 'get-caller-identity', 'put-object'. |
service * | string | AWS service name in kebab-case: 's3api', 'ec2', 'iam', 'lambda', 'dynamodb', 'logs', 'sts', 'cloudformation', etc. |
outputFormat | string | Output format. Default 'json' (parsed into structured data when possible). |
params | object | Operation parameters as a JSON object (AWS API schema, PascalCase keys). E.g. {Bucket: 'foo', Key: 'bar'}. |
profile | string | Override session profile for this call. |
query | string | JMESPath expression to extract a subset of the response (passed as --query). E.g. 'Buckets[].Name', 'Reservations[].Instances[].{Id:InstanceId,State:State.Name}'. Dramatically reduces output size; rea… |
region | string | Override session region for this call. |
timeoutMs | integer | Timeout in milliseconds. Default 60000 (60s). Raise for slow ops; lower to fail fast. |
aws_list_profiles
List AWS profiles configured in the AWS config file (AWS_CONFIG_FILE, else ~/.aws/config). Returns profile name, region, and SSO metadata (start URL, region, session name) where set, plus an `isSso` flag. Use when the user hasn't named a profile, when they ask to switch profiles, or when an SSO-expired error mentions a profile you haven't seen.
aws_sso_list_assignments
List the AWS accounts and roles an IAM Identity Center login can use, after aws_login_start + aws_login_complete with ssoSession. Read-only. Each role shows `profile`: the existing config profile that already points at it (generated or hand-written), or null. Per-account failures come back as `rolesError` while the other accounts still list. If the token is missing or expired the error says to run aws_login_start with ssoSession again. Follow with aws_sso_generate_profiles to write profiles.
| Parameter | Type | Description |
|---|---|---|
ssoSession * | string | sso-session name logged in via aws_login_start. |
accountIds | array | Only these 12-digit account IDs. Default: every assigned account. |
includeRoles | boolean | Default true. false returns accounts only (one AWS call). |
aws_sso_generate_profiles
Write [profile ...] sections into the AWS config file for IAM Identity Center account/role assignments (after aws_login_start with ssoSession). Default: every assignment, capped at 200 (the rest are returned as `dropped`); or pass `selection`. Names default to '{accountName}-{roleName}', with the account ID inserted on a clash ('prod-111111111111-Admin'). Each section carries a `managed-by: aws-mcp` marker; a section without it is never modified -- a name clash with one is reported in `skipped`. `region` is written only when a profile is created. Use dryRun to preview. Selections are checked a…
| Parameter | Type | Description |
|---|---|---|
ssoSession * | string | sso-session name logged in via aws_login_start. |
dryRun | boolean | Report what would be written without touching the file. |
nameTemplate | string | Profile name template. Placeholders: {accountName} {accountId} {roleName} {ssoSession}. Default '{accountName}-{roleName}'. |
region | string | Default region written into each new profile. Default: the sso-session's sso_region. |
selection | array | Which account/role pairs to write. Default: every assignment (capped at 200; pass a selection beyond that). |
aws_paginate
Fetch one page of a paginated AWS list/describe operation. Takes aws_call's inputs (output is always JSON) plus `maxItems` (page size) and `startingToken` (resume cursor). Only for operations the CLI paginates: a non-paginated one (sts get-caller-identity) rejects --max-items, so call it with aws_call. When `query` is supplied it is wrapped server-side as {NextToken, items: <query>} so pagination survives a projection that would otherwise drop NextToken; the handler unwraps `items` before returning. Returns the parsed response, a `nextToken` (null when the list is exhausted), and `hasMore`. Ca…
| Parameter | Type | Description |
|---|---|---|
operation * | string | Paginated operation: 'list-objects-v2', 'describe-instances', 'list-roles', etc. |
service * | string | AWS service in kebab-case: 's3api', 'ec2', 'iam', 'logs', etc. |
maxItems | integer | Items per page (1-10000). Default 100. Lower this if hitting the 5 MB output cap. |
params | object | Operation parameters (PascalCase keys) passed via --cli-input-json. |
profile | string | Override session profile for this call. |
query | string | JMESPath expression to extract fields from each page (--query). The query is wrapped server-side as {NextToken, items: <query>} so pagination still works even when the projection drops NextToken; the… |
region | string | Override session region for this call. |
startingToken | string | Resume cursor from the previous call's `nextToken`. Omit for the first page. |
timeoutMs | integer | Timeout in milliseconds. Default 60000. |
aws_assume_role
Call STS AssumeRole and stash the returned temporary credentials as a named profile in the shared credentials file ($AWS_SHARED_CREDENTIALS_FILE when set, otherwise ~/.aws/credentials; the resolved path is returned as credentialsPath). Subsequent calls to aws_call / aws_whoami / aws_paginate can use profile='mcp-<sessionName>' (or your overridden targetProfile name). The raw secret key / session token are NOT returned to the caller — only the profile name, expiration, and assumed identity. Use for cross-account access: a source profile (your SSO identity) assumes a role in another account. D…
| Parameter | Type | Description |
|---|---|---|
roleArn * | string | Target role ARN, e.g. 'arn:aws:iam::123456789012:role/CrossAccountAdmin'. |
sessionName * | string | Role session name (shows up in CloudTrail). Alphanumeric + +=,.@- only. |
durationSeconds | integer | Session duration in seconds (900-43200). Default 3600. |
externalId | string | External ID (only required if the role's trust policy demands it). |
region | string | Region for the STS call. Defaults to session region / $AWS_REGION. |
sourceProfile | string | Profile to use as the assuming identity. Defaults to session profile / $AWS_PROFILE / 'default'. |
targetProfile | string | Profile name to write the temp creds under. Default 'mcp-<sessionName>'. Auto-prefixed with 'mcp-' if missing. |
timeoutMs | integer | Timeout in milliseconds for the underlying STS AssumeRole CLI call. Default 120000 (120s) -- gives cold-start SAML / credential_process setups headroom over runAwsCall's 60s default. Raise further for… |
aws_logs_tail
Fetch the newest CloudWatch Logs events for one log group over the last `since` (default 10m), via FilterLogEvents ('aws logs filter-log-events'). Returns events oldest first as {timestamp (ISO 8601 UTC), logStreamName, message (verbatim)}; any of the three is null on an event that arrived without it, which is kept rather than dropped. At most `maxEvents` come back (default 500, max 10000); when the window held more, the OLDEST are dropped and `truncated` is true. On AWS CLI 2.35.8+ the read goes newest-first and stops once it has enough, so a busy group costs a page or two -- and a truncated…
| Parameter | Type | Description |
|---|---|---|
logGroupName * | string | Log group name, e.g. '/aws/lambda/my-fn' or '/aws/ecs/my-service' (no leading 'logs/'). A full log-group ARN ('arn:aws:logs:us-east-1:123456789012:log-group:/aws/lambda/my-fn', with or without a trail… |
filterPattern | string | CloudWatch Logs filter pattern. E.g. 'ERROR', '"stack trace"', '[timestamp, request_id, level = ERROR, ...]'. |
logStreamNamePrefix | string | Restrict to streams with this prefix. Mutually exclusive with logStreamNames. |
logStreamNames | array | Restrict to specific stream names. Overrides the default (all streams in the group). |
maxEvents | integer | Maximum events to return (1-10000). Default 500. Events come back oldest-first; when the window held more than this, the OLDEST are dropped, the newest are kept and truncated=true. On AWS CLI 2.35.8+… |
profile | string | Override session profile for this call. |
region | string | Override session region for this call. |
since | string | Window to tail: '<number><s|m|h|d|w>'. Default '10m'. Example: '30m', '1h', '3d'. Must be greater than zero and at most 30 days. |
timeoutMs | integer | Timeout in milliseconds per aws CLI call (at most two per tool call). Default 60000 (60s). Raise for large windows. |
aws_logs_query
Run a CloudWatch Logs Insights query and wait for it to finish -- StartQuery, poll GetQueryResults until the query reaches a terminal status, return the rows -- in ONE call, replacing the three-step start/poll/interpret-status dance you would otherwise write with aws_call. `logGroupNames` takes 1-50 bare group names ('/aws/lambda/my-fn'); a log-group ARN is accepted and its NAME extracted, which DISCARDS the ARN's account, so a cross-account ARN queries the same-named group in your own account -- real cross-account queries need logGroupIdentifiers, which this tool does not send. An ARN whose r…
| Parameter | Type | Description |
|---|---|---|
logGroupNames * | array | 1-50 log group names, e.g. ['/aws/lambda/my-fn'] -- StartQuery caps a query at 50. A full log-group ARN is accepted and its name extracted; that discards the ARN's account, so a cross-account ARN quer… |
queryString * | string | CloudWatch Logs Insights query, max 10000 chars. E.g. 'fields @timestamp, @message | filter @message like /ERROR/ | sort @timestamp desc | limit 20', or 'stats count(*) by bin(5m)'. |
endTime | string | Same forms as startTime: relative shorthand, 'now', or ISO 8601 with an explicit offset. Default 'now'. |
limit | integer | Maximum rows the query RETURNS (it still scans, and bills for, the whole window). Default 1000. StartQuery's own ceiling is 100000, but a single GetQueryResults call returns at most 10000 rows and the… |
maxWaitMs | integer | Total time to wait for the query, in ms (range 1000-900000). Default 120000. On timeout the query is NOT stopped -- the error returns the queryId and results stay retrievable for 7 days. |
pollIntervalMs | integer | Delay between GetQueryResults polls, in ms (range 500-30000). Default 2000. The floor keeps one call inside the 10/sec account quota for this API. |
profile | string | Override session profile for this call. |
queryLanguage | string | Query language. Default CWLI (Logs Insights QL -- what the queryString examples use). 'PPL' is OpenSearch Piped Processing Language. OpenSearch SQL is deliberately not offered: it expects the log grou… |
region | string | Override session region for this call. |
startTime | string | Relative shorthand ('15m', '1h', '1d', '1w'), 'now', or an ISO 8601 timestamp with an explicit offset ('2026-05-16T10:00:00Z', '2026-05-16T10:00:00-04:00'). A date-only '2026-05-16' is read as UTC mid… |
timeoutMs | integer | Timeout for each individual aws CLI call, in ms. Default 60000. Bounds one start-query or one get-query-results, not the whole wait -- that is maxWaitMs. |
aws_metrics_query
Query CloudWatch metrics via GetMetricData (the modern multi-metric / expression-capable API, not the legacy get-metric-statistics). Pass `queries` as a flat array of {id, namespace, metricName, dimensions?, statistic?, period?, expression?, label?}; the tool shapes them into MetricDataQueries for you. `startTime`/`endTime` accept relative shorthand ('15m', '1h', '1d', '1w'), 'now', or ISO 8601 WITH an explicit offset ('2026-05-16T10:00:00Z' / '...-04:00' -- an offset-less date-time is rejected rather than silently read in the host's local zone; a date-only '2026-05-16' is read as UTC midnight…
| Parameter | Type | Description |
|---|---|---|
queries * | array | 1-100 queries. Each is either a metric-stat (namespace + metricName) or an expression. |
endTime | string | Same forms as startTime: relative shorthand, 'now', or ISO 8601 with an explicit offset. Default 'now'. |
maxDataPoints | integer | Page size: the most datapoints one response returns before CloudWatch paginates (default and ceiling ~100,800). It does NOT coarsen the period -- the remainder comes back behind `nextToken` / `hasMore… |
nextToken | string | Resume cursor from a previous call's `nextToken`. Omit for the first page. Forwarded as CloudWatch's NextToken; only meaningful when a prior call returned `hasMore: true`. |
profile | string | Override session profile for this call. |
region | string | Override session region for this call. |
scanBy | string | Sort order for returned datapoints. Default 'TimestampDescending' (matches CloudWatch's default). |
startTime | string | Relative shorthand ('15m', '1h', '1d', '1w'), 'now', or an ISO 8601 timestamp with an explicit offset ('2026-05-16T10:00:00Z', '2026-05-16T10:00:00-04:00'). A date-only '2026-05-16' is read as UTC mid… |
timeoutMs | integer | Timeout in milliseconds. Default 60000 (60s). |
aws_resource_get
Read a single AWS resource via Cloud Control API. Covers hundreds of resource types with a CloudFormation schema. `typeName` is '<Namespace>::<Service>::<Resource>' (e.g. 'AWS::Lambda::Function'); `identifier` is the primary key for that type (function name, bucket name, IAM role name, ARN, or composite id). Returns parsed Properties. For resources not covered by CCAPI or for data-plane operations, use aws_call.
| Parameter | Type | Description |
|---|---|---|
identifier * | string | Primary identifier for the resource (function name, bucket name, ARN, or composite id). |
typeName * | string | CloudFormation type name, e.g. 'AWS::Lambda::Function', 'AWS::S3::Bucket', 'AWS::IAM::Role'. |
profile | string | Override session profile for this call. |
region | string | Override session region for this call. |
timeoutMs | integer | Timeout in milliseconds. Default 60000. |
aws_resource_list
List resources of a given type via Cloud Control API, paginated. Returns an array of {identifier, properties}, a `nextToken` (null when exhausted), and `hasMore`. Some types need parent identifiers (e.g. nested resources under a cluster); pass those as `resourceModel`.
| Parameter | Type | Description |
|---|---|---|
typeName * | string | CloudFormation type name, e.g. 'AWS::Lambda::Function'. |
maxResults | integer | Page size (1-100). Default 100. |
nextToken | string | Resume cursor from the previous call's `nextToken`. Omit (or pass an empty string) for the first page. |
profile | string | Override session profile for this call. |
region | string | Override session region for this call. |
resourceModel | object | Parent identifier properties for nested types, e.g. {ClusterArn: '...'}. |
timeoutMs | integer | Timeout in milliseconds. Default 60000. |
aws_resource_create
Create an AWS resource via Cloud Control API. Async by default: returns a ProgressEvent with OperationStatus=IN_PROGRESS and a `requestToken` (top-level) -- poll aws_resource_status with that token, or pass `awaitCompletion: true` to have the server poll for you and return the terminal event. `desiredState` is the resource properties JSON matching the CloudFormation schema for `typeName`. `ok: true` means the call succeeded (the request was accepted, or a terminal state was observed); whether the change applied is `operationStatus` -- FAILED or CANCEL_COMPLETE means it did NOT apply (see `erro…
| Parameter | Type | Description |
|---|---|---|
desiredState * | object | Resource properties matching the CFN schema. E.g. for AWS::SSM::Parameter: {Name: '/my/param', Type: 'String', Value: 'hello'}. |
typeName * | string | CloudFormation type name, e.g. 'AWS::SSM::Parameter'. |
awaitCompletion | boolean | If true, poll get-resource-request-status until the operation reaches SUCCESS / FAILED / CANCEL_COMPLETE and return the final ProgressEvent. Default false (returns immediately with IN_PROGRESS, caller… |
clientToken | string | Idempotency token (max 128 chars). Prevents duplicate creation on retry. |
maxWaitMs | integer | Maximum total wait in ms when awaitCompletion is true (range 1000-1800000). Default 300000. On timeout, returns the last seen status with a hint to keep polling. |
pollIntervalMs | integer | Poll interval in ms when awaitCompletion is true (range 500-30000). Default 2000. ProgressEvent.RetryAfter overrides when CCAPI returns one. |
profile | string | Override session profile for this call. |
region | string | Override session region for this call. |
timeoutMs | integer | Timeout in milliseconds. Default 60000. |
aws_resource_update
Update an AWS resource via Cloud Control API using RFC 6902 JSON Patch. Async by default: returns a ProgressEvent with OperationStatus=IN_PROGRESS and a top-level `requestToken`. Pass `awaitCompletion: true` to have the server poll until terminal. Typical patch: [{op: 'replace', path: '/MemorySize', value: 512}]. `ok: true` means the call succeeded (the request was accepted, or a terminal state was observed); whether the change applied is `operationStatus` -- FAILED or CANCEL_COMPLETE means it did NOT apply (see `errorCode` / `statusMessage`).
| Parameter | Type | Description |
|---|---|---|
identifier * | string | Primary identifier for the resource. |
patchDocument * | array | RFC 6902 JSON Patch document (array of operations). At least one entry. 'add', 'replace' and 'test' must carry a `value`; 'move' and 'copy' must carry a `from`. |
typeName * | string | CloudFormation type name. |
awaitCompletion | boolean | If true, poll get-resource-request-status until the operation reaches SUCCESS / FAILED / CANCEL_COMPLETE and return the final ProgressEvent. Default false (returns immediately with IN_PROGRESS, caller… |
clientToken | string | Idempotency token (max 128 chars). |
maxWaitMs | integer | Maximum total wait in ms when awaitCompletion is true (range 1000-1800000). Default 300000. On timeout, returns the last seen status with a hint to keep polling. |
pollIntervalMs | integer | Poll interval in ms when awaitCompletion is true (range 500-30000). Default 2000. ProgressEvent.RetryAfter overrides when CCAPI returns one. |
profile | string | Override session profile for this call. |
region | string | Override session region for this call. |
timeoutMs | integer | Timeout in milliseconds. Default 60000. |
aws_resource_delete
Delete an AWS resource via Cloud Control API. Async by default: returns a ProgressEvent with OperationStatus=IN_PROGRESS and a top-level `requestToken`. Pass `awaitCompletion: true` to have the server poll until terminal. Destructive -- double-check `identifier` before calling. `ok: true` means the call succeeded (the request was accepted, or a terminal state was observed); whether the change applied is `operationStatus` -- FAILED or CANCEL_COMPLETE means it did NOT apply (see `errorCode` / `statusMessage`).
| Parameter | Type | Description |
|---|---|---|
identifier * | string | Primary identifier for the resource. |
typeName * | string | CloudFormation type name. |
awaitCompletion | boolean | If true, poll get-resource-request-status until the operation reaches SUCCESS / FAILED / CANCEL_COMPLETE and return the final ProgressEvent. Default false (returns immediately with IN_PROGRESS, caller… |
clientToken | string | Idempotency token (max 128 chars). |
maxWaitMs | integer | Maximum total wait in ms when awaitCompletion is true (range 1000-1800000). Default 300000. On timeout, returns the last seen status with a hint to keep polling. |
pollIntervalMs | integer | Poll interval in ms when awaitCompletion is true (range 500-30000). Default 2000. ProgressEvent.RetryAfter overrides when CCAPI returns one. |
profile | string | Override session profile for this call. |
region | string | Override session region for this call. |
timeoutMs | integer | Timeout in milliseconds. Default 60000. |
aws_resource_status
Poll the status of an async Cloud Control API request (create/update/delete). Pass the `requestToken` returned by those tools. Returns the current ProgressEvent with OperationStatus: PENDING | IN_PROGRESS | SUCCESS | FAILED | CANCEL_IN_PROGRESS | CANCEL_COMPLETE. `ok: true` means the status was read; FAILED or CANCEL_COMPLETE means the mutation did NOT apply.
| Parameter | Type | Description |
|---|---|---|
requestToken * | string | RequestToken from a previous create/update/delete call. |
profile | string | Override session profile for this call. |
region | string | Override session region for this call. |
timeoutMs | integer | Timeout in milliseconds. Default 60000. |
aws_resource_diff
Dry-run a CCAPI update: fetch the current resource state, simulate applying a JSON Patch in memory, and return before/after plus a flat list of changed paths. No mutation is sent to AWS. Use this before aws_resource_update to verify the patch does what you expect. Supports the add/remove/replace subset of RFC 6902 (covers the vast majority of CCAPI updates); 'move'/'copy'/'test' are rejected at schema validation -- use aws_resource_update directly if you need those (CCAPI accepts them, this preview tool just doesn't simulate them locally).
| Parameter | Type | Description |
|---|---|---|
identifier * | string | Primary identifier for the resource. |
patchDocument * | array | RFC 6902 JSON Patch (add/remove/replace subset); 'add' and 'replace' must carry a `value`. For move/copy/test, use aws_resource_update directly. |
typeName * | string | CloudFormation type name, e.g. 'AWS::Lambda::Function'. |
profile | string | Override session profile for this call. |
region | string | Override session region for this call. |
timeoutMs | integer | Timeout in milliseconds. Default 60000. |
aws_multi_region
Run the same AWS API operation across multiple regions in parallel. Same shape as aws_call (service, operation, params?, query?, outputFormat?, timeoutMs?) but takes `regions: string[]` instead of `region`, up to 64 per call with at most 32 in flight. Returns an array of `{region, ok, data?, command?, commandArgv?, error?, errorKind?}` -- partial failure is expected (services aren't everywhere, perms may be region-scoped). Duplicate regions in the input are collapsed (first occurrence wins), so `results.length` may be less than `regions.length`; use the returned `regionCount` for the actual co…
| Parameter | Type | Description |
|---|---|---|
operation * | string | Operation in kebab-case: 'describe-instances', 'list-buckets', etc. |
regions * | array | Region IDs (e.g. ['us-east-1','us-west-2','eu-west-1']). 1-64. Validated for argv-safety; a bad region name yields a clear per-region error and skips its CLI spawn (per-region isolation comes from eac… |
service * | string | AWS service in kebab-case: 's3api', 'ec2', 'iam', etc. |
concurrency | integer | Max regions in flight at once (1-32). Default 8. |
outputFormat | string | Output format. Default 'json'. |
params | object | Operation parameters (PascalCase keys) -- same shape as aws_call. |
profile | string | Override session profile for the batch. |
query | string | JMESPath expression for --query (server-side trimming per region). |
timeoutMs | integer | Timeout in ms applied PER region. Default 60000. |
aws_multi_account
Run the same AWS API operation across multiple ACCOUNTS in parallel by assuming the same role name in each. Same shape as aws_call (service, operation, params?, query?, outputFormat?, region?, timeoutMs?) plus `accounts: string[]` of 12-digit account IDs and `roleName`. This is fan-out in one call, not new access: it is exactly what aws_assume_role in a loop would reach, minus the credentials-file churn -- each account's session is held in memory for the one subprocess that uses it and is NEVER written to ~/.aws/credentials, so a sweep that dies halfway leaves nothing on disk. If your org alre…
| Parameter | Type | Description |
|---|---|---|
accounts * | array | Target AWS account IDs, 12 digits each (e.g. ['111111111111','222222222222']). 1-32. A malformed ID fails only its own entry and does not spawn a CLI call. |
operation * | string | Operation in kebab-case: 'describe-instances', 'get-caller-identity', 'list-buckets', etc. |
roleName * | string | Name of the role to assume in EVERY target account (e.g. 'OrganizationAccountAccessRole', 'ReadOnlyAuditor'). Combined with each account ID into arn:<partition>:iam::<account>:role/<roleName>, where t… |
service * | string | AWS service in kebab-case: 's3api', 'ec2', 'iam', etc. |
concurrency | integer | Max accounts in flight at once (1-32). Default 8. |
outputFormat | string | Output format. Default 'json'. |
params | object | Operation parameters (PascalCase keys) -- same shape as aws_call. |
profile | string | Profile to assume FROM -- your own identity, used for every sts:AssumeRole in the batch. Defaults to the session profile / $AWS_PROFILE. The target accounts never use a profile at all. |
query | string | JMESPath expression for --query (server-side trimming per account). |
region | string | Region for BOTH the sts:AssumeRole call and the operation. Defaults to the session region. |
sessionName | string | Role session name recorded in each target account's CloudTrail. Default 'aws-mcp-multi-account'. Alphanumeric + +=,.@- only, 2-64 chars. |
timeoutMs | integer | Timeout in ms applied PER aws CLI spawn. Each account makes two: the sts:AssumeRole and the operation. Unset, the assume gets 120000 ms (headroom for cold-start SAML / credential_process) and the oper… |
aws_iam_simulate
Simulate IAM permissions for a principal: can principal X do actions Y on resources Z? Wraps `iam simulate-principal-policy`. Returns one entry per (action, resource) pair -- one per action, with resource '*', when `resources` is omitted -- with `decision` (allowed / explicitDeny / implicitDeny / unknown -- unknown is the malformed-response fallback when the decision is missing or unrecognised), `matchedStatementIds` (which IAM statements decided), `missingContextValues` (context keys the policy needed but you didn't provide -- common for tag-based policies), `permissionsBoundaryDecision`, and…
| Parameter | Type | Description |
|---|---|---|
actions * | array | IAM action names to test, e.g. ['lambda:CreateFunction', 's3:GetObject']. 1-50 entries. Wildcards (e.g. 's3:*', 's3:Get?bject') are accepted. |
principalArn * | string | ARN of the principal whose policies you want to evaluate, e.g. 'arn:aws:iam::123456789012:user/jeff' or 'arn:aws:iam::123456789012:role/my-role'. Must be the IAM user, group or role ARN -- not the STS… |
contextEntries | array | Context keys for policies that depend on request context -- 'aws:RequestTag/Project' = 'foo', etc. Provide when the policy you're testing references condition keys; the response's `missingContextValue… |
marker | string | Resume cursor from a previous call's `marker`. Omit it normally: on a first call the CLI already follows IAM's pagination and returns every page, so `hasMore` is false. Forwarded as IAM's Marker, whic… |
profile | string | Override session profile for this call. |
region | string | Override session region for this call (IAM is global; affects API endpoint). |
resources | array | Resource ARNs to test against, e.g. ['arn:aws:s3:::my-bucket/*']. Up to 50 entries of at most 2048 chars each -- the simulator evaluates every action against every resource and this tool returns one e… |
timeoutMs | integer | Timeout in milliseconds. Default 60000. |
aws_lambda_invoke
Invoke a Lambda function synchronously (RequestResponse) and return its response payload plus the DECODED tail of its execution log in one call. Use this instead of aws_call for Lambda invokes: `aws lambda invoke` needs a positional output file and rejects --cli-input-json, so aws_call structurally cannot reach it. The returned `logTail` is the last ~4 KB of the function's own log output, already base64-decoded, which removes the usual invoke -> find the log group -> tail it -> hope the window caught it loop. Functions on Lambda Managed Instances do not support the log tail; read their logs wi…
| Parameter | Type | Description |
|---|---|---|
functionName * | string | Function name, name:alias, partial ARN ('123456789012:function:my-fn'), or full ARN. E.g. 'my-function', 'my-function:PROD'. |
invocationType | string | Only 'RequestResponse' (synchronous) is supported. Async 'Event' and permission-check 'DryRun' are deliberately not implemented — 'Event' returns no payload or logs and needs its own result shape. F… |
payload | The event to pass to the function. Any JSON value (usually an object); it is JSON-encoded and sent as the request body. Omit for a function that takes no input — this sends no payload at all rather… | |
profile | string | Override session profile for this call. |
qualifier | string | Version number or alias to invoke, e.g. '3' or 'PROD'. Omit for the service default: $LATEST for a standard function, $LATEST.PUBLISHED for one on Lambda Managed Instances. Durable functions need an e… |
region | string | Override session region for this call. |
timeoutMs | integer | How long to wait for the function to respond, in milliseconds. Default 60000. Set it to at least the function's own configured timeout; a synchronous invoke runs at most 15 minutes, so values above 90… |
aws_docs_search
Search the live AWS documentation (the same backend that powers the docs.aws.amazon.com search box). Use this to discover the right doc page for a service, API, or concept the model may not know about -- new services, recently changed APIs, exact parameter names. Returns ranked results as {title, url, summary, excerpt}. IMPORTANT: that backend always returns a full page of fuzzy matches and has no way to answer 'no good match' -- a nonsense query still comes back with ten confident-looking hits. So each result also carries `lexicalMatch` ({overlap 0-1, matchedTerms, unmatchedTerms}), computed…
| Parameter | Type | Description |
|---|---|---|
query * | string | Search phrase, e.g. 'S3 bucket naming rules', 'Lambda environment variables', 'DynamoDB GSI'. |
limit | integer | Max results to return (1-50). Default 10. |
aws_docs_read
Fetch an AWS documentation page and return it as markdown. `url` must be an https://docs.aws.amazon.com/...html page (typically one returned by aws_docs_search). Long pages are paginated: pass `startIndex` (default 0) and `maxLength` (default 5000 chars); the response includes `hasMore` and `nextStartIndex` -- call again with nextStartIndex to continue. Strips nav/cookie-banner/feedback chrome before converting.
| Parameter | Type | Description |
|---|---|---|
url * | string | AWS docs page URL: https://docs.aws.amazon.com/<...>.html. Usually from an aws_docs_search result. |
maxLength | integer | Max characters of markdown to return. Default 5000; max 1000000. |
startIndex | integer | Character offset to start from (for paginated reads). Default 0. |
aws_script
Run a short JavaScript snippet that orchestrates other aws-mcp tools (aws.call, aws.paginate, aws.paginateAll (stops at maxPages, default 50 -- check its hasMore), aws.resource.*, aws.logsTail, aws.metricsQuery, aws.iamSimulate, aws.multiRegion, aws.assumeRole, aws.docs.{search,read}) and returns a combined result. Best for batched read+filter+aggregate workflows that would otherwise need N tool round-trips: 'list all Lambdas, fetch each one's config, return those with memory > 1024'. Use `return <value>` at the end to surface a result; console.log lines are captured and returned alongside. He…
| Parameter | Type | Description |
|---|---|---|
code * | string | JavaScript snippet evaluated inside `(async () => { ... })()`. Use `return <value>` to surface a result. Bound globals: aws.call, aws.paginate, aws.paginateAll, aws.resource.{get,list,create,update,de… |
timeoutMs | integer | Wall-clock timeout in milliseconds. Default 60000; max 300000. Best-effort: it fires on synchronous spin BEFORE the first await, and on async wall-clock once the script has yielded. It does NOT fire o… |