AWS Bedrock AgentCore

AWS Bedrock AgentCore

Documentation on AgentCore platform services.

10K+

122 Tools

Packaged by
Add to Docker Desktop

Version 4.43 or later needs to be installed to add the server automatically

Use cases

About

AWS Bedrock AgentCore MCP Server

Documentation on AgentCore platform services.

What is an MCP Server?

MCP Info

Image Building Info

AttributeDetails
Dockerfilehttps://github.com/awslabs/mcp/blob/636aca8e109b5559006044f035bb89c16e9e5410/src/amazon-bedrock-agentcore-mcp-server/Dockerfile
Commit636aca8e109b5559006044f035bb89c16e9e5410
Docker Image built byDocker Inc.
Docker Scout Health ScoreDocker Scout Health Score
Verify SignatureCOSIGN_REPOSITORY=mcp/signatures cosign verify mcp/amazon-bedrock-agentcore-mcp-server --key https://raw.githubusercontent.com/docker/keyring/refs/heads/main/public/mcp/latest.pub
LicenceApache License 2.0

Available Tools (122)

Tools provided by this ServerShort Description
browser_clickClick an element identified by its accessibility ref.
browser_closeClose the current page.
browser_console_messagesGet recent browser console messages.
browser_evaluateExecute a JavaScript expression in the page context.
browser_fill_formFill multiple form fields in one action.
browser_handle_dialogConfigure how JavaScript dialogs are handled for a session.
browser_hoverHover over an element identified by its accessibility ref.
browser_mouse_wheelScroll the page by the specified pixel amounts.
browser_navigateNavigate to a URL in the browser.
browser_navigate_backNavigate back in browser history.
browser_navigate_forwardNavigate forward in browser history.
browser_network_requestsList recent network requests and their status.
browser_press_keyPress a keyboard key or key combination.
browser_resizeResize the browser viewport.
browser_select_optionSelect an option from a dropdown or combobox.
browser_snapshotCapture an accessibility tree snapshot of the current page.
browser_tabsManage browser tabs: list, create, select, or close tabs.
browser_take_screenshotCapture a visual screenshot of the page.
browser_typeType text into an element identified by its accessibility ref.
browser_upload_fileUpload files to a file input element identified by its ref.
browser_wait_forWait for text to appear or an element to become visible.
create_agent_runtimeCreate a new AgentCore Runtime to host an agent or tool.
create_agent_runtime_endpointCreate a custom endpoint for an AgentCore Runtime.
delete_agent_runtimeDelete an AgentCore Runtime and all its versions.
delete_agent_runtime_endpointDelete a runtime endpoint.
download_fileDownload a file from the sandboxed code interpreter session.
execute_codeExecute code in a sandboxed code interpreter session.
execute_commandExecute a shell command in a sandboxed code interpreter session.
fetch_agentcore_docFetch full document content by URL.
gateway_createCreate a new AgentCore Gateway resource.
gateway_deleteDelete an AgentCore Gateway.
gateway_getGet details of an AgentCore Gateway.
gateway_listList all AgentCore Gateways in the account.
gateway_resource_policy_deleteDelete the resource-based policy attached to a gateway.
gateway_resource_policy_getGet the resource-based policy attached to a gateway.
gateway_resource_policy_putCreate or update a resource-based policy on a gateway.
gateway_target_createCreate a new gateway target to expose tools through a gateway.
gateway_target_deleteDelete a gateway target.
gateway_target_getGet details of a gateway target.
gateway_target_listList all targets attached to a gateway.
gateway_target_synchronizeExplicitly synchronize gateway targets with their upstream tool catalog.
gateway_target_updateUpdate an existing gateway target.
gateway_updateUpdate an AgentCore Gateway.
get_agent_runtimeGet details of an AgentCore Runtime including its configuration.
get_agent_runtime_endpointGet details of a specific runtime endpoint.
get_browser_sessionGet the status and metadata of a browser session.
get_code_interpreter_sessionGet the status and details of a code interpreter session.
get_gateway_guideGet the comprehensive AgentCore Gateway guide.
get_identity_guideGet the comprehensive AgentCore Identity guide.
get_memory_guideGet the comprehensive AgentCore Memory guide.
get_policy_guideGet the comprehensive AgentCore Policy guide.
get_runtime_guideGet a comprehensive reference guide for AgentCore Runtime.
identity_create_api_key_providerCreate an API key credential provider in AgentCore Identity.
identity_create_oauth2_providerCreate an OAuth2 credential provider in AgentCore Identity.
identity_create_workload_identityCreate a new AgentCore workload identity.
identity_delete_api_key_providerPermanently delete an API key credential provider.
identity_delete_oauth2_providerPermanently delete an OAuth2 credential provider.
identity_delete_resource_policyPermanently delete the resource-based policy on an AgentCore resource.
identity_delete_workload_identityPermanently delete an AgentCore workload identity.
identity_get_api_key_providerGet metadata for an API key credential provider.
identity_get_oauth2_providerGet metadata for an OAuth2 credential provider.
identity_get_resource_policyGet the resource-based policy attached to an AgentCore resource.
identity_get_token_vaultGet details of an AgentCore Identity token vault.
identity_get_workload_identityGet details of an AgentCore workload identity.
identity_list_api_key_providersList API key credential providers in the account.
identity_list_oauth2_providersList OAuth2 credential providers in the account.
identity_list_workload_identitiesList AgentCore workload identities in the account.
identity_put_resource_policyCreate or replace the resource-based policy on an AgentCore resource.
identity_set_token_vault_cmkSet the customer master key (CMK) for an AgentCore Identity token vault.
identity_update_api_key_providerUpdate the API key stored in an existing credential provider.
identity_update_oauth2_providerUpdate an OAuth2 credential provider's configuration.
identity_update_workload_identityUpdate an AgentCore workload identity.
install_packagesInstall Python packages in a sandboxed code interpreter session.
invoke_agent_runtimeInvoke an agent hosted in AgentCore Runtime.
list_agent_runtime_endpointsList all endpoints for an AgentCore Runtime.
list_agent_runtime_versionsList all versions of a specific AgentCore Runtime.
list_agent_runtimesList all AgentCore Runtimes in the account.
list_browser_sessionsList active browser sessions.
list_code_interpreter_sessionsList code interpreter sessions with optional filtering.
memory_batch_create_recordsBatch create memory records in an AgentCore Memory resource.
memory_batch_delete_recordsBatch delete memory records from an AgentCore Memory resource.
memory_batch_update_recordsBatch update memory records in an AgentCore Memory resource.
memory_createCreate a new AgentCore Memory resource.
memory_create_eventCreate an event in an AgentCore Memory resource (short-term memory).
memory_deleteDelete an AgentCore Memory resource.
memory_delete_eventPermanently delete an event from an AgentCore Memory resource.
memory_delete_recordPermanently delete a memory record from an AgentCore Memory resource.
memory_getGet details of an AgentCore Memory resource.
memory_get_eventGet a specific event from an AgentCore Memory resource.
memory_get_recordGet a specific memory record from an AgentCore Memory resource.
memory_listList all AgentCore Memory resources in the account.
memory_list_actorsList all actors in an AgentCore Memory resource.
memory_list_eventsList events in an AgentCore Memory resource.
memory_list_extraction_jobsList memory extraction jobs for an AgentCore Memory resource.
memory_list_recordsList memory records in an AgentCore Memory resource.
memory_list_sessionsList sessions for an actor in an AgentCore Memory resource.
memory_retrieve_recordsSemantic search for memory records in an AgentCore Memory resource.
memory_start_extraction_jobStart (or restart) a memory extraction job.
memory_updateUpdate an AgentCore Memory resource.
policy_createCreate a Cedar policy within an AgentCore Policy Engine.
policy_deleteDelete a Cedar policy.
policy_engine_createCreate a new AgentCore Policy Engine.
policy_engine_deleteDelete an AgentCore Policy Engine.
policy_engine_getGet details of an AgentCore Policy Engine.
policy_engine_listList AgentCore Policy Engines in the account.
policy_engine_updateUpdate an AgentCore Policy Engine.
policy_generation_getGet details of an AgentCore Policy Generation.
policy_generation_listList policy generations within a Policy Engine.
policy_generation_list_assetsList Cedar policies and findings produced by policy generation.
policy_generation_startStart an AI-powered Cedar policy generation from natural language.
policy_getGet details of a Cedar policy.
policy_listList Cedar policies within a Policy Engine.
policy_updateUpdate a Cedar policy.
search_agentcore_docsSearch curated AgentCore documentation and return ranked results with snippets.
start_browser_sessionStart a cloud browser session via Amazon Bedrock AgentCore.
start_code_interpreter_sessionStart a new sandboxed code interpreter session.
stop_browser_sessionStop a browser session and release resources.
stop_code_interpreter_sessionStop a running code interpreter session and release its resources.
stop_runtime_sessionStop a running runtime session to release its microVM.
update_agent_runtimeUpdate an AgentCore Runtime, creating a new immutable version.
update_agent_runtime_endpointUpdate an endpoint to point to a different runtime version.
upload_fileUpload a file to the sandboxed code interpreter session.

Tools Details

Tool: browser_click

Click an element identified by its accessibility ref.

Use refs from the most recent browser_snapshot or navigation result. If the ref is not found, returns an error with the current page snapshot so you can retry with a correct ref.

ParametersTypeDescription
refstringElement ref from snapshot (e.g., "e4")
session_idstringBrowser session identifier
buttonstringoptionalMouse button: "left", "right", or "middle"
double_clickbooleanoptionalDouble-click instead of single click

Tool: browser_close

Close the current page.

Closes the active page in the browser session. If multiple tabs are open, subsequent tools will use the remaining tab. Use stop_browser_session to fully terminate the session.

ParametersTypeDescription
session_idstringBrowser session identifier

Tool: browser_console_messages

Get recent browser console messages.

Returns console log, warning, and error messages captured since the Playwright connection was established. Useful for debugging JavaScript errors or inspecting application logging.

ParametersTypeDescription
session_idstringBrowser session identifier

Tool: browser_evaluate

Execute a JavaScript expression in the page context.

The expression is evaluated in the browser and its return value is serialized to JSON. Use this for extracting data, reading page state, or performing custom interactions. You can use fetch() to make HTTP requests from the browser's origin and cookies.

ParametersTypeDescription
expressionstringJavaScript expression to evaluate in the page context. Use for inspecting state, extracting data, or performing actions not covered by other tools.
session_idstringBrowser session identifier

Tool: browser_fill_form

Fill multiple form fields in one action.

Clears each field before filling. Optionally clicks a submit button after all fields are filled. Returns the page snapshot after completion.

ParametersTypeDescription
fieldsarrayList of form fields to fill. Each entry has "ref" (element ref) and "value" (text to enter). Example: [{"ref": "e2", "value": "[email protected]"}]
session_idstringBrowser session identifier
submit_refstringoptionalRef of the submit button to click after filling all fields

Tool: browser_handle_dialog

Configure how JavaScript dialogs are handled for a session.

Sets a persistent handler for JavaScript dialogs (alert, confirm, prompt, beforeunload). Once set, all subsequent dialogs in the session are automatically accepted or dismissed. Call again to change the behavior.

ParametersTypeDescription
session_idstringBrowser session identifier
actionstringoptionalHow to handle dialogs: "accept" or "dismiss"
prompt_textstringoptionalText to enter for prompt dialogs (only used with accept)

Tool: browser_hover

Hover over an element identified by its accessibility ref.

Useful for triggering tooltips, dropdown menus, or hover states. Returns the page snapshot after hovering.

ParametersTypeDescription
refstringElement ref to hover over
session_idstringBrowser session identifier

Tool: browser_mouse_wheel

Scroll the page by the specified pixel amounts.

Default scrolls down by 500px (roughly half a viewport). Use negative delta_y to scroll up. Returns the page snapshot after scrolling.

ParametersTypeDescription
session_idstringBrowser session identifier
delta_xintegeroptionalHorizontal scroll amount in pixels (positive = right)
delta_yintegeroptionalVertical scroll amount in pixels (positive = down, negative = up)

Tool: browser_navigate

Navigate to a URL in the browser.

Loads the specified URL and returns an accessibility tree snapshot of the loaded page. Use the element refs in the snapshot for subsequent interaction tools.

ParametersTypeDescription
session_idstringBrowser session identifier
urlstringURL to navigate to

Tool: browser_navigate_back

Navigate back in browser history.

Returns an accessibility tree snapshot of the previous page.

ParametersTypeDescription
session_idstringBrowser session identifier

Tool: browser_navigate_forward

Navigate forward in browser history.

Returns an accessibility tree snapshot of the next page.

ParametersTypeDescription
session_idstringBrowser session identifier

Tool: browser_network_requests

List recent network requests and their status.

Returns a summary of network requests made by the page, including URL, HTTP method, status code, and resource type. Useful for debugging API calls or monitoring page loading.

ParametersTypeDescription
session_idstringBrowser session identifier

Tool: browser_press_key

Press a keyboard key or key combination.

Simulates a key press on the page (not a specific element). Supports modifier combinations like "Control+a" or "Meta+c". Returns the page snapshot after the key press.

ParametersTypeDescription
keystringKey to press. Examples: "Enter", "Tab", "Escape", "ArrowDown", "Control+a", "Meta+c". See Playwright keyboard API for key names.
session_idstringBrowser session identifier

Tool: browser_resize

Resize the browser viewport.

Changes the viewport dimensions of the active page. Useful for testing responsive layouts or viewing content at different sizes. Returns the page snapshot at the new size.

ParametersTypeDescription
heightintegerNew viewport height in pixels
session_idstringBrowser session identifier
widthintegerNew viewport width in pixels

Tool: browser_select_option

Select an option from a dropdown or combobox.

Provide one of: value (option value attribute), label (visible text), or index (zero-based position). Returns the page snapshot after selection.

ParametersTypeDescription
refstringElement ref of the select/combobox element
session_idstringBrowser session identifier
indexstringoptionalZero-based index of the option to select
labelstringoptionalVisible text label of the option to select
valuestringoptionalOption value attribute to select

Tool: browser_snapshot

Capture an accessibility tree snapshot of the current page.

Returns a structured text view of the page with element refs. Use the refs (e.g., e1, e2) in interaction tools like browser_click and browser_type to target specific elements.

Example output:

  • heading "Sign In" [ref=e1]
  • textbox "Email" [ref=e2]
  • textbox "Password" [ref=e3]
  • button "Sign In" [ref=e4] Parameters|Type|Description -|-|- session_id|string|Browser session identifier selector|stringoptional|Optional CSS selector to scope the snapshot to a specific section of the page (e.g., "main", "[role=main]", "#content"). If omitted, captures the full page.

Tool: browser_tabs

Manage browser tabs: list, create, select, or close tabs.

Actions:

  • "list": Show all open tabs with their titles and URLs.
  • "new": Open a new tab, optionally navigating to a URL.
  • "select": Switch the active tab (subsequent tools use this tab).
  • "close": Close a tab by its index. Parameters|Type|Description -|-|- session_id|string|Browser session identifier action|stringoptional|Tab action to perform: "list" to show all tabs, "new" to open a new tab, "select" to switch to a tab by index, "close" to close a tab by index. tab_index|stringoptional|Zero-based tab index for "select" and "close" actions url|stringoptional|URL to open in a new tab (for "new" action)

Tool: browser_take_screenshot

Capture a visual screenshot of the page.

Returns the screenshot as a base64-encoded PNG image. Use this when you need to visually inspect the page rather than reading the accessibility tree.

ParametersTypeDescription
session_idstringBrowser session identifier
full_pagebooleanoptionalCapture the full scrollable page instead of just the viewport

Tool: browser_type

Type text into an element identified by its accessibility ref.

By default, clears the existing content before typing. Set clear_first=False to append to existing text. Set submit=True to press Enter after typing.

ParametersTypeDescription
refstringElement ref from snapshot (e.g., "e2")
session_idstringBrowser session identifier
textstringText to type into the element
clear_firstbooleanoptionalClear existing content before typing
submitbooleanoptionalPress Enter after typing to submit

Tool: browser_upload_file

Upload files to a file input element identified by its ref.

Resolves the ref to a file input locator and sets the specified file paths. For cloud AgentCore sessions, paths refer to files on the remote VM. For local Playwright connections, paths refer to files on the local filesystem.

ParametersTypeDescription
pathsarrayList of file paths to upload
refstringElement ref of the file input (e.g., "e5")
session_idstringBrowser session identifier

Tool: browser_wait_for

Wait for text to appear or an element to become visible.

Provide either text or selector. Returns the page snapshot after the condition is met. Raises an error if the timeout is exceeded.

ParametersTypeDescription
session_idstringBrowser session identifier
selectorstringoptionalCSS selector to wait for
textstringoptionalWait for this text to appear on the page
timeoutintegeroptionalMaximum wait time in milliseconds (default: 10000)

Tool: create_agent_runtime

Create a new AgentCore Runtime to host an agent or tool.

This is a one-time setup operation that creates AWS infrastructure (IAM role binding, container deployment, endpoint). The DEFAULT endpoint is created automatically. Subsequent updates create new immutable versions.

Cost note: Creating a runtime provisions infrastructure. You are not billed until sessions are invoked, but the runtime definition and its resources persist until deleted.

ParametersTypeDescription
agent_runtime_namestringName for the runtime. Must match [a-zA-Z][a-zA-Z0-9_]{0,47}.
role_arnstringIAM execution role ARN for the runtime.
code_entry_pointstringoptionalEntry point command as comma-separated values, e.g. "main.py" or "opentelemetry-instrument,main.py".
code_runtimestringoptionalPython runtime identifier for direct code deploy, e.g. PYTHON_3_13.
code_s3_bucketstringoptionalS3 bucket for direct code deployment.
code_s3_prefixstringoptionalS3 key/prefix for the code zip.
container_uristringoptionalECR container URI. Provide either container_uri or the s3 code fields, not both.
descriptionstringoptionalDescription (max 4096 chars).
idle_timeoutstringoptionalIdle session timeout in seconds (60-28800). Default 900.
max_lifetimestringoptionalMax session lifetime in seconds (60-28800). Default 28800.
network_modestringoptionalNetwork mode: "PUBLIC" or "VPC".
security_groupsstringoptionalComma-separated security group IDs (required for VPC mode).
server_protocolstringoptionalProtocol: "HTTP", "MCP", or "A2A".
subnetsstringoptionalComma-separated subnet IDs (required for VPC mode).

Tool: create_agent_runtime_endpoint

Create a custom endpoint for an AgentCore Runtime.

Endpoints provide stable access points to specific runtime versions. The DEFAULT endpoint is created automatically; use this for additional environments (dev, staging, prod).

This is a configuration operation with no per-use cost.

ParametersTypeDescription
agent_runtime_idstringRuntime ID to create the endpoint for.
namestringEndpoint name. Must match [a-zA-Z][a-zA-Z0-9_]{0,47}.
agent_runtime_versionstringoptionalVersion to point to. Omit to use latest.
descriptionstringoptionalEndpoint description (max 256 chars).

Tool: delete_agent_runtime

Delete an AgentCore Runtime and all its versions.

All endpoints must be deleted first. Active sessions will be terminated. This operation cannot be undone.

ParametersTypeDescription
agent_runtime_idstringRuntime ID to delete.

Tool: delete_agent_runtime_endpoint

Delete a runtime endpoint. Cannot delete the DEFAULT endpoint.

This operation cannot be undone.

ParametersTypeDescription
agent_runtime_idstringRuntime ID.
endpoint_namestringEndpoint name to delete.

Tool: download_file

Download a file from the sandboxed code interpreter session.

Reads the content of a file at the specified path in the session's sandbox.

ParametersTypeDescription
pathstringRelative file path in the sandbox to download (e.g. 'output/result.csv').
session_idstringThe session ID to download the file from.
regionstringoptionalAWS region.

Tool: execute_code

Execute code in a sandboxed code interpreter session.

Runs Python, JavaScript, or TypeScript code in the session's sandbox. The execution context (variables, imports) persists across calls within the same session unless clear_context is True.

ParametersTypeDescription
codestringThe source code to execute.
session_idstringThe session ID to execute code in. Must be a started session.
clear_contextstringoptionalIf True, reset the execution context before running.
languagestringoptionalProgramming language ('python', 'javascript', 'typescript').
regionstringoptionalAWS region.

Tool: execute_command

Execute a shell command in a sandboxed code interpreter session.

Runs a shell command in the session's sandbox environment.

ParametersTypeDescription
commandstringThe shell command to execute.
session_idstringThe session ID to execute the command in.
regionstringoptionalAWS region.

Tool: fetch_agentcore_doc

Fetch full document content by URL.

Retrieves complete AgentCore documentation content from URLs found via search_agentcore_docs or provided directly. Use this to get full documentation pages including:

  • Complete platform overview and service documentation
  • Detailed getting started guides with step-by-step instructions
  • Full API reference documentation
  • Comprehensive tutorial and example code
  • Complete deployment and configuration instructions
  • Integration guides for various frameworks (Strands, LangGraph, CrewAI, etc.)

This provides the full content when search snippets aren't sufficient for understanding or implementing AgentCore features.

ParametersTypeDescription
uristringDocument URI (supports http/https URLs)

Tool: gateway_create

Create a new AgentCore Gateway resource.

COST WARNING: Creating a gateway provisions AWS infrastructure and incurs AWS charges. Gateway invocations are billed separately per request. A workload identity is also auto-created alongside the gateway.

The gateway starts in CREATING status and transitions to READY when ready for invocation. Use gateway_get to check status. The returned gatewayUrl is the endpoint for MCP invocations; tools are added via gateway_target_create.

Returns the created gateway details including its ID, ARN, URL, and auto-created workload identity ARN.

ParametersTypeDescription
authorizer_typestringInbound authorization type: "CUSTOM_JWT", "AWS_IAM", or "NONE". NONE gateways are unauthenticated and should only be used for public production endpoints with other security layers in place.
namestringUnique gateway name. Pattern: ([0-9a-zA-Z][-]?){1,100}
protocol_typestringProtocol type for the gateway. Currently only "MCP".
role_arnstringIAM service role ARN that AgentCore assumes to invoke targets. Must trust bedrock-agentcore.amazonaws.com.
authorizer_configurationstringoptionalAuthorizer config. Required when authorizer_type is "CUSTOM_JWT". Shape: {"customJWTAuthorizer": {"discoveryUrl": "...", "allowedClients": [...], "allowedAudience": [...], "allowedScopes": [...]}}.
client_tokenstringoptionalIdempotency token (33-256 chars)
descriptionstringoptionalGateway description (1-200 chars)
exception_levelstringoptionalError detail level. Set to "DEBUG" during development to return detailed errors on invocation. Omit for production to return generic errors only.
interceptor_configurationsstringoptionalLambda interceptors (1-2 items). Each has: "interceptor": {"lambda": {"arn": "..."}}, "interceptionPoints": ["REQUEST"
kms_key_arnstringoptionalCustomer-managed KMS key ARN for at-rest encryption. Omit to use the AWS-managed key.
policy_engine_configurationstringoptionalPolicy engine association. Shape: {"arn": "", "mode": "LOG_ONLY"
protocol_configurationstringoptionalProtocol-specific settings. For MCP: {"mcp": {"searchType": "SEMANTIC", "instructions": "...", "supportedVersions": [...]}}. searchType enables the built-in x_amz_bedrock_agentcore_search tool and cannot be changed after creation.
tagsstringoptionalTags as key-value pairs (max 50)

Tool: gateway_delete

Delete an AgentCore Gateway.

WARNING: This permanently deletes the gateway. All associated targets and the auto-created workload identity are removed. Agents pointing to this gateway's URL will fail to invoke. This action cannot be undone.

Note: You may need to delete gateway targets first if the gateway has any; otherwise the API will return a ConflictException.

ParametersTypeDescription
gateway_identifierstringGateway ID to delete

Tool: gateway_get

Get details of an AgentCore Gateway.

Returns the gateway including status, authorizer configuration, URL, protocol settings, and associated workload identity. This is a read-only operation with no cost implications.

ParametersTypeDescription
gateway_identifierstringGateway ID. Pattern: ([0-9a-z][-]?){1,100}-[0-9a-z]{10}

Tool: gateway_list

List all AgentCore Gateways in the account.

Returns gateway summaries with IDs, names, authorizer types, status, and timestamps. This is a read-only operation with no cost implications.

ParametersTypeDescription
max_resultsstringoptionalMax results per page (1-1000)
next_tokenstringoptionalPagination token from previous response

Tool: gateway_resource_policy_delete

Delete the resource-based policy attached to a gateway.

WARNING: This removes all permissions granted by the resource policy. Principals that relied on the policy for access will no longer be able to invoke the gateway. This action cannot be undone.

ParametersTypeDescription
resource_arnstringARN of the gateway resource (20-1011 chars)

Tool: gateway_resource_policy_get

Get the resource-based policy attached to a gateway.

Returns the raw JSON policy document. This is a read-only operation with no cost implications.

ParametersTypeDescription
resource_arnstringARN of the gateway resource (20-1011 chars)

Tool: gateway_resource_policy_put

Create or update a resource-based policy on a gateway.

COST WARNING: The policy itself is free, but misconfigured policies can expose a gateway to unintended principals — review carefully before applying.

Creates or replaces the resource policy attached to the specified gateway. Use this to grant cross-account access or to restrict access beyond what inbound authorization provides.

ParametersTypeDescription
policystringIAM resource policy document as a JSON string (1-20480 chars). Must specify Principal, Action, Resource, and Effect per standard IAM policy syntax.
resource_arnstringARN of the gateway (or runtime) resource the policy applies to. 20-1011 chars.

Tool: gateway_target_create

Create a new gateway target to expose tools through a gateway.

COST WARNING: Target creation is free, but tool invocations through the gateway (Lambda calls, REST API calls, MCP server calls) incur per-request costs against the underlying services. For mcpServer targets, target creation triggers an implicit synchronization that calls the MCP server's tools/list — this may take several minutes for large tool sets.

The target starts in CREATING status and transitions to READY when available. For mcpServer targets, status may also go through SYNCHRONIZING. Use gateway_target_get to check status.

Security note: Credential material (API keys, OAuth secrets) is NOT accepted directly — only provider ARNs. Create the credential provider separately using the agentcore CLI or the AgentCore Identity service so secrets never flow through LLM context.

ParametersTypeDescription
gateway_identifierstringGateway ID to attach the target to
namestringUnique target name within the gateway. Pattern: ([0-9a-zA-Z][-]?){1,100}. Tool names exposed via MCP are prefixed with this name, e.g. "${target_name}___${tool_name}".
target_configurationobjectTarget endpoint and schema config. Union with one key under "mcp": "lambda", "apiGateway", "openApiSchema", "smithyModel", or "mcpServer". Examples: {"mcp":{"lambda":{"lambdaArn":"...","toolSchema":{...}}}}; {"mcp":{"mcpServer":{"endpoint":"https://..."}}}; {"mcp":{"openApiSchema":{"s3":{"uri":"s3://..."}}}}; {"mcp":{"apiGateway":{"restApiId":"...","stage":"...","apiGatewayToolConfiguration":{"toolFilters":[...]}}}}.
client_tokenstringoptionalIdempotency token (33-256 chars)
credential_provider_configurationsstringoptionalOutbound auth (exactly 1 item if provided). Each: {"credentialProviderType": "GATEWAY_IAM_ROLE"
descriptionstringoptionalTarget description (1-200 chars)
metadata_configurationstringoptionalHeader/query parameter propagation. Shape: {"allowedRequestHeaders": [...], "allowedResponseHeaders": [...], "allowedQueryParameters": [...]}. Max 10 items each. Restricted headers (Authorization, Content-Type, etc.) cannot be allowlisted.

Tool: gateway_target_delete

Delete a gateway target.

WARNING: This permanently removes the target from the gateway. Tools exposed via this target will no longer be available to agents. This action cannot be undone.

ParametersTypeDescription
gateway_identifierstringGateway ID
target_idstringTarget ID to delete

Tool: gateway_target_get

Get details of a gateway target.

Returns the target including status, credential provider config, target configuration, metadata configuration, and sync timestamps. This is a read-only operation with no cost implications.

ParametersTypeDescription
gateway_identifierstringGateway ID
target_idstringTarget ID. Pattern: [0-9a-zA-Z]{10}

Tool: gateway_target_list

List all targets attached to a gateway.

Returns target summaries with IDs, names, status, and timestamps. This is a read-only operation with no cost implications.

ParametersTypeDescription
gateway_identifierstringGateway ID whose targets to list
max_resultsstringoptionalMax results per page (1-1000)
next_tokenstringoptionalPagination token

Tool: gateway_target_synchronize

Explicitly synchronize gateway targets with their upstream tool catalog.

COST WARNING: Synchronization calls the MCP server's tools/list endpoint and re-indexes the tool catalog (including rebuilding semantic search embeddings if enabled). This incurs compute costs and can take several minutes for large tool sets. The API returns a 202 response and processes asynchronously — monitor progress via gateway_target_get.

Use this for mcpServer targets when the upstream MCP server has added, removed, or changed tools. CreateGatewayTarget and UpdateGatewayTarget already trigger implicit synchronization, so this is only needed when the upstream catalog changes independently.

ParametersTypeDescription
gateway_identifierstringGateway ID
target_id_listarrayTarget IDs to synchronize (exactly 1 item). Pattern per item: [0-9a-zA-Z]{10}.

Tool: gateway_target_update

Update an existing gateway target.

COST WARNING: For mcpServer targets, updating triggers implicit synchronization with the MCP server's tools/list endpoint, which can take several minutes for large tool sets.

Updates the target configuration, credentials, metadata, or description. Returns the updated target details.

ParametersTypeDescription
gateway_identifierstringGateway ID
namestringUpdated target name
target_configurationobjectUpdated target configuration (same shape as create)
target_idstringTarget ID to update
credential_provider_configurationsstringoptionalUpdated credential provider config (1 item)
descriptionstringoptionalUpdated description (1-200 chars)
metadata_configurationstringoptionalUpdated header/query propagation config

Tool: gateway_update

Update an AgentCore Gateway.

COST WARNING: Adding or enabling interceptors adds Lambda invocation costs on every gateway request. Policy engine enforcement may also affect latency and cost profile.

Note: UpdateGateway requires all fields that were part of the create call — even ones you aren't changing — or the existing values will be replaced. Fetch with gateway_get first, then pass through the existing values for fields you don't want to change.

Returns the updated gateway details.

ParametersTypeDescription
authorizer_typestringInbound auth: "CUSTOM_JWT", "AWS_IAM", or "NONE"
gateway_identifierstringGateway ID to update
namestringGateway name. Must match the original creation name. Pattern: ([0-9a-zA-Z][-]?){1,100}
protocol_typestringProtocol type. Currently only "MCP".
role_arnstringUpdated IAM service role ARN
authorizer_configurationstringoptionalUpdated authorizer config (required for CUSTOM_JWT)
descriptionstringoptionalUpdated description (1-200 chars)
exception_levelstringoptionalError detail level. Set to "DEBUG" to enable detailed errors; omit to disable.
interceptor_configurationsstringoptionalUpdated interceptor configs (1-2 items)
kms_key_arnstringoptionalUpdated KMS key ARN
policy_engine_configurationstringoptionalUpdated policy engine config
protocol_configurationstringoptionalUpdated protocol config

Tool: get_agent_runtime

Get details of an AgentCore Runtime including its configuration.

This is a read-only operation with no cost implications.

ParametersTypeDescription
agent_runtime_idstringRuntime ID to retrieve.
agent_runtime_versionstringoptionalSpecific version to retrieve. Omit for latest.

Tool: get_agent_runtime_endpoint

Get details of a specific runtime endpoint.

Read-only, no cost implications.

ParametersTypeDescription
agent_runtime_idstringRuntime ID.
endpoint_namestringEndpoint name to retrieve.

Tool: get_browser_session

Get the status and metadata of a browser session.

Returns session status, stream endpoints, viewport dimensions, and creation timestamp.

ParametersTypeDescription
session_idstringBrowser session identifier returned by start_browser_session
browser_identifierstringoptionalAgentCore browser resource identifier
regionstringoptionalAWS region for AgentCore APIs

Tool: get_code_interpreter_session

Get the status and details of a code interpreter session.

ParametersTypeDescription
session_idstringThe session ID to query.
code_interpreter_identifierstringoptionalCode interpreter identifier. Defaults to
regionstringoptionalAWS region. Defaults to AWS_REGION env var or 'us-east-1'.

Tool: get_gateway_guide

Get the comprehensive AgentCore Gateway guide.

Returns a detailed reference covering: prerequisites, tool cost tiers, excluded operations and security notes, CLI commands, agentcore.json schema, target types, common patterns, debugging, troubleshooting, IAM permissions, and migration notes.

This is a read-only operation with no cost implications.

Tool: get_identity_guide

Get the comprehensive AgentCore Identity guide.

Returns a detailed reference covering: prerequisites, cost tiers, data-plane exclusion rationale, CLI commands, agentcore.json schema, OAuth2 provider config shapes, common patterns, troubleshooting, IAM permissions, and migration notes.

This is a read-only operation with no cost implications.

Tool: get_memory_guide

Get the comprehensive AgentCore Memory guide.

Returns a detailed reference covering: CLI commands, agentcore.json schema, memory strategies, cost tiers, common patterns, troubleshooting, IAM permissions, and migration notes.

This is a read-only operation with no cost implications.

Tool: get_policy_guide

Get the comprehensive AgentCore Policy guide.

Returns a detailed reference covering: CLI commands, agentcore.json schema, Cedar policy concepts, policy generation workflow, cost tiers, common patterns, troubleshooting, IAM permissions, and migration notes.

This is a read-only operation with no cost implications.

Tool: get_runtime_guide

Get a comprehensive reference guide for AgentCore Runtime.

Covers CLI commands, agentcore.json schema, protocol contracts, session lifecycle, IAM permissions, cost tiers, common patterns, troubleshooting, and migration notes.

Read-only, no cost implications.

Tool: identity_create_api_key_provider

Create an API key credential provider in AgentCore Identity.

COST WARNING: Creates a secret in AWS Secrets Manager (backing the credential provider) and incurs Secrets Manager storage charges.

SECURITY NOTE: The api_key parameter value flows through LLM context when this tool is called by an AI assistant. For production secrets, strongly prefer the CLI: agentcore add credential --name --api-key The CLI accepts the key without it entering LLM conversation history. Use this MCP tool for test credentials, automation from controlled contexts, or when the key is already known to the caller.

Returns the created provider's ARN and Secrets Manager secret ARN.

ParametersTypeDescription
api_keystringAPI key value to store (1-65536 chars). Encrypted at rest in AWS Secrets Manager via the token vault.
namestringUnique credential provider name (1-128 chars). Pattern: [a-zA-Z0-9-_]+
tagsstringoptionalTags as key-value pairs (max 50)

Tool: identity_create_oauth2_provider

Create an OAuth2 credential provider in AgentCore Identity.

COST WARNING: Creates a secret in AWS Secrets Manager (holding the client_secret) and incurs Secrets Manager storage charges.

SECURITY NOTE: The clientSecret inside oauth2_provider_config_input flows through LLM context when this tool is called by an AI assistant. For production secrets, strongly prefer the CLI: agentcore add credential --name --type oauth
--discovery-url --client-id
--client-secret --scopes <scope1,scope2> The CLI accepts the secret without it entering LLM conversation history. Use this MCP tool for test providers, automation from controlled contexts, or when the client_secret is already known to the caller.

The response includes a callbackUrl — the OAuth2 redirect URI you must register with the external provider.

ParametersTypeDescription
credential_provider_vendorstringOAuth2 vendor. One of: GoogleOauth2, GithubOauth2, SlackOauth2, SalesforceOauth2, MicrosoftOauth2, CustomOauth2, AtlassianOauth2, LinkedinOauth2, XOauth2, OktaOauth2, OneLoginOauth2, PingOneOauth2, FacebookOauth2, YandexOauth2, RedditOauth2, ZoomOauth2, TwitchOauth2, SpotifyOauth2, DropboxOauth2, NotionOauth2, HubspotOauth2, CyberArkOauth2, FusionAuthOauth2, Auth0Oauth2, CognitoOauth2.
namestringUnique provider name (1-128 chars). Pattern: [a-zA-Z0-9-_]+
oauth2_provider_config_inputobjectVendor-specific OAuth2 config as a union — specify exactly one of: googleOauth2ProviderConfig, githubOauth2ProviderConfig, slackOauth2ProviderConfig, salesforceOauth2ProviderConfig, microsoftOauth2ProviderConfig, customOauth2ProviderConfig, atlassianOauth2ProviderConfig, linkedinOauth2ProviderConfig, includedOauth2ProviderConfig. Each contains clientId and clientSecret (1-256 / 1-2048 chars). CustomOauth2 also requires oauthDiscovery (either discoveryUrl or authorizationServerMetadata).
tagsstringoptionalTags as key-value pairs (max 50)

Tool: identity_create_workload_identity

Create a new AgentCore workload identity.

COST WARNING: Creates a workload identity resource in AgentCore Identity. Workload identities themselves are free, but the workload access tokens they issue are used to retrieve stored credentials from the token vault.

Returns the created workload identity details including its ARN.

ParametersTypeDescription
namestringUnique workload identity name (3-255 chars). Pattern: [A-Za-z0-9_.-]+
allowed_resource_oauth2_return_urlsstringoptionalAllowed OAuth2 return URLs for resources accessed by this workload (1-2048 chars each). Required before using 3LO flows with a custom callback URL.
tagsstringoptionalTags as key-value pairs (max 50)

Tool: identity_delete_api_key_provider

Permanently delete an API key credential provider.

WARNING: This permanently deletes the credential provider and its backing secret. Any agents or workloads retrieving the key via this provider will fail. This action cannot be undone.

ParametersTypeDescription
namestringCredential provider name to delete (1-128 chars)

Tool: identity_delete_oauth2_provider

Permanently delete an OAuth2 credential provider.

WARNING: This permanently deletes the credential provider and its backing secret. Any agents or workloads retrieving tokens via this provider will fail. Any stored 3LO user consents tied to this provider are lost. This action cannot be undone.

ParametersTypeDescription
namestringProvider name to delete (1-128 chars)

Tool: identity_delete_resource_policy

Permanently delete the resource-based policy on an AgentCore resource.

WARNING: Removes ALL access-control statements from the target resource. After deletion, only principals authorized by identity-based IAM policies (not resource-based policies) can invoke or manage the resource. This action cannot be undone.

ParametersTypeDescription
resource_arnstringARN of the AgentCore resource.

Tool: identity_delete_workload_identity

Permanently delete an AgentCore workload identity.

WARNING: This permanently deletes the workload identity. Any agents or code relying on this identity will no longer be able to authenticate. This action cannot be undone.

ParametersTypeDescription
namestringWorkload identity name to delete (3-255 chars)

Tool: identity_get_api_key_provider

Get metadata for an API key credential provider.

Returns the provider ARN, the ARN of the backing Secrets Manager secret, and timestamps. Does NOT return the API key value itself — that is only retrievable at runtime by workloads with a valid workload identity token (via the SDK, not via MCP).

This is a read-only operation with no cost implications.

ParametersTypeDescription
namestringCredential provider name (1-128 chars)

Tool: identity_get_oauth2_provider

Get metadata for an OAuth2 credential provider.

Returns the provider ARN, vendor, callback URL, Secrets Manager secret ARN, OAuth2 discovery output, and timestamps. Does NOT return the client_secret value — that is stored in Secrets Manager and only used server-side during token exchanges.

This is a read-only operation with no cost implications.

ParametersTypeDescription
namestringProvider name (1-128 chars)

Tool: identity_get_resource_policy

Get the resource-based policy attached to an AgentCore resource.

Returns the policy as a JSON object. If no policy is attached, returns a success response with an empty policy. This is a read-only operation with no cost implications.

ParametersTypeDescription
resource_arnstringARN of the AgentCore resource.

Tool: identity_get_token_vault

Get details of an AgentCore Identity token vault.

Returns the token vault ID, KMS configuration (key type and key ARN), and last-modified timestamp. This is a read-only operation with no cost implications.

ParametersTypeDescription
token_vault_idstringoptionalToken vault ID (1-64 chars). Omit to get the default token vault for the account.

Tool: identity_get_workload_identity

Get details of an AgentCore workload identity.

Returns the workload identity including allowed OAuth2 return URLs, ARN, and timestamps. This is a read-only operation with no cost implications.

ParametersTypeDescription
namestringWorkload identity name (3-255 chars)

Tool: identity_list_api_key_providers

List API key credential providers in the account.

Returns provider summaries with names, ARNs, and timestamps. Does NOT return API key values. This is a read-only operation with no cost implications.

ParametersTypeDescription
max_resultsstringoptionalMax results per page (1-100)
next_tokenstringoptionalPagination token from previous response

Tool: identity_list_oauth2_providers

List OAuth2 credential providers in the account.

Returns provider summaries with names, ARNs, vendors, and timestamps. Does NOT return client secrets. This is a read-only operation with no cost implications.

ParametersTypeDescription
max_resultsstringoptionalMax results per page (1-20)
next_tokenstringoptionalPagination token from previous response

Tool: identity_list_workload_identities

List AgentCore workload identities in the account.

Returns workload identity summaries with names and ARNs. This is a read-only operation with no cost implications.

ParametersTypeDescription
max_resultsstringoptionalMax results per page (1-20)
next_tokenstringoptionalPagination token from previous response

Tool: identity_put_resource_policy

Create or replace the resource-based policy on an AgentCore resource.

ACCESS CONTROL WARNING: This modifies who can invoke or manage the target resource. Overly permissive policies (e.g. broad Principal wildcards or cross-account access) can expose the resource to unintended callers. Review policy documents carefully before applying, and prefer least-privilege statements scoped to specific principals and actions.

This is an idempotent replace — it overwrites any existing policy on the resource.

ParametersTypeDescription
policy_documentobjectIAM-style resource-based policy document as a JSON object. Must include "Version" and "Statement" fields. Each statement needs Effect (Allow
resource_arnstringARN of the AgentCore resource to attach the policy to. Supported: Agent Runtime, Agent Runtime Endpoint, Gateway.

Tool: identity_set_token_vault_cmk

Set the customer master key (CMK) for an AgentCore Identity token vault.

COST WARNING: Switching to a CustomerManagedKey incurs AWS KMS charges for every encryption and decryption request against secrets in the vault (each stored credential). Switching back to ServiceManagedKey stops these KMS charges.

SECURITY NOTE: This operation changes how credentials stored in the vault are encrypted. Ensure the KMS key policy grants the AgentCore service principal the necessary permissions (kms:Decrypt, kms:Encrypt, kms:GenerateDataKey, kms:DescribeKey) before switching to a CustomerManagedKey, or stored credentials will become inaccessible.

ParametersTypeDescription
kms_configurationobjectKMS configuration. An object with keys: "keyType" (either "CustomerManagedKey" or "ServiceManagedKey") and "kmsKeyArn" (required when keyType is CustomerManagedKey; an ARN like arn:aws:kms:region:account:key/key-id).
token_vault_idstringoptionalToken vault ID (1-64 chars). Omit to update the default token vault.

Tool: identity_update_api_key_provider

Update the API key stored in an existing credential provider.

COST WARNING: Rotates the secret in AWS Secrets Manager. Continues to incur Secrets Manager storage charges.

SECURITY NOTE: The api_key parameter value flows through LLM context when this tool is called by an AI assistant. For production key rotation, strongly prefer the CLI: agentcore add credential --name --api-key (re-running add with the same name rotates the key without the value entering LLM conversation history).

Returns updated provider metadata. The provider ARN is stable.

ParametersTypeDescription
api_keystringNew API key value (1-65536 chars). Replaces the existing key stored in Secrets Manager.
namestringCredential provider name to update (1-128 chars)

Tool: identity_update_oauth2_provider

Update an OAuth2 credential provider's configuration.

COST WARNING: Rotates the secret in AWS Secrets Manager. Continues to incur Secrets Manager storage charges.

SECURITY NOTE: The clientSecret inside oauth2_provider_config_input flows through LLM context when this tool is called by an AI assistant. For production secret rotation, strongly prefer the CLI (re-running agentcore add credential with the same name rotates the credential without the value entering LLM history).

Returns updated provider metadata. The provider ARN and callback URL are stable.

ParametersTypeDescription
credential_provider_vendorstringOAuth2 vendor (must match the existing vendor).
namestringProvider name to update (1-128 chars)
oauth2_provider_config_inputobjectUpdated vendor-specific OAuth2 config as a union. Same shape as on create — contains clientId, clientSecret, and (for CustomOauth2) oauthDiscovery.

Tool: identity_update_workload_identity

Update an AgentCore workload identity.

Replaces the allowed OAuth2 return URLs list. This is a config change only — the workload identity ARN and name are immutable.

ParametersTypeDescription
namestringWorkload identity name to update (3-255 chars)
allowed_resource_oauth2_return_urlsstringoptionalNew list of allowed OAuth2 return URLs (replaces existing list). Each URL 1-2048 chars.

Tool: install_packages

Install Python packages in a sandboxed code interpreter session.

Uses pip to install the specified packages in the session's sandbox.

ParametersTypeDescription
packagesarrayList of package names to install (e.g. ['numpy', 'pandas>=2.0']).
session_idstringThe session ID to install packages in.
regionstringoptionalAWS region.
upgradebooleanoptionalIf True, upgrade packages to the latest version.

Tool: invoke_agent_runtime

Invoke an agent hosted in AgentCore Runtime.

Sends a request to the agent and returns the response. Each invocation uses or creates a microVM session identified by runtime_session_id.

BILLABLE OPERATION: This creates or reuses a microVM session that incurs AWS compute charges for the duration of the session. Sessions auto-terminate after the configured idle timeout (default 15 minutes). Use stop_runtime_session to terminate early and save costs.

ParametersTypeDescription
agent_runtime_arnstringARN of the agent runtime to invoke, e.g. "arn:aws:bedrock-agentcore:us-west-2:123:runtime/my-agent".
payloadstringJSON payload to send to the agent, e.g. '{"prompt": "Hello"}'.
qualifierstringoptionalEndpoint name/qualifier. Defaults to DEFAULT.
runtime_session_idstringoptionalSession ID (33-256 chars). Reuse the same ID for multi-turn conversations. Auto-generated if omitted.

Tool: list_agent_runtime_endpoints

List all endpoints for an AgentCore Runtime.

Read-only, no cost implications.

ParametersTypeDescription
agent_runtime_idstringRuntime ID to list endpoints for.
max_resultsstringoptionalMax results (1-100).
next_tokenstringoptionalPagination token.

Tool: list_agent_runtime_versions

List all versions of a specific AgentCore Runtime.

This is a read-only operation with no cost implications.

ParametersTypeDescription
agent_runtime_idstringRuntime ID to list versions for.
max_resultsstringoptionalMax results (1-100).
next_tokenstringoptionalPagination token.

Tool: list_agent_runtimes

List all AgentCore Runtimes in the account.

This is a read-only operation with no cost implications.

ParametersTypeDescription
max_resultsstringoptionalMax results to return (1-100).
next_tokenstringoptionalPagination token from previous response.

Tool: list_browser_sessions

List active browser sessions.

Returns a summary of all browser sessions for the specified browser resource, including session IDs, status, and creation times.

ParametersTypeDescription
browser_identifierstringoptionalAgentCore browser resource identifier
max_resultsintegeroptionalMaximum number of sessions to return
regionstringoptionalAWS region for AgentCore APIs

Tool: list_code_interpreter_sessions

List code interpreter sessions with optional filtering.

ParametersTypeDescription
code_interpreter_identifierstringoptionalCode interpreter identifier. Defaults to
max_resultsstringoptionalMaximum number of sessions to return (1-100).
next_tokenstringoptionalPagination token from a previous response.
regionstringoptionalAWS region. Defaults to AWS_REGION env var or 'us-east-1'.
statusstringoptionalFilter by session status ('READY' or 'TERMINATED').

Tool: memory_batch_create_records

Batch create memory records in an AgentCore Memory resource.

COST WARNING: Creating memory records consumes storage and indexing resources. Each record incurs charges.

Creates up to 100 memory records in a single call. Each record must include content, namespaces, a request identifier, and a timestamp.

ParametersTypeDescription
memory_idstringMemory resource ID
recordsarrayRecords to create (0-100 items). Each record requires: "content" (MemoryContent union, typically {"text": "..."}), "namespaces" (list of 0-1 strings), "requestIdentifier" (unique string 1-80 chars), "timestamp" (epoch seconds). Optional: "memoryStrategyId".

Tool: memory_batch_delete_records

Batch delete memory records from an AgentCore Memory resource.

WARNING: This permanently deletes up to 100 memory records in a single call. This action cannot be undone.

ParametersTypeDescription
memory_idstringMemory resource ID
recordsarrayRecords to delete (0-100 items). Each requires: "memoryRecordId" (pattern: mem-[a-zA-Z0-9-_]*).

Tool: memory_batch_update_records

Batch update memory records in an AgentCore Memory resource.

Updates up to 100 memory records in a single call. Each record must include its ID and a timestamp.

ParametersTypeDescription
memory_idstringMemory resource ID
recordsarrayRecords to update (0-100 items). Each requires: "memoryRecordId" (pattern: mem-...), "timestamp" (epoch seconds). Optional: "content", "memoryStrategyId", "namespaces".

Tool: memory_create

Create a new AgentCore Memory resource.

COST WARNING: Creating a memory resource provisions AWS infrastructure. This incurs AWS charges. Memory strategies that process events (extraction, consolidation) consume additional compute resources.

The memory resource starts in CREATING status and transitions to ACTIVE when ready. Use memory_get to check status.

Returns the created memory resource details including its ID.

ParametersTypeDescription
event_expiry_durationintegerDays after which memory events expire (3-365)
namestringUnique name for the memory resource. Pattern: [a-zA-Z][a-zA-Z0-9_]{0,47}
descriptionstringoptionalDescription of the memory resource (1-4096 chars)
encryption_key_arnstringoptionalKMS key ARN for encryption
memory_execution_role_arnstringoptionalIAM role ARN for memory execution
memory_strategiesstringoptionalList of memory strategy configurations. Each is a union with one key: semanticMemoryStrategy, summaryMemoryStrategy, userPreferenceMemoryStrategy, episodicMemoryStrategy, or customMemoryStrategy. Each strategy requires a "name" field.
tagsstringoptionalTags as key-value pairs (max 50)

Tool: memory_create_event

Create an event in an AgentCore Memory resource (short-term memory).

COST WARNING: Creating events triggers background long-term memory extraction if strategies are configured. This consumes compute resources and incurs AWS charges.

Events represent interactions (messages, tool calls) within a session. They are immutable and timestamped.

ParametersTypeDescription
actor_idstringActor identifier (1-255 chars). Pattern: [a-zA-Z0-9][a-zA-Z0-9-_/]*
memory_idstringMemory resource ID
payloadarrayContent payload (0-100 items). Each item is a PayloadType union — typically conversational messages with "role" and "content" fields.
branchstringoptionalBranch info for threading. Object with "name" and optional "rootEventId".
event_timestampstringoptionalEvent timestamp (epoch seconds). Defaults to now.
metadatastringoptionalKey-value metadata (0-15 entries, keys 1-128 chars)
session_idstringoptionalSession identifier (1-100 chars). Groups events into conversations. Pattern: [a-zA-Z0-9][a-zA-Z0-9-_]*

Tool: memory_delete

Delete an AgentCore Memory resource.

WARNING: This permanently deletes the memory resource and all associated data (events, memory records, strategies). This action cannot be undone.

ParametersTypeDescription
memory_idstringMemory resource ID to delete

Tool: memory_delete_event

Permanently delete an event from an AgentCore Memory resource.

WARNING: This permanently removes the event. This action cannot be undone. Already-extracted long-term memory records are not affected.

ParametersTypeDescription
actor_idstringActor identifier
event_idstringEvent identifier to delete
memory_idstringMemory resource ID
session_idstringSession identifier

Tool: memory_delete_record

Permanently delete a memory record from an AgentCore Memory resource.

WARNING: This permanently removes the memory record. This action cannot be undone.

ParametersTypeDescription
memory_idstringMemory resource ID
memory_record_idstringMemory record ID to delete (pattern: mem-...)

Tool: memory_get

Get details of an AgentCore Memory resource.

Returns the memory resource including status, strategies, configuration, and timestamps. This is a read-only operation with no cost implications.

ParametersTypeDescription
memory_idstringMemory resource ID (min 12 chars)

Tool: memory_get_event

Get a specific event from an AgentCore Memory resource.

Retrieves full event details including payload and metadata. This is a read-only operation with no cost implications.

ParametersTypeDescription
actor_idstringActor identifier
event_idstringEvent identifier. Pattern: [0-9]+#[a-fA-F0-9]+
memory_idstringMemory resource ID
session_idstringSession identifier

Tool: memory_get_record

Get a specific memory record from an AgentCore Memory resource.

Returns the full record including content, metadata, namespaces, and strategy ID. This is a read-only operation.

ParametersTypeDescription
memory_idstringMemory resource ID
memory_record_idstringMemory record ID (40-50 chars). Pattern: mem-[a-zA-Z0-9-_]*

Tool: memory_list

List all AgentCore Memory resources in the account.

Returns memory summaries with IDs, ARNs, status, and timestamps. This is a read-only operation with no cost implications.

ParametersTypeDescription
max_resultsstringoptionalMax results per page (1-100)
next_tokenstringoptionalPagination token from previous response

Tool: memory_list_actors

List all actors in an AgentCore Memory resource.

Returns actor summaries (actor IDs) for the memory. This is a read-only operation with no cost implications.

ParametersTypeDescription
memory_idstringMemory resource ID
max_resultsstringoptionalMax results per page (1-100, default 20)
next_tokenstringoptionalPagination token

Tool: memory_list_events

List events in an AgentCore Memory resource.

Lists events for a specific actor and session with optional filtering by branch or metadata. This is a read-only operation.

ParametersTypeDescription
actor_idstringActor identifier
memory_idstringMemory resource ID
session_idstringSession identifier
event_filterstringoptionalFilter criteria. Object with optional "branch" (name, includeParentBranches) and "eventMetadata" (list of filter expressions).
include_payloadsstringoptionalWhether to include event payloads
max_resultsstringoptionalMax results per page (1-100, default 20)
next_tokenstringoptionalPagination token

Tool: memory_list_extraction_jobs

List memory extraction jobs for an AgentCore Memory resource.

Returns extraction job metadata including status, actor/session IDs, and failure reasons. This is a read-only operation.

ParametersTypeDescription
memory_idstringMemory resource ID
extraction_filterstringoptionalFilter criteria. Object with optional keys: "actorId", "sessionId", "status" (e.g. "FAILED"), "strategyId".
max_resultsstringoptionalMax results per page (1-50, default 20)
next_tokenstringoptionalPagination token

Tool: memory_list_records

List memory records in an AgentCore Memory resource.

Returns memory record summaries filtered by namespace and optionally by strategy. This is a read-only operation.

ParametersTypeDescription
memory_idstringMemory resource ID
namespacestringNamespace prefix filter (1-1024 chars). Returns all records in namespaces starting with this prefix.
max_resultsstringoptionalMax results per page (1-100, default 20)
memory_strategy_idstringoptionalFilter by memory strategy ID
next_tokenstringoptionalPagination token

Tool: memory_list_sessions

List sessions for an actor in an AgentCore Memory resource.

Returns session summaries with session IDs, actor IDs, and creation timestamps. This is a read-only operation.

ParametersTypeDescription
actor_idstringActor identifier
memory_idstringMemory resource ID
max_resultsstringoptionalMax results per page (1-100, default 20)
next_tokenstringoptionalPagination token

Tool: memory_retrieve_records

Semantic search for memory records in an AgentCore Memory resource.

COST WARNING: Semantic search invokes embedding and retrieval infrastructure. Each call incurs compute charges.

Searches long-term memory records by semantic similarity to the query. Returns results ordered by relevance score. Use this to retrieve contextually relevant memories for agent responses.

ParametersTypeDescription
memory_idstringMemory resource ID
namespacestringNamespace prefix filter (1-1024 chars)
search_querystringSemantic search query for finding relevant records (1-10000 chars)
max_resultsstringoptionalMax results per page (1-100, default 20)
memory_strategy_idstringoptionalFilter by memory strategy ID
next_tokenstringoptionalPagination token
top_kstringoptionalMax top-scoring records to return (1-100)

Tool: memory_start_extraction_job

Start (or restart) a memory extraction job.

COST WARNING: Extraction jobs consume compute resources to process events and produce memory records. This incurs AWS charges.

Typically used to retry previously failed extraction jobs. The job processes events and produces structured long-term memory records.

ParametersTypeDescription
job_idstringExtraction job ID to restart
memory_idstringMemory resource ID

Tool: memory_update

Update an AgentCore Memory resource.

COST WARNING: Adding new memory strategies may increase processing costs as new strategies will process incoming events.

Can update description, event expiry, execution role, and strategies (add, modify, or delete). Returns the updated memory details.

ParametersTypeDescription
memory_idstringMemory resource ID to update
descriptionstringoptionalUpdated description (1-4096 chars)
event_expiry_durationstringoptionalUpdated event expiry in days (3-365)
memory_execution_role_arnstringoptionalUpdated IAM role ARN
memory_strategiesstringoptionalStrategy modifications. Object with optional keys: "addMemoryStrategies" (list of strategy inputs), "deleteMemoryStrategies" (list of {memoryStrategyId}), "modifyMemoryStrategies" (list of modifications).

Tool: policy_create

Create a Cedar policy within an AgentCore Policy Engine.

COST WARNING: Creating a policy invokes the validation pipeline and provisions a billable policy resource. This incurs AWS charges.

Policies are validated against the Cedar schema derived from the parent policy engine's associated Gateway tools. Create is asynchronous — the policy starts in CREATING and transitions to ACTIVE or CREATE_FAILED. Poll with policy_get.

ParametersTypeDescription
definitionobjectPolicyDefinition union. Specify exactly one key: "cedar" with {"statement": ""} for a raw Cedar statement (35-10000 chars), OR "policyGeneration" with {"policyGenerationId": "", "policyGenerationAssetId": ""} to reference a generated asset from a previous policy generation.
namestringImmutable, unique policy name. Pattern: [A-Za-z][A-Za-z0-9_]*, max 48 chars.
policy_engine_idstringParent policy engine ID (12-59 chars)
client_tokenstringoptionalIdempotency token (33-256 chars)
descriptionstringoptionalHuman-readable description (1-4096 chars)
validation_modestringoptionalHow policy validation findings are handled. "FAIL_ON_ANY_FINDINGS" (default) rejects policies with validation findings. "IGNORE_ALL_FINDINGS" creates the policy regardless of findings.

Tool: policy_delete

Delete a Cedar policy.

WARNING: This permanently deletes the policy. Delete is asynchronous — status transitions through DELETING. This action cannot be undone.

ParametersTypeDescription
policy_engine_idstringParent policy engine ID
policy_idstringPolicy ID to delete

Tool: policy_engine_create

Create a new AgentCore Policy Engine.

COST WARNING: Creating a policy engine provisions AWS infrastructure and incurs AWS charges. The engine starts in CREATING status and transitions to ACTIVE when ready. Use policy_engine_get to poll the status.

Returns the created policy engine details including its ID and ARN.

ParametersTypeDescription
namestringImmutable name for the policy engine, unique within the account. Pattern: [A-Za-z][A-Za-z0-9_]*, max 48 chars.
client_tokenstringoptionalIdempotency token (33-256 chars)
descriptionstringoptionalPurpose and scope of the policy engine (1-4096 chars)
encryption_key_arnstringoptionalKMS key ARN for encryption at rest
tagsstringoptionalTags as key-value pairs (max 50)

Tool: policy_engine_delete

Delete an AgentCore Policy Engine.

WARNING: This permanently deletes the policy engine. The engine must not have any associated policies before deletion — delete all policies first with policy_delete, then delete the engine. This action cannot be undone.

ParametersTypeDescription
policy_engine_idstringPolicy engine ID to delete

Tool: policy_engine_get

Get details of an AgentCore Policy Engine.

Returns the policy engine including status, encryption config, and timestamps. This is a read-only operation with no cost implications.

ParametersTypeDescription
policy_engine_idstringPolicy engine ID (12-59 chars). Pattern: [A-Za-z][A-Za-z0-9_]*-[a-z0-9_]{10}

Tool: policy_engine_list

List AgentCore Policy Engines in the account.

Returns policy engine summaries with IDs, ARNs, status, and timestamps. This is a read-only operation with no cost implications.

ParametersTypeDescription
max_resultsstringoptionalMax results per page (1-100, default 10)
next_tokenstringoptionalPagination token from previous response

Tool: policy_engine_update

Update an AgentCore Policy Engine.

Currently only the description can be updated. The engine's name and encryption configuration are immutable after creation.

ParametersTypeDescription
policy_engine_idstringPolicy engine ID to update
descriptionstringoptionalUpdatedDescription object with "optionalValue" key. Set {"optionalValue": "new text"} to change the description, or {"optionalValue": null} to clear it. Omit the parameter entirely to leave the description unchanged.

Tool: policy_generation_get

Get details of an AgentCore Policy Generation.

Returns the generation including status, findings, and resource context. Use to poll after policy_generation_start. This is a read-only operation with no cost implications.

ParametersTypeDescription
policy_engine_idstringPolicy engine ID
policy_generation_idstringPolicy generation ID (12-59 chars)

Tool: policy_generation_list

List policy generations within a Policy Engine.

Returns policy generation summaries with IDs, ARNs, status, resource context, and timestamps. Generated assets auto-delete after 7 days. This is a read-only operation with no cost implications.

ParametersTypeDescription
policy_engine_idstringPolicy engine ID
max_resultsstringoptionalMax results per page (1-100)
next_tokenstringoptionalPagination token

Tool: policy_generation_list_assets

List Cedar policies and findings produced by policy generation.

Returns generated policy assets — each with its Cedar definition (if translatable), the original natural-language fragment, and validation findings (VALID, INVALID, NOT_TRANSLATABLE, ALLOW_ALL, ALLOW_NONE, DENY_ALL, DENY_NONE). Use assets with VALID findings in policy_create via the "policyGeneration" definition variant. This is a read-only operation with no cost implications.

ParametersTypeDescription
policy_engine_idstringPolicy engine ID
policy_generation_idstringPolicy generation ID
max_resultsstringoptionalMax results per page (1-100, default 10)
next_tokenstringoptionalPagination token

Tool: policy_generation_start

Start an AI-powered Cedar policy generation from natural language.

COST WARNING: Policy generation invokes foundation models and consumes significant compute resources. This is typically the most expensive Policy operation per call. Each invocation incurs AWS charges.

The generation is asynchronous — starts in GENERATING and transitions to GENERATED or GENERATE_FAILED. Poll with policy_generation_get. Generated assets auto-delete after 7 days. To persist a generated policy, reference its asset in policy_create via the "policyGeneration" union variant.

ParametersTypeDescription
contentobjectContent union. Specify key "rawText" with a natural-language description (1-2000 chars) of the desired policy behavior. Example: {"rawText": "Allow users in group Admins to invoke the weather tool during business hours"}.
namestringName for tracking this generation request. Pattern: [A-Za-z][A-Za-z0-9_]*, max 48 chars.
policy_engine_idstringPolicy engine ID providing context for generation
resourceobjectResource union identifying the target for this policy. Specify key "arn" with the resource ARN (20-1011 chars). Currently only Gateway ARNs are supported. Example: {"arn": "arn:aws:bedrock-agentcore:us-east-1:123456789012:gateway/my-gateway-abc123"}.
client_tokenstringoptionalIdempotency token (33-256 chars)

Tool: policy_get

Get details of a Cedar policy.

Returns the full policy including its Cedar definition, status, and timestamps. This is a read-only operation with no cost implications. Use to poll status after create/update/delete.

ParametersTypeDescription
policy_engine_idstringParent policy engine ID
policy_idstringPolicy ID (12-59 chars)

Tool: policy_list

List Cedar policies within a Policy Engine.

Returns policy summaries with IDs, ARNs, definitions, status, and timestamps. Optionally filter by target resource scope (e.g. a Gateway ARN). This is a read-only operation with no cost implications.

ParametersTypeDescription
policy_engine_idstringParent policy engine ID
max_resultsstringoptionalMax results per page (1-100, default 10)
next_tokenstringoptionalPagination token
target_resource_scopestringoptionalFilter policies by target resource scope (20-1011 chars). Typically a Gateway ARN.

Tool: policy_update

Update a Cedar policy.

COST WARNING: Updating a policy re-invokes the validation pipeline and consumes compute resources. This incurs AWS charges.

Update is asynchronous — status transitions through UPDATING. Poll with policy_get.

ParametersTypeDescription
policy_engine_idstringParent policy engine ID
policy_idstringPolicy ID to update
definitionstringoptionalNew PolicyDefinition replacing the existing one. Union with one key: "cedar" ({"statement": "..."}) or "policyGeneration" ({"policyGenerationId": ..., "policyGenerationAssetId": ...}).
descriptionstringoptionalUpdatedDescription object with "optionalValue" key. Set {"optionalValue": "new text"} to update, {"optionalValue": null} to clear. Omit to leave unchanged.
validation_modestringoptionalValidation mode for this update: "FAIL_ON_ANY_FINDINGS" or "IGNORE_ALL_FINDINGS".

Tool: search_agentcore_docs

Search curated AgentCore documentation and return ranked results with snippets.

This tool provides access to the complete Amazon Bedrock AgentCore documentation including:

Platform Overview:

  • What is Bedrock AgentCore, security overview, quotas and limits

Platform Services:

  • AgentCore Runtime (serverless deployment and scaling)
  • AgentCore Memory (persistent knowledge with event and semantic memory)
  • AgentCore Code Interpreter (secure code execution in isolated sandboxes)
  • AgentCore Browser (fast, secure cloud-based browser for web interaction)
  • AgentCore Gateway (transform existing APIs into agent tools)
  • AgentCore Observability (real-time monitoring and tracing)
  • AgentCore Identity (secure authentication and access management)

Getting Started:

  • Prerequisites & environment setup
  • Building your first agent or transforming existing code
  • Local development & testing
  • Deployment to AgentCore using CLI
  • Troubleshooting & enhancement

Examples & Tutorials:

  • Basic agent creation, memory integration, tool usage
  • Streaming responses, error handling, authentication
  • Customer service agents, code review assistants, data analysis
  • Multi-agent workflows and integrations

API Reference:

  • Data plane and control API documentation

Use this to find relevant AgentCore documentation for any development question.

ParametersTypeDescription
querystringSearch query string (e.g., "bedrock agentcore", "memory integration", "deployment guide")
kintegeroptionalMaximum number of results to return (default: 5)

Tool: start_browser_session

Start a cloud browser session via Amazon Bedrock AgentCore.

Creates an isolated browser session running in a Firecracker microVM. Returns the session ID and automation stream URL for subsequent browser interaction tools.

Usage:

  1. Call this tool first to start a browser session.
  2. Use the returned session_id with browser interaction tools (browser_navigate, browser_click, browser_snapshot, etc.).
  3. Call stop_browser_session when done. Parameters|Type|Description -|-|- browser_identifier|stringoptional|AgentCore browser resource identifier. Use "aws.browser.v1" for the default browser. extensions|stringoptional|List of browser extensions to load from S3 into the session. profile_configuration|stringoptional|Profile configuration for persisting cookies and local storage across sessions. Pass a profile identifier created via the AgentCore control plane. proxy_configuration|stringoptional|Proxy configuration for routing browser traffic through external proxy servers. Supports multiple proxies with domain-based routing and bypass rules. region|stringoptional|AWS region for AgentCore APIs timeout_seconds|integeroptional|Session idle timeout in seconds — the session expires after this many seconds of inactivity (no tool calls). Default 900 (15 min), max 28800 (8 hours). Active sessions persist as long as there is interaction within each timeout window. viewport_height|integeroptional|Browser viewport height in pixels viewport_width|integeroptional|Browser viewport width in pixels

Tool: start_code_interpreter_session

Start a new sandboxed code interpreter session.

Creates a new session that can execute code, run commands, and manage files in an isolated environment. The session remains active until explicitly stopped or until the timeout expires (default DEFAULT_SESSION_TIMEOUT_SECONDS).

ParametersTypeDescription
code_interpreter_identifierstringoptionalCode interpreter to use. Defaults to
namestringoptionalOptional human-readable name for the session.
regionstringoptionalAWS region. Defaults to AWS_REGION env var or 'us-east-1'.
session_timeout_secondsstringoptionalSession timeout in seconds.

Tool: stop_browser_session

Stop a browser session and release resources.

Terminates the browser session and its underlying microVM. The session cannot be resumed after stopping.

ParametersTypeDescription
session_idstringBrowser session identifier to terminate
browser_identifierstringoptionalAgentCore browser resource identifier
regionstringoptionalAWS region for AgentCore APIs

Tool: stop_code_interpreter_session

Stop a running code interpreter session and release its resources.

ParametersTypeDescription
session_idstringThe session ID to stop.
code_interpreter_identifierstringoptionalCode interpreter identifier. Defaults to
regionstringoptionalAWS region. Defaults to AWS_REGION env var or 'us-east-1'.

Tool: stop_runtime_session

Stop a running runtime session to release its microVM.

Use this to terminate sessions early and save costs instead of waiting for the idle timeout (default 15 minutes). This is the recommended cleanup action after your agent conversation is complete.

This is a cost-saving operation that prevents runaway charges from idle sessions.

ParametersTypeDescription
agent_runtime_arnstringARN of the agent runtime.
runtime_session_idstringSession ID to stop (33-256 chars).
qualifierstringoptionalEndpoint qualifier. Defaults to DEFAULT.

Tool: update_agent_runtime

Update an AgentCore Runtime, creating a new immutable version.

The DEFAULT endpoint automatically points to the new version. Custom endpoints must be updated separately.

Cost note: Updating creates a new version. Active sessions continue using the previous version until they terminate.

ParametersTypeDescription
agent_runtime_idstringRuntime ID to update.
role_arnstringIAM execution role ARN.
code_entry_pointstringoptionalUpdated entry point (comma-separated).
code_runtimestringoptionalUpdated Python runtime identifier.
code_s3_bucketstringoptionalUpdated S3 bucket for code deploy.
code_s3_prefixstringoptionalUpdated S3 key/prefix for code zip.
container_uristringoptionalUpdated ECR container URI.
descriptionstringoptionalUpdated description.
idle_timeoutstringoptionalUpdated idle timeout in seconds.
max_lifetimestringoptionalUpdated max lifetime in seconds.
network_modestringoptionalNetwork mode: "PUBLIC" or "VPC".
security_groupsstringoptionalComma-separated SG IDs for VPC mode.
server_protocolstringoptionalUpdated protocol: "HTTP", "MCP", or "A2A".
subnetsstringoptionalComma-separated subnet IDs for VPC mode.

Tool: update_agent_runtime_endpoint

Update an endpoint to point to a different runtime version.

Enables zero-downtime version transitions and rollbacks. Configuration-only, no per-use cost.

ParametersTypeDescription
agent_runtime_idstringRuntime ID.
endpoint_namestringEndpoint name to update.
agent_runtime_versionstringoptionalNew version to point the endpoint to.
descriptionstringoptionalUpdated description.

Tool: upload_file

Upload a file to the sandboxed code interpreter session.

Creates or overwrites a file at the specified path in the session's sandbox with the given content. Path must be relative (e.g. 'data/input.csv'). The SDK raises ValueError for absolute paths.

For binary files, pass the content as a base64-encoded string. The sandbox can then decode it, e.g. via import base64; data = base64.b64decode(content).

ParametersTypeDescription
contentstringThe file content as a string. For binary files, use
pathstringRelative file path in the sandbox (e.g. 'data/input.csv').
session_idstringThe session ID to upload the file to.
descriptionstringoptionalOptional description of the file for LLM context.
regionstringoptionalAWS region.

Use this MCP Server

{
  "mcpServers": {
    "amazon-bedrock-agentcore": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "mcp/amazon-bedrock-agentcore-mcp-server"
      ]
    }
  }
}

Why is it safer to run MCP Servers with Docker?

Related servers