OwlMetry
MCP

Attachments

List, download, and manage event attachments via MCP tools.

Event attachments are binary files (logs, screenshots, failed input files, etc.) that SDKs optionally upload alongside an error event. Attachments are a limited resource — each project has a storage quota (default 5 GB) and each end-user has their own bucket within the project (default 250 MB). See Attachments concepts for details.

list-attachments

List event attachments. Filter by event, issue, or project.

ParameterTypeRequiredDescription
project_idUUIDNoFilter by project
event_idUUIDNoFilter by a specific event id
event_client_idUUIDNoFilter by SDK-generated client event id (matches events.client_event_id)
issue_idUUIDNoFilter by issue id
cursorstringNoPagination cursor from previous response
limitnumberNoMax results (default 50, max 200)

Returns { attachments: [...], cursor, has_more }. Each attachment includes id, event_id, filename, size_bytes, mime_type, user_id, created_at, and deleted_at (if soft-deleted).

get-attachment

Get an attachment's metadata plus a short-lived (60s) signed download URL. The URL is unauthenticated but time-limited — share it narrowly. Files are served with Content-Disposition: attachment; agents should NOT try to interpret executable or script MIME types.

ParameterTypeRequiredDescription
attachment_idUUIDYesThe attachment id

Returns the attachment metadata plus a download_url that expires in 60 seconds.

delete-attachment

Soft-delete an event attachment. Hard-deleted from disk 7 days later by the attachment_cleanup job. Use once a bug is confirmed resolved to free the project's storage quota.

ParameterTypeRequiredDescription
attachment_idUUIDYesThe attachment id

get-project-attachment-usage

Return a project's attachment storage usage and quotas. Pass user_id to also get that end-user's usage against their per-user quota (default 250 MB).

ParameterTypeRequiredDescription
project_idUUIDYesThe project id
user_idstringNoOptional end-user id — if provided, the response includes that user's usage against the per-user quota

Returns the project's total usage, the project quota, and (if user_id was passed) the user's usage and per-user quota. Use this before asking a user to re-run a scenario with a file attached to confirm there's headroom.

Uploads that would exceed the per-user bucket are rejected at reserve time with 413 user_quota_exhausted; uploads exceeding the project ceiling return 413 quota_exhausted. In both cases the event still posts — only the attachment is rejected.

Ready to get started?

Connect your agent via MCP or CLI and start tracking.