A custom Copilot cloud agent is intended to diagnose production errors using Sentry context. The agent can read and edit repository files, but it fails when it tries to retrieve the Sentry event referenced in the issue. Evaluate the following statements. 1. The Sentry server is configured, but its tool is unavailable to the custom agent. 2. The best root cause is a reasoning error rather than a tool-permission issue. 3. The guessed fix should be treated as lower confidence because required external context was unavailable.
---
name: prod-error-fixer
description: Diagnoses production exceptions and proposes minimal fixes.
tools: ["read", "search", "edit"]
mcp-servers:
sentry:
type: local
command: npx
args: ["@sentry/mcp-server@latest"]
env:
SENTRY_ACCESS_TOKEN: ${{ secrets.COPILOT_MCP_SENTRY_ACCESS_TOKEN }}
---
When assigned to an issue, inspect the Sentry event ID in the issue body,
identify the failing code path, and propose the smallest safe fix.
Session result
Agent started successfully
Read issue body: SENTRY-EVENT-99482
Searched repository for matching handler names
Could not call sentry/get-event
Available tools: read, search, edit
Draft PR created with a guessed null-check fixChoose an answer
Tap an option to check your answer.
Correct answer: 1=Yes 2=No 3=Yes.
Why this is the answer
Statement 1 is correct because the mcp-servers configuration block explicitly defines a Sentry server, indicating it's configured. However, the tools array for the agent only lists "read", "search", and "edit", meaning the Sentry tool is not made available to the agent, hence "Could not call sentry/get-event". Statement 2 is incorrect. The agent's log clearly states "Could not call sentry/get-event" and then lists "Available tools: read, search, edit". This directly indicates a tool-permission issue (the Sentry tool is not available), not a reasoning error. If it were a reasoning error, it might have tried to call the tool but failed for other reasons, or not attempted to call it at all. Statement 3 is correct. Since the agent failed to retrieve the Sentry event, it lacked crucial external context for diagnosing the error. The subsequent "guessed null-check fix" is therefore based on incomplete information, making its confidence inherently lower.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed