---
title: "Connect Amazon Connect to Claude: Manage agent performance and metrics"
slug: connect-amazon-connect-to-claude-manage-agent-performance-and-metrics
date: 2026-11-22
author: Uday Gajavalli
categories: ["AI & Agents"]
excerpt: "Learn how to build a secure Amazon Connect MCP server to give Claude access to your contact center. Automate agent evaluations, routing, and real-time metrics."
tldr: "Step-by-step guide to connecting Amazon Connect to Claude using Truto's managed MCP servers. Automate QA evaluations, queue management, and real-time reporting with AI."
canonical: https://truto.one/blog/connect-amazon-connect-to-claude-manage-agent-performance-and-metrics/
---

# Connect Amazon Connect to Claude: Manage agent performance and metrics


If your team needs to connect Amazon Connect to Claude to automate agent performance reviews, extract real-time routing metrics, or orchestrate omnichannel support flows, you need a [Model Context Protocol (MCP) server](https://truto.one/what-is-mcp-and-mcp-servers-and-how-do-they-work/). This server acts as the translation layer between Claude's tool calls and Amazon Connect's REST APIs. You can either build and maintain this infrastructure yourself, or use a [managed integration platform like Truto](https://truto.one/managed-mcp-for-claude-full-saas-api-access-without-security-headaches/) to dynamically generate a secure, authenticated MCP server URL. 

If your team uses ChatGPT, check out our guide on [connecting Amazon Connect to ChatGPT](https://truto.one/connect-amazon-connect-to-chatgpt-orchestrate-flows-and-routing/) or explore our broader architectural overview on [connecting Amazon Connect to AI Agents](https://truto.one/connect-amazon-connect-to-ai-agents-automate-omnichannel-support/).

Giving a Large Language Model (LLM) read and write access to a sprawling, mission-critical environment like Amazon Connect is a serious engineering challenge. You have to handle AWS authentication lifecycles, inject `InstanceId` parameters into every request, map complex JSON schemas to MCP tool definitions, and deal with strict AWS API quotas. Every time AWS updates an endpoint or introduces a new resource type, you have to update your server code, redeploy, and test the integration.

This guide breaks down exactly how to use Truto to generate a secure, managed MCP server for Amazon Connect, connect it natively to Claude Desktop, and execute complex contact center management workflows using natural language.

> Want to give your AI agents secure, authenticated access to Amazon Connect and 100+ other SaaS APIs? Let's talk about [managed MCP architecture](https://truto.one/managed-mcp-for-claude-full-saas-api-access-without-security-headaches/).
>
> [Talk to us](https://truto.one/book-a-demo/)

## The Engineering Reality of the Amazon Connect API

A custom MCP server is a self-hosted integration layer. While the open [MCP standard](https://truto.one/what-is-mcp-and-mcp-servers-and-how-do-they-work/) provides a predictable way for models to discover tools, the reality of implementing it against specialized enterprise APIs is painful. Amazon Connect is built to manage massive telecom infrastructure, highly concurrent agent states, and complex routing algorithms. Its API reflects that exact complexity.

If you decide to build a custom Amazon Connect MCP server, here are the specific integration challenges you will face:

**The Universal `InstanceId` Requirement**
Almost every endpoint in the Amazon Connect API requires an `InstanceId` parameter. This is the unique identifier for your virtual contact center. An LLM operating on raw API documentation does not know your AWS account ID or your specific Instance ARN. If you build this yourself, you must write middleware to intercept LLM tool calls and inject the correct context identifiers before forwarding the request to AWS. Truto handles this automatically by scoping the MCP server to a specific, configured integrated account.

**Complex Resource Addressing (ARNs vs UUIDs)**
AWS APIs are notoriously strict about resource identification. Some Amazon Connect endpoints accept short UUIDs, while others require fully qualified Amazon Resource Names (ARNs). For example, updating phone number metadata across regions often requires a full ARN, while standard queue operations might just need the ID. Expecting Claude to format ARNs correctly from scratch leads to hallucination loops. A managed MCP server exposes well-defined schemas that explicitly tell the LLM exactly what format the ID should take.

**Strict TPS Quotas and Rate Limiting**
Amazon Connect enforces strict Transactions Per Second (TPS) quotas. Pulling real-time metrics or searching contact trace records (CTRs) can quickly burn through your API limits. *Note: Truto does not absorb, retry, or apply backoff on rate limit errors.* When the upstream Amazon Connect API returns an HTTP 429, Truto passes that error directly to the caller. However, Truto normalizes the upstream rate limit information into standardized headers (`ratelimit-limit`, `ratelimit-remaining`, `ratelimit-reset`) per the IETF spec. It is entirely up to the LLM client (Claude) to read these headers and implement its own retry and backoff logic.

## Security and Access Control

When connecting an AI agent to a live production contact center, security is the primary concern. You do not want a hallucinating model accidentally deleting your primary routing profile or deactivating your main toll-free number. Truto provides four critical security layers when configuring an MCP server:

*   **Method Filtering:** Restrict the server to specific operation types. By passing `methods: ["read"]`, Claude will only see `get` and `list` tools. It physically cannot modify data.
*   **Tag Filtering:** Limit tools to specific domains. You can configure the server to only expose tools tagged with `metrics` or `evaluations`, hiding sensitive resources like `users` or `security_profiles`.
*   **API Token Authentication:** By enabling `require_api_token_auth`, possession of the MCP URL is no longer enough. The client must also pass a valid Truto API token in the `Authorization` header, adding a strict secondary identity check.
*   **Expiration Timers:** Use the `expires_at` field to create ephemeral MCP servers. The server will automatically self-destruct at the specified ISO datetime, ensuring temporary contractors or test agents do not have indefinite access.

## How to Generate the Amazon Connect MCP Server

Truto allows you to generate a secure MCP server URL for Amazon Connect using either the visual dashboard or the REST API.

### Method 1: Via the Truto UI

If you prefer a visual interface, you can generate the server directly from your browser.

1. Navigate to the **Integrated Accounts** page in the Truto dashboard.
2. Select your connected Amazon Connect instance.
3. Click the **MCP Servers** tab.
4. Click **Create MCP Server**.
5. Select your desired configuration (e.g., restrict to `read` methods, apply a TTL).
6. Click Generate and copy the provided MCP server URL.

### Method 2: Via the Truto API

For engineering teams building automated provisioning pipelines, you can generate MCP servers programmatically. 

Make a `POST` request to `/integrated-account/:id/mcp`. The response will include the secure URL.

```typescript
const response = await fetch('https://api.truto.one/integrated-account/<your-account-id>/mcp', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer <your-truto-api-token>',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    name: "Amazon Connect QA Agent MCP",
    config: {
      methods: ["read", "write"] // Or restrict to ["read"] for safety
    }
  })
});

const data = await response.json();
console.log(data.url); // https://api.truto.one/mcp/<secure-token>
```

## Connecting the MCP Server to Claude

Once you have your generated Truto MCP URL, you need to register it with your Claude environment. You can do this via the Claude application UI or by manually editing the configuration file.

### Method A: Via the Claude UI

1. Open Claude Desktop or the web interface.
2. Navigate to **Settings** -> **Integrations** (or **Connectors** depending on your plan level).
3. Click **Add MCP Server** or **Add custom connector**.
4. Paste the Truto MCP URL you generated in the previous step.
5. Click **Add**. Claude will immediately perform a handshake and discover the available Amazon Connect tools.

### Method B: Via Manual Config File

For developers who prefer file-based configuration, you can connect Claude using the open-source [Server-Sent Events (SSE) transport adapter](https://truto.one/what-is-mcp-and-mcp-servers-and-how-do-they-work/). Edit your `claude_desktop_config.json` file (typically located in `~/Library/Application Support/Claude/` on macOS or `%APPDATA%\Claude\` on Windows).

```json
{
  "mcpServers": {
    "amazon_connect_truto": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-sse",
        "https://api.truto.one/mcp/<your-secure-token>"
      ]
    }
  }
}
```

Restart Claude Desktop. The application will read the configuration, spawn the Node.js SSE client, and establish a connection to Truto.

## Amazon Connect Hero Tools

Truto maps Amazon Connect resources into semantic, snake_case tools that Claude can easily understand. Here are 6 high-leverage tools specifically useful for managing contact center operations.

### list_all_amazon_connect_current_metric_data

This tool retrieves real-time metric data from your instance. You can query current agent statuses, queue wait times, and active contact volumes. 

*Usage Note:* The query schema requires specific metric definitions and grouping parameters. Claude can use this to monitor service level agreements (SLAs) in real time.

> "Pull the current metric data for the Tier 1 Support queue. Group the results by channel and tell me how many contacts are currently waiting in the queue."

### get_single_amazon_connect_evaluation_form_by_id

Describes an evaluation form used for QA scoring. If no version is specified, it returns the latest active version. 

*Usage Note:* LLMs need the structural context of the form (sections, questions, weighting) before they can accurately submit a post-call evaluation.

> "Retrieve the evaluation form definition for ID `ef-12345`. Outline the scoring criteria for the 'Customer Greeting' section."

### amazon_connect_contact_evaluations_submit

Submits a contact evaluation. This takes the answers (scores, notes, and remarks) and merges them with the target contact trace record. 

*Usage Note:* This is a `write` operation. Ensure Claude has extracted the correct question identifiers from the evaluation form before invoking this tool to prevent validation errors.

> "Submit a new evaluation for contact ID `c-98765` using evaluation form ID `ef-12345`. Score the agent 10/10 for the greeting, and add a note saying 'Excellent adherence to the script'."

### amazon_connect_contacts_search

Searches for contacts (Contact Trace Records or CTRs) within the instance using complex filtering criteria, such as date ranges, agent IDs, or initiation methods.

*Usage Note:* This operation is automatically paged using `limit` and `next_cursor`. Truto's schemas instruct the LLM to pass the cursor exactly as received to fetch subsequent pages.

> "Search for all voice contacts handled by agent ID `a-555` between yesterday and today where the call duration exceeded 30 minutes."

### update_a_amazon_connect_user_proficiency_by_id

Updates the routing proficiencies associated with a specific agent. This is used in skills-based routing to prioritize which agent receives which type of call.

*Usage Note:* Proficiencies dictate the order of operations in queue routing. Use this to dynamically scale up support for specific languages or technical skills during traffic spikes.

> "Update the proficiencies for user ID `u-999`. Add the 'Spanish Fluency' proficiency and set their proficiency level to 5."

### amazon_connect_routing_profile_queues_attach

Associates a new queue with an existing routing profile. 

*Usage Note:* Essential for dynamic workforce management. If a specific product line queue is overwhelmed, an AI agent can attach that queue to a secondary routing profile to increase the pool of available agents.

> "Attach the 'Overflow Support' queue to the 'General Customer Service' routing profile. Set the priority to 2 and the delay to 30 seconds."

To view the complete schema definitions and the full list of available operations, visit the [Amazon Connect integration page](https://truto.one/integrations/detail/amazonconnect).

## Workflows in Action

Giving Claude access to these tools allows you to build sophisticated, autonomous contact center management workflows. Here are two concrete examples of how an AI agent operates against Amazon Connect in the real world.

### Workflow 1: Automated Agent Quality Assurance (QA)

Instead of having QA managers manually listen to every call, you can instruct Claude to act as an autonomous QA auditor. 

> "Find the most recent completed voice contact for agent ID `a-789`. Retrieve the standard QA evaluation form (`ef-123`), review the transcript data, and submit an evaluation. Score them based on whether they verified the customer's identity."

**Execution Steps:**

1.  **`amazon_connect_contacts_search`**: Claude searches for contacts matching the agent ID with a status of completed, filtering for the `VOICE` channel.
2.  **`get_single_amazon_connect_evaluation_form_by_id`**: Claude retrieves the schema for the evaluation form to understand the required JSON payload for the answers (e.g., finding the specific Question ID for "Identity Verification").
3.  **`get_single_amazon_connect_contact_by_id`**: Claude pulls the detailed Contact Trace Record to access any attached transcripts or metadata.
4.  **`amazon_connect_contact_evaluations_submit`**: Claude constructs the payload, populating the required answers based on its analysis, and posts the evaluation back to Amazon Connect.

**The Result:** The Contact Center Manager sees a fully completed, objective QA evaluation attached to the call record in the Amazon Connect dashboard, saving hours of manual review time.

### Workflow 2: Dynamic Queue Congestion Management

Contact centers experience unexpected spikes. An AI agent can monitor real-time metrics and autonomously adjust routing to handle the load.

> "Check the current metric data for the 'Billing Escalations' queue. If the longest wait time is over 10 minutes, update the routing profile for the 'General Support' team to include the billing queue to help clear the backlog."

**Execution Steps:**

1.  **`list_all_amazon_connect_current_metric_data`**: Claude queries the real-time API, filtering for the Billing Escalations queue and requesting the `LONGEST_QUEUE_WAIT_TIME` metric.
2.  *Internal Logic*: Claude analyzes the response. If the value exceeds 600 seconds (10 minutes), it proceeds.
3.  **`amazon_connect_routing_profiles_search`**: Claude looks up the ID for the "General Support" routing profile.
4.  **`amazon_connect_routing_profile_queues_attach`**: Claude executes the tool to map the Billing Escalations queue to the General Support routing profile, immediately expanding the pool of agents who can take those calls.

```mermaid
sequenceDiagram
    participant Claude as Claude Desktop
    participant Truto as Truto MCP Server
    participant AWS as Amazon Connect

    Claude->>Truto: call list_all_amazon_connect_current_metric_data
    Truto->>AWS: GET /metrics/current
    AWS-->>Truto: { "Collections": [{ "Value": 850 }] }
    Truto-->>Claude: Wait time is 850 seconds
    
    Note over Claude: Wait time > 600s.<br>Initiate escalation.
    
    Claude->>Truto: call amazon_connect_routing_profile_queues_attach
    Truto->>AWS: POST /routing-profiles/{id}/queues
    AWS-->>Truto: 200 OK
    Truto-->>Claude: Queue successfully attached
```

**The Result:** The AI agent successfully averts an SLA breach by temporarily bridging two teams together. 

## Strategic Wrap-up

Connecting an AI agent to Amazon Connect unlocks incredible operational efficiency, but building that integration from scratch requires navigating complex ARNs, strict rate limits, and massive JSON schemas. 

By leveraging a managed MCP server via Truto, you bypass the infrastructure overhead. Truto normalizes the rate limit headers, manages the underlying AWS authentication, and dynamically generates documented tools that Claude can intuitively understand. This allows your engineering team to focus on designing intelligent agent prompts and workflows, rather than maintaining API middleware.

Start automating your contact center operations today by securely connecting your models directly to your data.
