All tools

Query a saved chart

Returns the computed results of a saved event segmentation, sessions, funnel or retention chart for a time range.

View on GitHub
Updated Sep 26, 2026Available asMCPCLIAPI

Description

Without a time range the query uses the chart's saved range, or the last 30 days. Other chart types return `422` with `unsupported_chart_type`. On the CLI and the API the token needs the `analytics:read` scope.

query-chart.md

Query a saved chart

Returns the computed results of a saved event segmentation, sessions, funnel or retention chart for a time range.

Without a time range the query uses the chart's saved range, or the last 30 days. Other chart types return 422 with unsupported_chart_type. On the CLI and the API the token needs the analytics:read scope.

Set up

Use the first option your agent supports.

MCP (official, remote)

Add this server to your agent's MCP settings, then sign in when asked.

{ "mcpServers": { "amplitude": { "url": "https://mcp.amplitude.com/mcp" } } }

Call the MCP tool get_amplitude_charts.

Server URL: https://mcp.amplitude.com/mcp

CLI (official)

Install the command, then confirm it runs.

npm install -g @amplitude/developer-cli
amp --version

Run amp charts query.

API (official)

Before doing anything else, make one read-only call to confirm access.

Rules

  • Ask the user before anything that sends messages, costs money, or changes data.
  • Never print API keys.

Built from these files in the repository

The layout and the rules come from lib/catalog/render-markdown.ts, the set-up wording from lib/catalog/render-access.ts.

Ways in

RouteSourceCallRequiredDocs
MCPOfficial · remoteget_amplitude_chartsOAuthDocs
CLIOfficialamp charts queryOAuthDocs
APIOfficialPOST /v1/projects/{project_id}/charts/{chart_id}/queryOAuthDocs

Workflows using Query a saved chart

No workflows yet
No published workflow uses Query a saved chart yet.