Your next coffee is on us. → Tell us how Traceway is working for you. Share your experience →
Learn
Agent Write Access

Agent Write Access

Out of the box an AI agent can only read your telemetry. With write access it can also act on it: acknowledge a page, archive an issue once the fix shipped, snooze a noisy alert, write the post-mortem, set up alert rules, SLOs and on-call schedules, build a dashboard, and change what your browser apps collect.

Write access is off until you turn it on. Setting it up takes two steps:

What you doWhoHow often
1Turn on Agent Access in SettingsAn organization owner or adminOnce per organization
2Connect the write server to your agentEveryone who wants their agent to writeOnce per MCP client
orInstall the write CLI and skill in place of step 2, for an agent that does not load skills over MCPSame personOnce per machine

After that you ask your agent in plain language. The example prompts show what to type.

Step 1: Turn on Agent Access

Agent writes are refused for the whole organization until an owner or admin allows them.

  1. Open Settings at the bottom of the sidebar. Only owners and admins see it.
  2. Scroll to the Agent Access card.
  3. Switch on Allow agent writes.
The Settings page scrolled to the Agent Access card. The Allow agent writes switch is off, and the Agent activity table below it lists writes from the Write CLI that were refused with status 403

The change applies at once, and switching it off again stops every agent write immediately. Reading is not affected either way.

The same card is the audit log. Once the switch is on, Agent activity lists every write an agent makes in the organization: when, who, which credential (the write CLI, a named token, or a named MCP client), which project, the action, and the result. Writes that were refused because the switch was off are listed too. The log keeps 90 days.

The Agent Access card with Allow agent writes switched on, an 'Agent writes are on' warning, and an Agent activity table whose newest rows are writes by a token named incident-bot (four archive and unarchive calls with status 200 and one rejected request with status 400), above earlier writes that were refused with status 403

The switch does not give anyone new permissions. An agent acts as the person who logged it in, with that person's role, so the agent of a readonly member cannot archive issues or change alerts either. See Who can do what.

Step 2: Connect the write server

Every Traceway instance serves a write MCP server at /mcp/write. There is nothing to install: the server brings the write tools, the traceway-write skill and the guides it relies on, and the client logs in through your browser. It contains every read tool too, so an agent that writes needs only this server. You connect it like the read server, under its own name:

claude mcp add --transport http traceway-write https://cloud.tracewayapp.com/mcp/write

Then run /mcp in Claude Code, select traceway-write and choose Authenticate.

Replace cloud.tracewayapp.com with your own host if you self-host. On the first connection your browser opens a consent page that names the client and says it asks for read and write access:

The Authorize application page: Claude Code is requesting access to your Traceway account, with a 'Read and write access' warning, a note that every change is recorded in the organization activity log, and Approve and Deny buttons

Three things to know:

  • Step 1 still applies. The organization switch is checked for every write, whichever way the agent connects.
  • There is no selected project. Name the project in your prompt ("in the checkout-api project, ..."), or let the agent list your projects and ask.
  • /mcp is not enough. The plain /mcp server is read only and never offers a write tool, even to a write credential. Writes need /mcp/write.

In Claude Code the skill shows up as /traceway-write:traceway-write. If your agent does not list it, see the alternative below.

Alternative: the write CLI and skill

For an agent that does not load skills over MCP yet, give it the write CLI and the traceway-write skill as files. The skill then runs the CLI's commands.

The CLI can also run the write server locally, with its own login and selected project: claude mcp add traceway-write -- traceway-write mcp.

Install the write CLI

traceway-write is the command-line tool the agent runs. It is a separate program from the read-only traceway CLI, with its own login, so installing it is a deliberate choice. It includes every read command of traceway, so you do not need both.

Install it (macOS and Linux):

curl -fsSL https://cli.tracewayapp.com/install.sh | sh -s -- --write
traceway-write version

On Windows, or to install by hand, download traceway-write_<version>_<os>_<arch> from the releases page (opens in a new tab) and put the binary on your PATH.

Log in. Run this yourself in a terminal, not through the agent:

traceway-write login --url https://cloud.tracewayapp.com

Use your own URL for a self-hosted instance. The command prints a link and a short code. Open the link, check that the code matches, and approve. The page tells you that this login can change data:

The device login page: Traceway Write CLI is requesting read and write access to your Traceway account, with a 'This login can change data' warning, the code to compare with the terminal, and Approve and Deny buttons

Pick the project the agent works in:

traceway-write projects list
traceway-write projects use <project-id>

You stay logged in for up to 90 days of inactivity. traceway-write logout ends the session on the server.

Install the traceway-write skill

The CLI gives the agent the commands. The skill teaches it how to use them: how alert rules, channels, escalation policies and schedules fit together, which JSON each command takes, and the working rules it follows (look at the current configuration first, change only what you asked for, read the result back).

Works with Claude Code, Cursor, Codex and every other agent that reads SKILL.md:

npx skills add tracewayapp/skills --all

This installs all four Traceway skills. The write skill relies on two of the others: traceway to investigate before it changes anything, and traceway-learn to explain how a feature works. To install only the write skill, use --skill traceway-write in place of --all.

You invoke it as /traceway-write.

The skill changes nothing by itself. Without the CLI login above and the switch from step 1, every write is refused.

Check that it works

Ask for something small and harmless, such as marking an endpoint as expected-slow:

/traceway-write GET /api/reports/export is a CSV export and slow
by design. Mark it as expected-slow at 1500 ms.

Over MCP you can also type the request without the slash command. The agent tells you what it is about to change, makes the change, and reads it back. Then open Settings > Agent Access: the write is the first row of Agent activity.

If the agent reports that the write was refused, the message says which of the layers stopped it. See When a write is refused.

What an agent can change

AreaWhat the agent can do
Incident responseAcknowledge and resolve pages, archive and unarchive issues, snooze an alert rule or turn it off and on, run a monitor now, mark an endpoint as expected-slow
Post-mortemsCreate a post-mortem and edit its title, body, tags and incident link
AlertsCreate, change, delete and test notification channels (email, Slack, webhook, GitHub, Pushover, Telegram, on-call escalation), and create, change and delete alert rules of every type
SLOsCreate, change, pause and delete service level objectives, and add their burn-rate and budget alerts
On-call routingCreate and change teams and their members and projects, schedules and overrides, and escalation policies
Your own notificationsAdd and change your contact methods and your high and low urgency notification chains
DashboardsCreate or replace dashboards from JSON and apply them to the project, and issue an expiring share link
Browser and Flutter collectionCreate, change, reorder and delete the remote SDK config rules of a project (its Data Collection rules)
TokensCreate a read-only token for yourself, for example for a backend that embeds dashboards

Every read command and read tool is available too, so the same agent investigates first and then acts.

What an agent cannot change

Everything not listed above stays in the dashboard. That includes creating monitors and status pages, posting public incident updates, inviting, removing or changing members, project settings, revoking tokens, creating write tokens, and starting a targeted SDK capture. A new feature is never reachable by an agent until it is added to the agent allowlist on purpose.

Example prompts

The examples use /traceway-write, the name of the skill installed as files. Over the write server in Claude Code it is /traceway-write:traceway-write, with the Claude Code plugin /tw-write:traceway-write, and over MCP you can also type the request without a command. The skill also loads on its own when you ask an agent to change something in Traceway.

For every request the agent looks at the current state, tells you what it will change, applies it, and reads the result back. It changes only what you asked for.

During an incident

/traceway-write I'm on the checkout page that just fired.
Acknowledge it.

Stops the escalation for everyone. The page stays open until it is resolved.

/traceway-write The "Checkout p95 above 1 second" alert keeps
firing while we roll back. Snooze it for an hour.

The rule is muted and comes back on its own. Ask for "disable" only when it should stay off until someone turns it back on.

/traceway-write The fix for the checkout NullPointerException
shipped at 14:20 UTC. Check that nothing has occurred since,
then resolve the page and archive the issue.

The agent checks the issue's occurrences first, and only then resolves and archives.

/traceway-write Run the "Checkout health" monitor now and tell
me whether its incident resolved.

After an incident

/traceway-write Write a post-mortem for this morning's checkout
outage. Take the timeline from the monitor incident, the pages
and the slowest traces. Show me the draft before you save it,
and tag it checkout.

The agent gathers the facts with the read commands, drafts Summary, Impact, Timeline, Root cause, Resolution and Follow-up actions, and saves the post-mortem once you approve it.

/traceway-write GET /api/reports/export is slow by design. Mark
it as expected-slow a bit above its current p95, reason "CSV
export".

Percentiles do not change. Apdex and the impact score stop penalizing the endpoint up to that latency.

Alerts and SLOs

/traceway-write Create an email channel for ops@acme.dev and
alert it when p95 of POST /api/checkout stays above 1 second for
10 minutes.

Creates the channel, then the rule that sends to it. Saving a channel does not test it. Ask for a test only when you want one: a channel test sends a real notification, and testing an escalation channel opens a real page.

/traceway-write Create a 99.9% availability SLO over 30 days for
POST /api/checkout. Preview it first and tell me if we are
already missing the target. Then add a burn-rate alert that goes
to the Operations email channel.

The agent takes the endpoint name from your telemetry, previews the indicator over the last 24 hours, and saves the SLO and its alert. More in SLOs and Alerts.

On-call

/traceway-write Set up on-call for the Platform team: Maya and
Jonas rotate weekly, handoff Mondays at 09:00 Europe/Berlin.
Page whoever is on call first, and the whole team after 15
minutes without an acknowledgement.

Creates the team, the schedule and the escalation policy. Teams, schedules and policies need an owner or admin. More in On-Call.

/traceway-write I'm out this Friday. Add an override so Jonas
covers my on-call shift from 09:00 to 18:00.

Any member can create an override.

/traceway-write For high-urgency pages, notify me on Telegram
right away and by email 5 minutes later if I have not
acknowledged.

Changes your own notification chain. An agent can never configure another person's contact methods.

Dashboards

/traceway-write Look at the metrics this service records and
build a "Checkout" dashboard: request rate, p95 latency, error
rate, and queue depth per worker.

The agent discovers the recorded metric names and tags, writes the dashboard JSON, validates it and imports it into the selected project. More in Dashboards.

/traceway-write Give me a link to the Checkout dashboard showing
the last 7 days that expires in 3 days.

The link opens without a Traceway account until it expires and cannot be revoked on its own, so treat it like a credential. See Share and embed a dashboard.

Browser data collection

/traceway-write For version 2.4 of the web app, stream network
requests and console lines for 25% of browsers. Keep input
masking on.
/traceway-write Record a replay clip when a user gets "payment
failed" in the console.

Both add a remote SDK config rule. Browsers pick the change up at their next poll. Say which clients you mean: a rule without a condition applies to every visitor.

Running the commands yourself

The agent runs these commands for you, and you can run them too. traceway-write <command> --help lists every flag.

# Incident response
traceway-write pages ack <id>
traceway-write pages resolve <id> [--archive-issue]
traceway-write exceptions archive <hash>...
traceway-write exceptions unarchive <hash>...
traceway-write alerts snooze <id> --minutes 60      # 0 clears the snooze
traceway-write alerts disable <id>                  # and: alerts enable <id>
traceway-write monitors run <id>
traceway-write endpoints mark-slow "<endpoint>" --offset-ms 1500 --reason "<why>"
 
# Post-mortems
traceway-write post-mortems create --title "<title>" --content-file draft.md --tag <tag>
traceway-write post-mortems update <id> --content-file revised.md --expected-updated-at <updatedAt>
 
# Alert channels and rules
traceway-write channels create --file channel.json   # also: update <id>, delete <id>, test <id>
traceway-write alerts create --file rule.json        # also: update <id>, delete <id>
 
# SLOs
traceway-write slos create --file slo.json           # also: update <id>, delete <id>
 
# On-call routing (organization owners and admins)
traceway-write teams create --organization <org-id> --file team.json
traceway-write teams set-members <id> --organization <org-id> --file members.json
traceway-write teams set-projects <id> --organization <org-id> --file projects.json
traceway-write schedules create --organization <org-id> --file schedule.json
traceway-write schedules create-override <id> --organization <org-id> --file override.json
traceway-write escalation-policies create --organization <org-id> --file policy.json
 
# Your own notifications
traceway-write contact-methods create --file contact.json   # also: update, delete, test, verify, resend-code
traceway-write notification-chains replace --file chains.json
 
# Dashboards
traceway-write dashboards import --file dashboard.json [--mode create|upsert]
traceway-write dashboards embed <id> --timeframe 7d --expires-in-days 3
 
# Browser and Flutter collection
traceway-write opamp rules create --file rule.json
traceway-write opamp rules update <id> --file rule.json --expected-updated-at <updatedAt>
traceway-write opamp rules reorder <id> <id> ...
traceway-write opamp rules delete <id>
 
# Tokens
traceway-write tokens create --name "<name>" [--expires-in-days N]

teams, schedules and escalation-policies also have update <id> and delete <id>, and schedules has delete-override.

The MCP server offers the same actions as tools:

AreaWrite tools
Incident responseacknowledge_page, resolve_page, archive_exceptions, unarchive_exceptions, snooze_notification_rule, set_notification_rule_enabled, run_check, set_slow_endpoint
Post-mortemscreate_post_mortem, update_post_mortem
Alert channels and rulescreate_notification_channel, update_notification_channel, delete_notification_channel, test_notification_channel, create_notification_rule, update_notification_rule, delete_notification_rule
SLOscreate_slo, update_slo, delete_slo
On-call routingcreate_team, update_team, delete_team, set_team_members, set_team_projects, create_oncall_schedule, update_oncall_schedule, delete_oncall_schedule, create_oncall_override, delete_oncall_override, create_escalation_policy, update_escalation_policy, delete_escalation_policy
Your own notificationscreate_contact_method, update_contact_method, delete_contact_method, test_contact_method, verify_contact_method, resend_contact_method_code, set_user_notification_rules
Dashboardsimport_dashboards, create_dashboard_embed
Browser and Flutter collectioncreate_sdk_config_rule, update_sdk_config_rule, reorder_sdk_config_rules, delete_sdk_config_rule
Tokenscreate_read_token

Commands that take a document read it from --file as JSON. traceway-write <resource> validate <action> --file F checks a file offline before you send it. The JSON of each document is described in Alerts, SLOs, On-Call, Dashboards and the remote SDK config reference.

Confirmation. In a terminal every write prints what it is about to change and asks Continue? [y/N]. Outside a terminal, which is how an agent runs it, a write needs --yes or TRACEWAY_ASSUME_YES=1 and fails at once without it. Nothing ever hangs waiting for input.

A few behaviors worth knowing before you ask for them:

  • Dashboard upsert replaces the whole dashboard. --mode upsert matches by name across the organization, and the change shows up in every project the dashboard is applied to.
  • Updates send the complete document. Updating a channel, rule, schedule or SDK config rule replaces it, so the agent reads the current version first and keeps the fields you did not mention.
  • A share link is not a write. dashboards embed only reads a dashboard that already exists, so it works with Agent Access off and is not in the activity log. Your role still needs write access to the project.
  • Organization and personal changes still need a selected project. It decides which organization's switch applies and which project the activity log shows.

Who can do what

Three things have to agree before a write goes through. The server checks all three on every request, whichever client sent it.

CheckWhat it meansWho decides
The credential can writeA traceway-write login, a connection to /mcp/write, or a tww_ token. A traceway login, the /mcp server and twp_ tokens are read only, whatever your role.The person logging in
The organization allows itAllow agent writes is on in Settings > Agent Access.Organization owners and admins
Your role allows itThe agent acts as you. What the dashboard would refuse you, it refuses your agent.Your role and per-project overrides

What each role's agent can do:

RoleIts agent can
owner, adminEverything in What an agent can change
userEverything except teams, schedules and escalation policies. It can still create schedule overrides.
readonlyAcknowledge and resolve pages, create schedule overrides, and manage its own contact methods, notification chains and read tokens

A per-project role override counts the same way as in the dashboard: a member who is readonly in one project cannot write there, even with a write login.

Write tokens for automation

A script, a CI job or an agent running without a browser logs in with a token instead. In Account > Personal Access Tokens, click New Token and set Access to Read and write:

The New Token dialog on the Account page with Access set to Read and write, a 'Write tokens change shared data' warning, and Expiration set to 30 days

Write tokens start with tww_, so they stand out in logs and secret scanners, and they must expire within 90 days. Read tokens start with twp_ and are the default. The token is shown once.

Give it to the CLI without putting it on the command line:

printf '%s' "$TRACEWAY_WRITE_TOKEN" | \
  traceway-write login --url https://cloud.tracewayapp.com --token-stdin

Or to an MCP client:

# remote server
claude mcp add --transport http traceway-write https://cloud.tracewayapp.com/mcp/write \
  --header "Authorization: Bearer $TRACEWAY_WRITE_TOKEN"
 
# local server, no stored login: set these in the environment of `traceway-write mcp`
TRACEWAY_URL=https://cloud.tracewayapp.com
TRACEWAY_TOKEN=tww_...
TRACEWAY_PROJECT=<project-id>   # optional default project

Storing a read token (twp_) in traceway-write does not make it writable: the server refuses its writes.

An agent with write access can create read tokens for you (traceway-write tokens create), for example for a backend that embeds dashboards. It cannot create write tokens, so write access never outlives the credential that has it. A read token created this way does not expire unless you ask for an expiry. Revoke it in Account > Personal Access Tokens.

When a write is refused

A refusal is a decision, not an error to work around. The agent reports the message and stops.

MessageCauseFix
Agent write access is turned off for this organizationStep 1 is not done for the organization that owns the projectAn owner or admin switches on Allow agent writes
This credential is read-onlyThe agent is using a traceway login, a twp_ token, or a read login stored in traceway-writeLog in with traceway-write login, or create a Read and write token
Your role in this project is read-onlyYour own role cannot make this changeAn owner or admin changes your role in Settings > Team Members
This endpoint is not available to personal access tokens, the CLI, or MCP clientsThe action is not open to agentsDo it in the dashboard
write_requiredA write command was run in the read-only traceway CLIUse traceway-write
refusing to perform mutation without confirmationA write ran outside a terminal without consentPass --yes
403 from /mcp/write when connectingThe MCP client holds a read credentialReconnect and approve read and write access
No write tools in the MCP clientThe client is connected to /mcpAdd /mcp/write

Upgrading from a version without agent scopes

  • Existing personal access tokens are read only, and existing CLI and MCP logins keep working as read only. Dashboard sessions are unaffected.
  • Tokens, CLI logins and MCP clients only reach the agent routes: the reads, plus the writes on this page. A script that used a personal access token for anything else, such as creating projects or managing members, now gets 403 and has to move to the dashboard.
  • traceway exceptions archive and unarchive moved to traceway-write. The read-only CLI answers them with write_required.
  • Password logins from the CLI receive a token scoped like the CLI that asked for it, not a dashboard session: a 15-minute access token the CLI refreshes on its own, revoked by logout.