> Documentation index: https://developers.home.google.com/mcp/developer/llms.txt

## Prerequisites

Through the Home Developer MCP server, you can access user feedback
integration diagnostics. To retrieve this data, you must meet the following
requirements:

- You must have access to a [Google Cloud](https://console.cloud.google.com) project with the Home Developers API (`homedevelopers.googleapis.com`) enabled.
- You must authenticate your MCP client using **OAuth 2.0** or **Application
  Default Credentials (ADC)** signed in with your authorized Google Account for viewing the diagnostics for your integration projects. See [OAuth
  registration and setup](https://developers.home.google.com/mcp/developer#oauth-setup) for configuration instructions.

## Integration diagnostics

For Cloud-to-cloud smart home integrations, the Home Developer MCP
server provides user feedback integration diagnostics. It correlates end-user
feedback reports with Cloud-to-cloud logs.

The server provides four specialized diagnostic tools:

- [`query_user_feedback_anomaly_distribution`](https://developers.home.google.com/reference/home-developers/mcp/tools_list/query_user_feedback_anomaly_distribution): Summarizes the distribution of symptom types across user feedback sample issues for an integration.
- [`query_user_feedback_symptom_trend`](https://developers.home.google.com/reference/home-developers/mcp/tools_list/query_user_feedback_symptom_trend): Retrieves daily trend counts grouped by symptom over a specified time window.
- [`fetch_user_feedback_sample_issues`](https://developers.home.google.com/reference/home-developers/mcp/tools_list/fetch_user_feedback_sample_issues): Retrieves sample issue summaries and affected device records without verbose logs.
- [`batch_fetch_user_feedback_sample_issue_logs`](https://developers.home.google.com/reference/home-developers/mcp/tools_list/batch_fetch_user_feedback_sample_issue_logs): Fetches detailed Cloud-to-cloud execution logs and Home Graph state histories for specific sample issue IDs.

These tools identify your integration using an `agentId`, which is your
Google Cloud project ID (the same definition in
[`action.devices.SYNC`](https://developers.home.google.com/cloud-to-cloud/intents/sync.md.txt)). Calling user
feedback integration diagnostic tools requires authenticating your client with
OAuth 2.0 or ADC using an account authorized for that Google Cloud
project. See [OAuth registration and setup](https://developers.home.google.com/mcp/developer.md.txt#oauth-setup) for
configuration instructions.

> [!NOTE]
> **Note:** Because user feedback submissions fluctuate dynamically based on real-world end-user activity and cannot be controlled, a specific volume of diagnostic data or sample issues cannot be guaranteed for any given integration or date range.

## Diagnostic investigation workflow example

AI assistants connected to the Home Developer MCP server can orchestrate an
end-to-end troubleshooting workflow:

1. Identify top integration pain points:
   Ask your AI assistant to check the symptom anomaly distribution for your
   integration over a specific date range. For example:

       Check the user feedback anomaly distribution for agent YOUR_AGENT_ID
       between 2026-09-01 and 2026-09-20.

   The assistant calls `query_user_feedback_anomaly_distribution` to reveal
   which symptom type accounts for the highest share of user complaints.
2. Evaluate historical trends:
   Inspect whether a symptom represents an acute regression or an ongoing
   pattern by querying daily counts:

       Show the daily trend for agent YOUR_AGENT_ID
       over the last 14 days.

   The assistant calls `query_user_feedback_symptom_trend` to plot or summarize
   daily counts and detect spikes following recent updates.
3. Inspect affected sample issues:
   Fetch sample issue summaries to identify affected devices:

       Fetch recent sample issues for agent YOUR_AGENT_ID
       over the last 14 days.

   The assistant calls `fetch_user_feedback_sample_issues` to retrieve sample
   records.
4. Batch fetch diagnostic logs:
   Retrieve complete logs for the identified sample:

       Retrieve the diagnostic logs for sample IDs SAMPLE_ID.

   The assistant calls `batch_fetch_user_feedback_sample_issue_logs` to
   further inspect the logs for samples listed in the previous step.

## Query user feedback integration diagnostic tools

The example `curl` commands that follow can be used to test user feedback
integration diagnostic tools.

Enter your values in the following fields to populate the commands:

    Enter the MCP protocol version (for example, 2026-07-28): MCP_PROTOCOL_VERSION
    Enter your Google Cloud project ID: YOUR_PROJECT_ID
    Enter your agent ID: YOUR_AGENT_ID
    Enter the sample ID: SAMPLE_ID

### Anomaly distribution

```bash
VALID_TOKEN=$(gcloud auth application-default print-access-token)
curl --location "https://homedevelopers.googleapis.com/mcp" \
--header 'Content-Type: application/json' \
--header 'Accept: application/json, text/event-stream' \
--header "Authorization: Bearer ${VALID_TOKEN}" \
--header "X-Goog-User-Project: YOUR_PROJECT_ID" \
--header 'MCP-Protocol-Version: MCP_PROTOCOL_VERSION' \
--header 'Mcp-Method: tools/call' \
--header 'Mcp-Name: query_user_feedback_anomaly_distribution' \
--data '{
    "jsonrpc": "2.0",
    "method": "tools/call",
    "id": 3,
    "params": {
        "name": "query_user_feedback_anomaly_distribution",
        "arguments": {
            "agentId": "YOUR_AGENT_ID",
            "firstDate": "2026-09-01",
            "lastDate": "2026-09-20"
        },
        "_meta": {
            "io.modelcontextprotocol/protocolVersion": "MCP_PROTOCOL_VERSION"
        }
    }
}'
```

### Symptom trend

```bash
VALID_TOKEN=$(gcloud auth application-default print-access-token)
curl --location "https://homedevelopers.googleapis.com/mcp" \
--header 'Content-Type: application/json' \
--header 'Accept: application/json, text/event-stream' \
--header "Authorization: Bearer ${VALID_TOKEN}" \
--header "X-Goog-User-Project: YOUR_PROJECT_ID" \
--header 'MCP-Protocol-Version: MCP_PROTOCOL_VERSION' \
--header 'Mcp-Method: tools/call' \
--header 'Mcp-Name: query_user_feedback_symptom_trend' \
--data '{
    "jsonrpc": "2.0",
    "method": "tools/call",
    "id": 4,
    "params": {
        "name": "query_user_feedback_symptom_trend",
        "arguments": {
            "agentId": "YOUR_AGENT_ID",
            "firstDate": "2026-09-01",
            "lastDate": "2026-09-20"
        },
        "_meta": {
            "io.modelcontextprotocol/protocolVersion": "MCP_PROTOCOL_VERSION"
        }
    }
}'
```

### Fetch sample issues

```bash
VALID_TOKEN=$(gcloud auth application-default print-access-token)
curl --location "https://homedevelopers.googleapis.com/mcp" \
--header 'Content-Type: application/json' \
--header 'Accept: application/json, text/event-stream' \
--header "Authorization: Bearer ${VALID_TOKEN}" \
--header "X-Goog-User-Project: YOUR_PROJECT_ID" \
--header 'MCP-Protocol-Version: MCP_PROTOCOL_VERSION' \
--header 'Mcp-Method: tools/call' \
--header 'Mcp-Name: fetch_user_feedback_sample_issues' \
--data '{
    "jsonrpc": "2.0",
    "method": "tools/call",
    "id": 5,
    "params": {
        "name": "fetch_user_feedback_sample_issues",
        "arguments": {
            "agentId": "YOUR_AGENT_ID",
            "firstDate": "2026-09-01",
            "lastDate": "2026-09-20"
        },
        "_meta": {
            "io.modelcontextprotocol/protocolVersion": "MCP_PROTOCOL_VERSION"
        }
    }
}'
```

### Batch fetch issue logs

```bash
VALID_TOKEN=$(gcloud auth application-default print-access-token)
curl --location "https://homedevelopers.googleapis.com/mcp" \
--header 'Content-Type: application/json' \
--header 'Accept: application/json, text/event-stream' \
--header "Authorization: Bearer ${VALID_TOKEN}" \
--header "X-Goog-User-Project: YOUR_PROJECT_ID" \
--header 'MCP-Protocol-Version: MCP_PROTOCOL_VERSION' \
--header 'Mcp-Method: tools/call' \
--header 'Mcp-Name: batch_fetch_user_feedback_sample_issue_logs' \
--data '{
    "jsonrpc": "2.0",
    "method": "tools/call",
    "id": 6,
    "params": {
        "name": "batch_fetch_user_feedback_sample_issue_logs",
        "arguments": {
            "sampleIds": ["SAMPLE_ID"]
        },
        "_meta": {
            "io.modelcontextprotocol/protocolVersion": "MCP_PROTOCOL_VERSION"
        }
    }
}'
```

## Send feedback

Share your experience with the user feedback integration diagnostic tools to
help improve diagnostic accuracy and log insights:

[Send diagnostic tool feedback](https://forms.gle/7u3XAJZ1XTM1EZbV8)