MCPcopy Create free account

hub / github.com/awslabs/mcp / functions

Functions35,417 in github.com/awslabs/mcp

↓ 19 callersFunctionhandle_client_error
Handle boto3 ClientError exceptions. Args: ctx: The MCP context e: The ClientError exception operation: The operation tha
src/aws-support-mcp-server/awslabs/aws_support_mcp_server/errors.py:24
↓ 19 callersFunctioninternal_create_connection
Create or retrieve a cached database connection.
src/mssql-mcp-server/awslabs/mssql_mcp_server/server.py:447
↓ 19 callersFunctionlog_with_request_id
Log a message with the request ID from the context. Args: ctx: The MCP context containing the request ID level: The log level (fr
src/sagemaker-ai-mcp-server/awslabs/sagemaker_ai_mcp_server/logging_helper.py:33
↓ 19 callersMethodmanage_aws_athena_named_queries
Manage saved SQL queries in AWS Athena. This tool provides operations for creating, retrieving, updating, and deleting named queries
src/aws-dataprocessing-mcp-server/awslabs/aws_dataprocessing_mcp_server/handlers/athena/athena_query_handler.py:493
↓ 19 callersFunctionmonthly_period_note
Say when MONTHLY entries are labelled with more of the month than their figures cover. With MONTHLY granularity, GetReservationUtilization and Ge
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/utilities/time_utils.py:162
↓ 19 callersFunctionnormalize_exception
Normalize exceptions to structured error responses. This function ensures that all exceptions are properly normalized to prevent leaking inte
src/amazon-translate-mcp-server/awslabs/amazon_translate_mcp_server/server.py:271
↓ 19 callersMethodopen
Open the connection pool asynchronously. Args: wait: Whether to wait for connections to be established timeout: Timeo
src/postgres-mcp-server/tests/conftest.py:314
↓ 19 callersMethodrun_query
Execute query using MySQL MCP server.
src/dynamodb-mcp-server/awslabs/dynamodb_mcp_server/db_analyzer/mysql.py:415
↓ 19 callersFunctionstart_run
Start a workflow run. Args: ctx: MCP context for error reporting workflow_id: ID of the workflow to run role_arn: ARN of
src/aws-healthomics-mcp-server/awslabs/aws_healthomics_mcp_server/tools/workflow_execution.py:131
↓ 19 callersMethodsuccess
Return True if all *applicable* test steps passed. Skipped steps (a check that could not run -- missing CA bundle/openssl, or a clust
src/postgres-mcp-server/tests/e2e/e2e_integration_test.py:148
↓ 19 callersMethodupdate_config
Update config for the current region. None values are ignored. Use clear_config_keys() to explicitly remove keys.
src/security-agent-mcp-server/awslabs/security_agent_mcp_server/state.py:103
↓ 19 callersFunctionvalidate_write_path
Validate and resolve a file path before writing a download. Prevents path traversal by stripping directory components from *file_name* via os
src/aws-transform-mcp-server/awslabs/aws_transform_mcp_server/file_validation.py:119
↓ 18 callersFunction_call
(mock_context, client, **kwargs)
src/billing-cost-management-mcp-server/tests/tools/test_cost_anomaly_monitors.py:85
↓ 18 callersMethod_client
Get a fresh securityagent boto3 client with custom user-agent.
src/security-agent-mcp-server/awslabs/security_agent_mcp_server/aws_client.py:92
↓ 18 callersMethod_get_all_s3_bucket_paths
Get all S3 bucket paths including configured and validated adhoc buckets. Args: request: Search request containing potential adho
src/aws-healthomics-mcp-server/awslabs/aws_healthomics_mcp_server/search/genomics_search_orchestrator.py:743
↓ 18 callersFunction_parse
(result: dict)
src/aws-transform-mcp-server/tests/test_load_instructions.py:47
↓ 18 callersFunction_ri_response
(rows, scope='Linked')
src/billing-cost-management-mcp-server/tests/tools/test_recommendation_details_tools.py:1671
↓ 18 callersFunctionadd_documents
Add documents to a Valkey Search index with optional embedding generation. Stores documents as Valkey hashes. When embedding_field and text_field
src/valkey-mcp-server/awslabs/valkey_mcp_server/tools/search_add_documents.py:91
↓ 18 callersFunctionagentic_retrieve_knowledge_bases
Run agentic retrieval across one or more managed knowledge bases. Args: query: The natural language question. knowledge_base_ids:
src/bedrock-kb-retrieval-mcp-server/awslabs/bedrock_kb_retrieval_mcp_server/knowledgebases/agentic.py:130
↓ 18 callersFunctionaws_pricing
Mock implementation of aws_pricing for testing.
src/billing-cost-management-mcp-server/tests/tools/test_aws_pricing_tools.py:46
↓ 18 callersFunctiondetect_content_input_type
Detect the type of content input. Detection order: 1. If starts with 's3://' -> S3_URI 2. If path passes security checks and exists on fi
src/aws-healthomics-mcp-server/awslabs/aws_healthomics_mcp_server/utils/content_resolver.py:87
↓ 18 callersMethoddetect_file_type
Detect the genomics file type from a file path. Args: file_path: The file path to analyze Returns: GenomicsF
src/aws-healthomics-mcp-server/awslabs/aws_healthomics_mcp_server/search/file_type_detector.py:104
↓ 18 callersFunctiondiagnose_run_failure
Provides comprehensive diagnostic information for a failed workflow run. This function collects multiple sources of diagnostic information includ
src/aws-healthomics-mcp-server/awslabs/aws_healthomics_mcp_server/tools/troubleshooting.py:84
↓ 18 callersFunctionexecute_command
Execute a command and return the result. This is a utility function that handles the execution of CLI commands. It sets up the proper environ
src/finch-mcp-server/awslabs/finch_mcp_server/utils/common.py:94
↓ 18 callersMethodgenerate_all_files
Generate all Markdown files and manifest. Returns: Tuple of (list of generated file paths, list of errors) Errors are
src/dynamodb-mcp-server/awslabs/dynamodb_mcp_server/markdown_formatter.py:420
↓ 18 callersFunctionget_active_resolver
Return the currently active credential resolver. Returns: CredentialResolver: The resolver used to produce ``boto3.Session`` instances.
src/aws-healthomics-mcp-server/awslabs/aws_healthomics_mcp_server/utils/aws_utils.py:323
↓ 18 callersFunctionget_aws_client
Create and return an AWS service client using boto3's default credential chain. Args: service_name: AWS service name (e.g., 'cloudcontrol
src/ccapi-mcp-server/awslabs/ccapi_mcp_server/aws_client.py:27
↓ 18 callersFunctionget_client
Get or create the GLIDE client singleton (thread-safe via asyncio.Lock).
src/valkey-mcp-server/awslabs/valkey_mcp_server/common/connection.py:158
↓ 18 callersFunctionhandle_gateway_error
Convert an exception into a structured ErrorResponse. Extracts error code, message, and HTTP status from botocore ClientError. Falls back to
src/amazon-bedrock-agentcore-mcp-server/awslabs/amazon_bedrock_agentcore_mcp_server/tools/gateway/error_handler.py:22
↓ 18 callersFunctionhandle_policy_error
Convert an exception into a structured ErrorResponse. Extracts error code, message, and HTTP status from botocore ClientError. Falls back to
src/amazon-bedrock-agentcore-mcp-server/awslabs/amazon_bedrock_agentcore_mcp_server/tools/policy/error_handler.py:22
↓ 18 callersFunctioninitiate_pull_through_cache
Initiate a pull-through cache by calling batch_get_image. When an image is not found in a pull-through cache repository, calling batch_get_im
src/aws-healthomics-mcp-server/awslabs/aws_healthomics_mcp_server/utils/ecr_utils.py:430
↓ 18 callersFunctionis_valid_bucket_name
Perform basic validation of S3 bucket name format. Args: bucket_name: Bucket name to validate Returns: True if bucket name a
src/aws-healthomics-mcp-server/awslabs/aws_healthomics_mcp_server/utils/s3_utils.py:71
↓ 18 callersMethodlist_terminologies
List all available terminologies. Args: max_results: Maximum number of terminologies to return (1-500) next_token: To
src/amazon-translate-mcp-server/awslabs/amazon_translate_mcp_server/terminology_manager.py:86
↓ 18 callersMethodmake_request
Make a SigV4-signed request to the CloudWatch PromQL API. Args: endpoint: API endpoint path (e.g., 'query', 'query_range', 'label
src/cloudwatch-mcp-server/awslabs/cloudwatch_mcp_server/cloudwatch_metrics/promql_client.py:129
↓ 18 callersMethodmanage_aws_athena_data_catalogs
Manage AWS Athena data catalogs with both read and write operations. This tool provides operations for managing Athena data catalogs, includi
src/aws-dataprocessing-mcp-server/awslabs/aws_dataprocessing_mcp_server/handlers/athena/athena_data_catalog_handler.py:61
↓ 18 callersMethodmanage_aws_glue_resource_policies
r"""Manage AWS Glue Resource Policies for access control. This tool allows you to retrieve, create, update, and delete AWS Glue Resource Poli
src/aws-dataprocessing-mcp-server/awslabs/aws_dataprocessing_mcp_server/handlers/glue/glue_commons_handler.py:689
↓ 18 callersFunctionpaginate_all
Auto-paginate a FES list call, collecting all items. Args: operation: FES operation name. body: Request body (not mutated).
src/aws-transform-mcp-server/awslabs/aws_transform_mcp_server/transform_api_client.py:271
↓ 18 callersFunctionparse_filter
Parse a filter expression, rejecting an empty one. An empty filter (``''``, ``""`` or another blank JSON string, ``{}``, ``[]``, ``null``) is
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/utilities/aws_service_base.py:231
↓ 18 callersFunctionrun_query
Run a SQL query against MySQL. Args: sql: The sql statement to run ctx: MCP context for logging and state management conn
src/mysql-mcp-server/awslabs/mysql_mcp_server/server.py:117
↓ 18 callersFunctionsource_db_analyzer
Analyzes source database to extract schema and access patterns for DynamoDB modeling. WHEN TO USE: Call this tool when the user selects "Existing
src/dynamodb-mcp-server/awslabs/dynamodb_mcp_server/server.py:332
↓ 18 callersMethodstop_application
Stop an SAP application registered with AWS Systems Manager for SAP. For HANA applications with associated NetWeaver (SAP_ABAP) applications,
src/aws-for-sap-management-mcp-server/awslabs/aws_for_sap_management_mcp_server/ssm_sap_applications/tools.py:517
↓ 17 callersFunction_allowed
Return True if the guard accepts ``sql``, False if it raises SqlPolicyError.
src/postgres-mcp-server/tests/test_sql_guard.py:40
↓ 17 callersFunction_batch_denied_error
Build the AccessDeniedException the Data API raises for a denied action.
src/redshift-mcp-server/tests/helpers.py:74
↓ 17 callersMethod_build_conninfo
Build the libpq conninfo string, always encrypting the connection. Credentials always go on the wire for this connector (an IAM auth token
src/postgres-mcp-server/awslabs/postgres_mcp_server/connection/psycopg_pool_connection.py:367
↓ 17 callersMethod_client_for
Patch httpx.AsyncClient so a fetch returns the given response.
src/aws-documentation-mcp-server/tests/test_server_utils.py:1255
↓ 17 callersFunction_compile_wildcard_pattern
Compile wildcard pattern once for reuse. Args: pattern: Wildcard pattern with * for any characters Returns: Compiled regex p
src/cloudwatch-applicationsignals-mcp-server/awslabs/cloudwatch_applicationsignals_mcp_server/audit_utils.py:888
↓ 17 callersFunction_create_policy_not_found_exception
Create a mock RepositoryPolicyNotFoundException for testing.
src/aws-healthomics-mcp-server/tests/test_ecr_tools.py:1070
↓ 17 callersFunction_create_sample_ptc_rule
Create a sample pull-through cache rule response object.
src/aws-healthomics-mcp-server/tests/test_ecr_tools.py:2882
↓ 17 callersMethod_format_as_markdown_table
Format query result data as Markdown table. Args: data: List of row dictionaries Returns: Markdown table str
src/dynamodb-mcp-server/awslabs/dynamodb_mcp_server/markdown_formatter.py:55
↓ 17 callersFunction_make_resolve_cluster
Build a mock resolve_cluster returning one cluster.
src/redshift-mcp-server/tests/test_review_executor.py:119
↓ 17 callersFunction_matches_wildcard_pattern
Check if text matches pre-compiled wildcard pattern. Args: text: Text to test compiled_pattern: Pre-compiled regex pattern from _
src/cloudwatch-applicationsignals-mcp-server/awslabs/cloudwatch_applicationsignals_mcp_server/audit_utils.py:919
↓ 17 callersMethod_redirected_response
Build a 200 response that arrived via a redirect to another page.
src/aws-documentation-mcp-server/tests/test_server_utils.py:1246
↓ 17 callersFunction_require_confirmation
Raise an error requesting user confirmation for write operations.
src/iam-mcp-server/awslabs/iam_mcp_server/server.py:222
↓ 17 callersFunction_run_logs_insights_query
Async wrapper around the sync Logs Insights poll loop. Wrapping in ``asyncio.to_thread`` keeps the event loop free while the blocking boto3 c
src/cloudwatch-applicationsignals-mcp-server/awslabs/cloudwatch_applicationsignals_mcp_server/rum_tools.py:398
↓ 17 callersMethodadd
Add a document to the search index. Args: doc: Document to add to the index Note: Extracts and weights diffe
src/amazon-bedrock-agentcore-mcp-server/awslabs/amazon_bedrock_agentcore_mcp_server/utils/indexer.py:80
↓ 17 callersFunctionconnect_to_database
Connect to a specific database save the connection internally. Args: region: region of the database. Required parametere. databas
src/postgres-mcp-server/awslabs/postgres_mcp_server/server.py:612
↓ 17 callersFunctioncreate_mcp_server
Create and configure the FastMCP server (synchronous wrapper). This is a synchronous convenience wrapper that calls :func:`create_mcp_server_
src/openapi-mcp-server/awslabs/openapi_mcp_server/server.py:541
↓ 17 callersMethodcreate_terminology
Create a new custom terminology. Args: name: Terminology name (must be unique) description: Terminology description
src/amazon-translate-mcp-server/awslabs/amazon_translate_mcp_server/terminology_manager.py:179
↓ 17 callersFunctiondetect_mutating_keywords
Return the mutating keywords found in the SQL (excluding comments and identifiers). Delimited identifiers are blanked before matching -- a quoted
src/db2-mcp-server/awslabs/db2_mcp_server/mutable_sql_detector.py:345
↓ 17 callersFunctiondetect_readme_input_type
Detect the type of README input. Detection rules (in order): 1. If starts with 's3://' -> S3_URI 2. If path exists and ends with '.md' ->
src/aws-healthomics-mcp-server/awslabs/aws_healthomics_mcp_server/utils/validation_utils.py:49
↓ 17 callersMethoderror
Record an error message.
src/db2-mcp-server/tests/test_server.py:74
↓ 17 callersFunctionfetch_task_failures
Task-level diagnostics for ECS task failures. Parameters ---------- cluster_name : str The name of the ECS Cluster time_
src/ecs-mcp-server/awslabs/ecs_mcp_server/api/troubleshooting_tools/fetch_task_failures.py:181
↓ 17 callersMethodformat
r"""Format the prompt template with validation parameters. Args: rubric_items: Formatted rubric criteria (e.g., "1. Criterion 1\n
src/cloudwatch-applicationsignals-mcp-server/evals/core/validation_prompts.py:101
↓ 17 callersFunctionformat_result
Format a result dictionary with status and message. This utility function creates a standardized response format used by all the MCP tools. I
src/finch-mcp-server/awslabs/finch_mcp_server/utils/common.py:161
↓ 17 callersFunctionformat_usage_item_response
Formats a single usage item object from the list_workload_estimate_usage API response. Args: usage_item: Single usage item object from AW
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/bcm_pricing_calculator_tools.py:904
↓ 17 callersMethodgenerate_health_report
Generate a detailed, downloadable health report for SAP systems managed by SSM for SAP. Produces a comprehensive Markdown-formatted report co
src/aws-for-sap-management-mcp-server/awslabs/aws_for_sap_management_mcp_server/ssm_sap_health/tools.py:2654
↓ 17 callersFunctiongenerate_infrastructure_code
Generate infrastructure code for security scanning before resource creation or update.
src/ccapi-mcp-server/awslabs/ccapi_mcp_server/infrastructure_generator.py:25
↓ 17 callersFunctiongenerate_startup_script
Generate a startup script based on runtime and entry point. This script starts up your web server so that beings listening for requests. Args:
src/aws-serverless-mcp-server/awslabs/aws_serverless_mcp_server/tools/webapps/utils/startup_script_generator.py:49
↓ 17 callersFunctionget_dimension_values
Get available dimension values. Args: ctx: MCP context ce_client: AWS Cost Explorer client dimension: The dimension to ge
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/cost_explorer_operations.py:321
↓ 17 callersFunctionget_enablement_guide
Get enablement guide for AWS Application Signals. Use this tool when the user wants to: - Enable observability, monitoring, or Application Si
src/cloudwatch-applicationsignals-mcp-server/awslabs/cloudwatch_applicationsignals_mcp_server/enablement_tools.py:28
↓ 17 callersMethodget_query_results
Get the results of a completed CloudTrail Lake query with pagination support. This tool retrieves the results of a previously executed CloudT
src/cloudtrail-mcp-server/awslabs/cloudtrail_mcp_server/tools.py:480
↓ 17 callersFunctionhandle_runtime_error
Convert an exception into a structured ``ErrorResponse``. Args: operation: Friendly name of the API operation that failed. error:
src/amazon-bedrock-agentcore-mcp-server/awslabs/amazon_bedrock_agentcore_mcp_server/tools/runtime/error_handler.py:22
↓ 17 callersFunctionis_fes_available
Return True if FES is reachable via any auth method.
src/aws-transform-mcp-server/awslabs/aws_transform_mcp_server/config_store.py:387
↓ 17 callersMethodmock_aws_clients
Create a mock for boto3.client that returns specified clients.
src/ecs-mcp-server/tests/unit/troubleshooting_tools/test_fetch_task_failures.py:37
↓ 17 callersFunctionput_user_policy
Create or update an inline policy for an IAM user. This tool creates a new inline policy or updates an existing one for the specified user. I
src/iam-mcp-server/awslabs/iam_mcp_server/server.py:1469
↓ 17 callersFunctionrecommend_indexes_loggroup
Recommend field indexes for a specific CloudWatch log group. Analyzes the last 30 days of completed Logs Insights queries (CWLI, SQL, PPL), i
src/cloudwatch-mcp-server/awslabs/cloudwatch_mcp_server/cloudwatch_logs/index_recommender.py:358
↓ 17 callersFunctionrequest_consent
Request explicit user consent before executing a mutating operation. Raises ValueError if the user rejects or the client doesn't support elicitat
src/aws-for-sap-management-mcp-server/awslabs/aws_for_sap_management_mcp_server/common.py:49
↓ 17 callersFunctionrun_query
Run a SQL query against Oracle Database.
src/oracle-mcp-server/awslabs/oracle_mcp_server/server.py:113
↓ 17 callersFunctionruntime_client
Runtime client stub returning the given stream.
src/bedrock-kb-retrieval-mcp-server/tests/test_agentic.py:61
↓ 17 callersMethodstart_browser_session
Start a cloud browser session via Amazon Bedrock AgentCore. Creates an isolated browser session running in a Firecracker microVM. Ret
src/amazon-bedrock-agentcore-mcp-server/awslabs/amazon_bedrock_agentcore_mcp_server/tools/browser/session.py:75
↓ 17 callersMethodstart_diff_scan
Run a diff scan — analyzes only changed code with full repo context. Uploads the committed state at base_ref as the baseline source, and the
src/security-agent-mcp-server/awslabs/security_agent_mcp_server/scanner.py:235
↓ 17 callersMethodstrftime
(self, fmt)
src/aws-for-sap-management-mcp-server/tests/test_common.py:64
↓ 16 callersMethod_build_conn_string
Build the ibm_db (DSN-less) connection string. Attribute order is security-relevant, and the direction has been MEASURED at the wire
src/db2-mcp-server/awslabs/db2_mcp_server/connection/ibm_db_connection.py:179
↓ 16 callersMethod_calculate_seasonal_strength
Calculate seasonal strength and extract deseasonalized data for trend. Returns: Tuple of (strength, deseasonalized_values) where
src/cloudwatch-mcp-server/awslabs/cloudwatch_mcp_server/cloudwatch_metrics/metric_data_decomposer.py:135
↓ 16 callersFunction_call
(mock_context, client, **kwargs)
src/billing-cost-management-mcp-server/tests/tools/test_free_tier_plan_operations.py:53
↓ 16 callersFunction_filter_instrumented_services
Filter out uninstrumented and aws native services. Args: all_services: List of service summaries from list_services API Returns:
src/cloudwatch-applicationsignals-mcp-server/awslabs/cloudwatch_applicationsignals_mcp_server/audit_utils.py:239
↓ 16 callersFunction_find_ref
Extract the element ref for a given role and name from snapshot text. Args: snapshot_text: Accessibility tree text from browser_snapshot.
src/amazon-bedrock-agentcore-mcp-server/tests/browser/test_integ_browser_session.py:169
↓ 16 callersFunction_get_rum_app_info
Async wrapper: returns (log_group, platform).
src/cloudwatch-applicationsignals-mcp-server/awslabs/cloudwatch_applicationsignals_mcp_server/rum_tools.py:313
↓ 16 callersFunction_idx
(name)
src/valkey-mcp-server/tests/integration/test_search_live.py:42
↓ 16 callersMethod_make_conn
Build a connection object without opening a pool.
src/postgres-mcp-server/tests/test_psycopg_connector.py:1125
↓ 16 callersFunction_parse
Extract the parsed JSON payload from an MCP result envelope.
src/aws-transform-mcp-server/tests/test_chat.py:33
↓ 16 callersFunction_parse
Extract the parsed JSON payload from an MCP result envelope.
src/aws-transform-mcp-server/tests/test_job_status.py:42
↓ 16 callersMethod_process_bundle
Process FHIR Bundle response and extract pagination information. ``pagination.next_token`` is the opaque ``page`` value extracted fro
src/healthlake-mcp-server/awslabs/healthlake_mcp_server/fhir_operations.py:441
↓ 16 callersFunction_query_tool_over
(fake_athena, manifests_by_key, mock_context)
src/billing-cost-management-mcp-server/tests/tools/test_storage_lens_tools.py:2198
↓ 16 callersFunction_run_with_paginator
Invoke a handler with a mocked paginator returning the given items. The paginator and convert_response_if_needed are both mocked so tests exe
src/billing-cost-management-mcp-server/tests/tools/test_business_support_operations.py:78
↓ 16 callersMethodanalyze_s3_usage_for_data_processing
Analyze S3 bucket usage patterns for data processing services (Glue, EMR, Athena). This tool helps identify which buckets are actively used b
src/aws-dataprocessing-mcp-server/awslabs/aws_dataprocessing_mcp_server/handlers/commons/common_resource_handler.py:995
↓ 16 callersFunctionaudit_group_health
HEALTH AUDIT TOOL - Detect anomalies and unhealthy services in a group. Use this tool when users ask: - "Is the Payment application healthy?"
src/cloudwatch-applicationsignals-mcp-server/awslabs/cloudwatch_applicationsignals_mcp_server/group_tools.py:335
↓ 16 callersMethodbuild_pk_for_lookup
Build partition key for lookups
src/dynamodb-mcp-server/tests/repo_generation_tool/fixtures/expected_outputs/python/ecommerce/base_repository.py:72
↓ 16 callersMethodbuild_sk_for_lookup
Build sort key for lookups
src/dynamodb-mcp-server/tests/repo_generation_tool/fixtures/expected_outputs/python/ecommerce/base_repository.py:80
↓ 16 callersFunctioncalculate_time_window
Calculate the actual start time and end time for a time window. Parameters ---------- time_window : int, optional Time windo
src/ecs-mcp-server/awslabs/ecs_mcp_server/utils/time_utils.py:70
← previousnext →401–500 of 35,417, ranked by callers