Current documentation. Version and compatibility notes.

Agent telemetry HTTP API

AppPortal’s CLI hosts MCP locally over stdio. Its tools call the protected HTTP operations in the agent telemetry reference and OpenAPI JSON. Start with MCP setup to connect an agent and review its consent.

Use your deployment’s actual HTTP API origin. The configured MCP resource URI is the OAuth token audience and can include /mcp; it is not necessarily the base URL for these operation paths. The reference uses a reserved example host, not a credential destination.

Keep the investigation in scope

Select an authorized organization, app and environment, then keep the relevant platform, deployment target, version and time window when following evidence. Selectors narrow existing access; they do not grant membership or app permissions. Current connection consent, app capabilities and applicable MCP entitlements still apply. Dashboard cookies, SDK keys and other bearer audiences do not replace agent OAuth authorization.

Investigation Required OAuth scopes
Overview, usage, events, performance markers and funnels mcp:overview.read
Crash triage and occurrences mcp:crashes.read
Log list and detail mcp:logs.read
Session story Overview, logs and crashes read scopes together
Release/build lists mcp:releases.read
Release health/comparison Releases, overview and crashes read scopes together

App capabilities are checked separately. For example, session stories require analytics, logs and crash access; release health also requires release management access. The operation reference lists each boundary.

Investigate a crash and follow its session

Read GET /mcp/crash-triage, then use a returned bucket ID with GET /mcp/crash-occurrences. Triage returns a bounded priority subset, not a continuation over every bucket. Inspect captureComplete, requiresNarrowerFilter and candidateCountLowerBound before treating a ranking as complete.

Occurrences retain their handled-error or unhandled-crash classification and protected diagnostic context. Inspect the returned symbolication state; an uploaded symbol artifact alone does not establish a resolved stack. Keep IDs exactly as returned.

Use GET /mcp/session-story with a session ID to follow its ordered timeline. An optional focusTimestamp selects context around an event. Pages contain at most 50 entries; capture is bounded to 10,000 entries and the response to 128 KiB. Session summaries and timeline entries are protected projections, not raw retained payloads.

Use GET /mcp/logs for related records. Follow a returned log handle only when detailAvailable is true, using GET /mcp/logs/{logId}. Handles are protected and scoped; do not construct them from raw record IDs. Events and performance markers are available through GET /mcp/events and GET /mcp/rum. Preserve exact SDK, version and session selectors when narrowing a result.

Read counts and continue safely

returnedCount measures this response. totalCount can be null; read totalCountStatus rather than replacing an unknown count with zero. A complete bounded capture is not proof that all delayed telemetry has arrived. contentTruncated describes protected content separately from collection coverage. HTTP 200 can still carry incomplete or unavailable metrics; read the body status and coverage flags.

Continue only with a returned nextCursor, using the same connection subject, app, environment, filters and selection. Log, event and performance-marker continuations preserve their original query window. Session stories reject a changed capture instead of mixing snapshots. A cursor cannot retarget a query or be reused across collections. If requiresNarrowerFilter is true, narrow the investigation instead of inferring missing rows. Endpoint-specific bounds and windows are in the reference.

Use GET /mcp/usage-summary and /mcp/usage-breakdown for session and engagement metrics. Read counts with their units and denominators: sessions, observed active subjects and report occurrences are different populations. Empty data, incomplete coverage and dependency failure remain distinct.

Assess a release and an event flow

GET /mcp/release-summary and /mcp/builds list authorized release/build metadata. Build symbol availability is separate from a crash’s resolution result.

Use GET /mcp/release-health with a version, or /mcp/release-comparison with an explicit baselineVersion. Automatic previous-release selection can require a narrower or explicit baseline when the registry is incomplete or chronology is ambiguous. Inspect catalogComplete, requiresExplicitBaseline and metricCompleteness.

Adoption uses all sessions in the selected window as its denominator. Crash-free sessions and reports per session use the selected release’s sessions. Startup p95 is measured in milliseconds with an explicit sample count. Unsupported crash-free-user and ANR metrics return an unsupported state, not a zero value.

For an ordered funnel, send POST /mcp/funnel with 2–8 canonical event keys returned by eligible events and a conversionWindowHours from 1–720. The default is 24 hours and the body limit is 16 KiB. Unknown or duplicate fields are rejected. Step users, dropOffUsers, first-step and previous-step denominators describe observed active subjects reaching the ordered steps. Identity coverage gaps produce an unavailable result rather than invented zero conversions.

Add a note or update crash workflow

Notes and workflow changes require approved mcp:crashes.read and mcp:crashes.write consent, current crash workflow capability and an eligible actor. Send a stable Idempotency-Key with each intent; it is at most 200 UTF-16 code units after trimming. Reuse that key and original request when reconciling an uncertain outcome.

Send POST /mcp/crash-triage/{bucketId}/notes with a nonempty note, at most 4,000 UTF-16 code units after trimming. Its reply identifies the saved activity and bucket.

Send POST /mcp/crash-triage/{bucketId}/workflow with status: Investigating or status: Resolved. Assigning another collaborator or replacing an existing owner additionally requires mcp:crashes.assign and current assignment capability. An eligible actor can claim an unassigned bucket or keep their own assignment with crash-write consent. Read GET /mcp/crash-assignees for eligible collaborators and send an assigneeUserId, never a supplied display name. Read-only connections do not gain write consent when new tools appear.

A 409 requires reconciliation or a fresh read before another intent; do not overwrite a changed bucket automatically. A 423 management hold can reject a mutation while permitted reads remain available. For unsupported or unavailable provider responses, retain the status and reason instead of displaying successful zero metrics. For 429, follow the returned retry guidance.

Use the BI reference for metrics catalog queries and confirmed dashboard actions, and the Client delivery contract for SDK acknowledgements.

Read Markdown