---
name: wagglet-mcp
description: Use when connecting an agent to Wagglet MCP to search, inspect, analyze, or change authorized tickets, Drafts, Scheduled tasks and Recurring Templates, Stories, Notes, comments, attachments, and lifecycle state.
---

# Wagglet MCP Workspace

Connect to Wagglet's MCP Server with a personal MCP Token:

```text
https://wagglet.com/api/mcp
Authorization: Bearer tkp_mcp_…
```

The Team must enable MCP Access before a person can create an MCP Connection. The token acts as its owner in one Team, and every request rechecks the connection, Team setting, membership, roles, and permissions.

Inside a Wagglet agent run you are already connected: use the `wagglet_data` server the Runner provides. It acts as the person the run works for and lasts as long as the run; never configure a personal token for an agent. Tools that accept or reject deliveries or grant points are not available there.

## Workflow

1. Call `whoami` first. Use its current identity and permissions, plus the current `tools/list` catalog and schemas, as authority.
2. Discover identifiers with `search_tickets`, `list_stories`, and `list_people`. Continue through cursors until the requested population is complete. Each `list_people` person includes `responsibilities`: an ordered array of plain job-description sentences about what this person is expected to own in the current team (`[]` when none are recorded). Use these alongside the facts when writing incident reports or other reports. They are workspace context, separate from skill tags and roles. MCP only reads them; permitted people edit them on the website's Responsibilities tab.
3. Read a full record with `get_ticket` or `get_story` before changing it. `get_ticket` returns the current authorized collaborator identities; use `list_people` to resolve eligible teammates. Keep the record's `revision`, `detailsRevision`, `orderRevision`, and item revisions for any subsequent mutation.
4. Use `list_people` for current teammate IDs. `create_draft` and `update_ticket` accept `preferredAssigneeId` and `humanOnly`. A lone named assignee replaces the allowed people/skills with that one teammate while preserving exclusions; `null` clears the reservation, and omission preserves it. Assignment does not claim a task or grant private Draft access. An Agent-lane task must be moved to the Human lane in the editor first. Live reassignment can return an away-person `CONFIRMATION_REQUIRED`; show its warning and retry with `acknowledgeAway: true` only after approval. Set human instructions before enabling Human only (or together when creating/converting a normal draft). Human-only tasks read and edit like any other; hands-on stays 5, mode changes revoke machine tokens, and only a person can deliver one, in the UI.
5. Use `update_ticket` for the content and metadata fields in its schema. Do not infer that every editor control belongs there: relationships, access, files, and lifecycle use explicit tools when their authority or side effects differ. Collaborators are an access-control list: `create_draft` can set the initial list, while creator-only `set_ticket_collaborators` replaces the complete list on an existing ticket. Preserve everyone who should remain. If removal returns `CONFIRMATION_REQUIRED`, show the exact named removals and echo its server-issued `confirmationToken` only after approval.
6. Use `schedule_ticket` to move an owned, publish-ready Draft or unclaimed Open ticket to the Scheduled lane, or to change what posts a Scheduled task. Supply its current revision and one `trigger`: `BY_HAND` (a template, spawned by hand), `REPEATING` (a weekly or interval-days schedule with generation options, Active or Paused), `ON_DATE` (a company day and whole hour), or `TASK_STATE` (another board task reaching `CLAIMED`, `DELIVERED` or `DONE`). By hand and Repeating rows spawn copies and stay on the lane; On a date and Task-state rows post themselves once and leave it. A follow-up on an unfinished parent may only wait for that parent. Find Scheduled tasks with `search_tickets` using `publication: "scheduled"`; `get_ticket` returns the trigger as `scheduled` and, for Repeating rows, the structured schedule.
7. Use `spawn_scheduled_draft` to copy a Scheduled task into your private Drafts to edit and publish by hand, and `post_scheduled_now` to post one you created without waiting. `create_recurring_template`, `update_recurring_schedule` and `set_recurring_template_active` still manage the Repeating trigger: giving a Scheduled task a schedule makes it Repeating, and only a Repeating row can be activated. Each successful mutation increments the ticket revision. Scheduled Occurrences are ordinary published tickets whose `get_ticket` result carries recurring provenance; a self-posted task keeps its own number and files.
8. Use the explicit lifecycle tool matching the intended transition. There is no generic status override. A draft out for write-up (`DRAFT_OPEN`, `DRAFT_CLAIMED`, `DRAFT_DELIVERED`) moves through the same tools: its named writer uses `claim_ticket`, `release_ticket` and `deliver_ticket`; whoever asked for it, or its owner, uses `reject_delivery`, `cancel_write_up`, or `accept_ticket` with `publish: true` (Accept & publish) or `publish: false` (back to the drafts list). Write-ups create no attempt and pay no score; `get_ticket` returns the writer as `writeUp` and the brief as `draftingInfo`.
9. Give each intended mutation a fresh `operationId`. Reuse that id only when retrying the same mutation after an uncertain network result; the saved result is returned without repeating the action.
10. On `STALE_REVISION`, read the target again, reconcile the request with its current state, and submit a new operation. On `CONFIRMATION_REQUIRED`, show the impact to the user and resubmit the tool's required confirmation fields against the same current revision only after approval.
11. Read attachment bytes through `read_attachment`. It reauthorizes every read; bounded text and images may return inline, while other files receive a short-lived URL.
12. Attach a local file to a ticket with `upload_ticket_attachment`, on the same two-step contract as note uploads: the tool returns a five-minute `uploadUrl`, and a raw-byte PUT to it saves and attaches the file. Owners, collaborators and the current runner may attach; a private draft is not found for anyone else. Pass `source` as `BRIEF` for material that belongs to the task statement or `DISCUSSION` for files about the work (the default follows the ticket: `BRIEF` on a draft, `DISCUSSION` once published). Verify with `get_ticket`. Ordinary attachments are limited to 20 MiB each and 50 files per ticket.

13. Capture an idea with `create_request` (`projectId`, one-line `text`, `operationId`). It starts private in My Requests. Use `list_requests` / `search_requests` with `view: "my_requests"`, `"my_published"`, `"public_requests"`, `"accepted"` or explicit `"archived"`, plus optional `projectId`, `query`, `cursor` and `limit`. Continue with `nextCursor`. `get_request` returns the authorized Details, files, comments, outcome, available actions and an opaque string `revision`; copy it exactly into `expectedRevision` for request mutations. Ticket revisions remain numbers.
14. Enrich the request with `update_request` (`text` and/or `details`). To add a file, call `upload_request_attachment` with `requestId`, `operationId`, `filename`, `contentType`, byte `size` and `sha256`, then PUT the raw bytes to its five-minute `uploadUrl`. Preparation alone attaches nothing. Retry the same bytes and operation ID, renew expired URLs with the same inputs, and verify with `get_request`; `read_attachment` reads authorized file bytes. Request uploads use the same 20 MiB / 50-file limits as tickets and need no revision.
15. `publish_request` moves the idea into Public Requests and the owner's My Published; `unpublish_request` returns it to private My Requests. On a published request, use `create_request_comment`, `edit_request_comment` and `delete_request_comment` with the current request revision; edits/deletes require your own `commentId` and the corresponding comment permission. Reviewers use `promote_request_to_draft`, `include_request_in_ticket` (explicit `ticketId` and `addCollaborator`), or `reject_request` with a reason. Owners with permission may promote their own private request. `delete_request` removes an owned request only after its signed confirmation flow. If it is still a rejected private note, removal archives the same request ID with its text, Details, rejection context, retained discussion/reactions and files. The receipt reports `outcome: "archived"`; ordinary deletable notes and published requests still report `outcome: "deleted"`. Rejection alone returns a readable note that can still be reformulated or republished before removal. Private requests never become visible to another person through these tools.
16. Follow the complete handoff: create request → add Details/files → publish → promote → read the returned Draft `ticketId` with `get_ticket` → hand it to its writer with `delegate_draft` (promotion already sent the write-up to you, so this changes the writer) → writer `claim_ticket` → write up with `update_ticket` → `deliver_ticket`. Promotion preserves the one-liner as the title, Details as `draftingInfo`, files and request provenance, including the UI's discussion handling. `delegate_draft` with `mode: "WRITE_UP"` and a teammate `writerId` moves the Draft to `DRAFT_OPEN`; `get_ticket.writeUp` names the live writer and asked-by person. Discover person IDs with `list_people`, or managed-agent targets and models with `list_write_up_agents` for that Draft, then pass `agentId` (optional `modelRef`/`reasoning`). A managed agent's existing Runner allocator claims its write-up. `mode: "GIVE_OWNERSHIP"` takes a person `writerId` and keeps the former owner as a collaborator. Delegation takes the ticket's numeric `expectedRevision` and an `operationId`. Ownership transfer, writer replacement, destructive discussion loss and access-granting inclusion may require a revision-bound `confirmationToken`; show the exact impact and retry only after approval. Existing `cancel_write_up` and the write-up review tools continue to apply.
17. Dependencies say what they hold back and until when. Each entry in `get_ticket.dependencies` has a `gate` — `EXECUTION` (claiming and completing wait) or `DRAFTING` (the write-up and publishing wait) — a `trigger` that releases it — `ACCEPTED` or `PUBLISHED` — and `satisfied`. `blocked` means a claim hold is unmet; `draftingBlocked` means a drafting hold is, and `publish_draft` is refused until it is met. Replace the list with `set_ticket_dependencies` and `dependencies: [{ ticketId, gate, trigger }]`, giving every entry you want to keep; the same prerequisite may hold both gates, and drafting holds apply to drafts only. The older `dependencyIds` form rewrites only claim holds. Holding drafting back on a draft that is out for write-up takes the write-up back (it returns once the hold is met); once the write-up is claimed, cancel it first.

## Approved human-skill rollout

For the requester-approved #2362 rollout, a current Rockbite system Team Admin
can ask the agent to run the cleanup and dated checked assignments through
their personal MCP connection. No additional admin page or Railway login is
required. Task-bound agent and meeting-prep connections cannot run this rollout.

Use `preview_human_skill_rollout` with `step: "CLEANUP"`. It is read-only and
returns `ready`, `alreadyApplied`, aggregate assignment counts and a fingerprint.
If the user has authorized this rollout and `ready` is true, call
`apply_human_skill_rollout_step` with the same step, exact fingerprint and a
fresh `operationId`. Then preview `step: "ASSIGNMENTS"` and apply that step
with its own fresh fingerprint and operation ID. The first step preserves
current task access; the second grants the explicitly approved checked cells,
preserving unchecked and unrelated existing skills.

Never force a blocked preview or substitute a guessed fingerprint. A refusal
requires a routing/privacy or recipient decision and makes no partial changes.
On an uncertain response, retry identical inputs and the same operation ID;
completed receipts are idempotent. Revoked connections and admin roles are
checked again. Report counts, never private task inventory or identities.
Merging/deploying only installs this capability; it does not run the rollout
or synchronize future document edits automatically.

## Topic tags and publication

Use `tags` in `create_draft` and `update_ticket` for the ordinary Tags in Task
profile. Omission preserves them; `[]` clears them. The UI's normalization
trims and collapses whitespace and deduplicates without case sensitivity,
keeping the first spelling (20 tags, 50 characters each). `get_ticket.tags`
and `search_tickets` results return those labels. Search with `topicTags` to
match any topic label. Eligibility is separate: `claimAllowUserIds` names allowed people,
`claimTags` holds human skill routing tags, and `claimTagsMatch` is `ANY` or
`ALL` between skills only. Named people are OR alternatives to the skill
condition. `claimDenyUserIds` and `claimDenyTags` override every allowance.
These fields work in `create_draft` and `update_ticket` and are returned by
`get_ticket`. Resolve IDs with `list_people` and routing tags with
`get_drafting_options.humanClaimSkills`, the full enabled catalogue including
unheld skills. Newly required skills nobody holds are rejected by the editor.
A person AND skill condition is unsupported: preserve the setting and ask one
focused question instead of broadening it. Omitted fields retain existing rules;
`[]` explicitly clears a list. Selecting eligible people does not grant access.

Use `get_drafting_options.scoring` for exact point bounds and difficulty values.
An explicit valid number writes that exact `workValue`; unqualified points mean
running points (whole numbers 1–1,000; 21–1,000 are typed custom amounts).
Drafting points remain 1–100; running presets 1/3/9/15/20 and drafting presets
2/4/6/8/10 are unchanged. Never choose or change `draftingWorkValue`, even on an explicit owner request.
Omit it from saves. New drafts start at 2 drafting points. Only a human can
change drafting points manually in the editor. Preserve unmentioned choices, give later reviewer
corrections precedence, and reread saved settings before handing the draft back. The old `search_tickets.tags` still filters eligibility for compatibility;
prefer `claimTags` for that filter. Supplied filters combine with AND.

`unpublish_ticket` follows the website's withdrawal transition. An owner or
collaborator, or an authorized Admin, may withdraw a published ticket:
`OPEN`, `CLAIMED` and `DELIVERED` become `DRAFT` with `published: false`;
`DONE` keeps `DONE` and becomes unpublished. Withdrawing claimed/delivered work
releases the runner, revokes live delivery/read tokens and ends the active
attempt; delivered attempts are reopened and their delivery entries deprecated.
It records history and notifies a released runner. The first-publication stamp
and awarded points remain. Drafts (including write-ups) and already-unpublished
tickets are refused. Use the current revision and an operation ID. Read back
before republishing: `publish_draft` restores a withdrawn Draft to `OPEN`;
a withdrawn finished ticket remains `DONE`.

Exact `estimateMinutes` values survive unrelated editor saves, including custom
values between slider presets. Moving the estimate slider deliberately selects
a new preset.
## Archived requests

Use `list_requests` or `search_requests` with `view: "archived"` to investigate
removed rejected requests you own in the connection's Team. For example:

```json
{"view":"archived","projectId":"<project-id>","query":"<text>","limit":25}
```

Pass `nextCursor` back as `cursor` until it is null. All other views, including
the default, omit archives. Use `get_request` with the original `requestId` for
`status` / `outcome.status: "ARCHIVED"`, `archivedAt`, `archivedById` and
`archivedBy`, plus the original text, Details, creation time, rejection reason,
reviewer/time, and ordered retained comments with authors, timestamps and
reactions. `read_attachment` continues reading retained files, including draft
history files saved by unpromotion.

Archives are read-only: no edit, publish, promotion, comment, file change,
restore or ordinary permanent deletion. Retry an uncertain removal with its
same operation ID and exact inputs; stale revisions still require a reread.
Discovery, reads and files recheck live MCP authorization and the owner's
`requests.manage.own` content permission. Reviewer authority or knowing an ID
does not reveal another person's archive or related private Drafts. Discussion
previously discarded during promotion stays discarded; archiving does not
recover deleted content.

## Stories

A Story groups the tasks of one piece of work, and its items can be other
Stories. `get_story` returns each item with its linked task or child Story.

Open the returned `url` from `list_stories` or `get_story`, or `data.url` from
Story mutations such as create, update, contributor changes and archive. These
canonical `/stories/{storyNumber}` browser links survive reload; API calls still
use the opaque Story ID. The browser requires sign-in and applies the current
Team and private-task visibility rules.

- `create_story` makes an empty plan. Pass `parentStoryId` to add it to a Story
  as its next item, or `parentItem` (`itemId`, `expectedItemRevision`) to turn
  one of that Story's planned rows into this child Story in place. Pass
  `requestId` to promote a request into the Story: the request must be one you
  may promote, in the same project, and it leaves the request lists. Its
  requester follows it through the Story (`get_request` returns
  `outcome.story` with its task count); archiving the Story with every task
  done finishes it and pays their origin point once.
- `list_story_templates` shows the team's templates, their `spawnable` state,
  each row's `rowKind` (`DRAFT_ROW` or `TASK_TEMPLATE`), `{title}` title pattern,
  optional settings, suggested drafter and dependency links.
- `create_story_from_template` makes the Story and one task per kept row,
  titled with the Story title and wired together by the template's links.
  Authored task-template rows copy the Scheduled task's instructions and
  settings into published tasks. Draft rows go out for write-up to their
  drafter — your `tasks[].drafterId` override, else the template's suggestion,
  else you — as soon as nothing holds their drafting back. Override rows by `key`
  (`included: false` leaves out an optional one; also `title`, `brief`,
  `noteIds`, `inheritDescription`); `parentStoryId`, `parentItem` and
  `requestId` work as for `create_story`. Templates are edited in the app.
- `create_draft_from_story_item` turns a planned row into a Draft linked to
  it, sent out for write-up to you. `create_draft` makes a plain Draft with no
  write-up.
- Finished Stories are archived by hand with `archive_story`.
- A draft whose drafting waits on another task (`get_ticket.draftingBlocked`)
  cannot be published, handed out for write-up or claimed for writing until
  that task is published or accepted. A PUBLISHED wait is met once and stays
  met, even if the prerequisite is withdrawn later.

## Ticket delegation and ownership

Read `get_ticket` first and copy its numeric `revision` into `expectedRevision`.
Resolve current teammate IDs with `list_people`. Each command takes `ticketId`
and a fresh `operationId`; retry identical inputs with that id only after an
uncertain response. Verify the resulting owner, collaborators and step in the ticket.

- `delegate_ticket_step`: pass `holderId` and `step`: `WRITE_UP` sends a Draft
  out for writing or replaces an unclaimed writer; `RUN` hands a claimed human
  run to another eligible teammate; `REVIEW` names a reviewer from Open through
  Delivered. The browser's state and relationship restrictions apply.
  `FOLLOW_UP` is not supported. On `CONFIRMATION_REQUIRED`, show
  `availabilityWarning` and retry with `acknowledgeAway: true` only after approval.
- `give_ticket_ownership`: the current creator passes `newOwnerId` to transfer
  ownership to a current teammate. The previous owner remains a collaborator.
- `take_ticket_ownership`: a permitted Manager/Admin takes ownership of active
  work they can see. Ordinary users are refused. Authorship, history, prior-owner
  and delegation-chain access remain; the existing writer stays assigned.

These commands are separate from `update_ticket` and do not replace
`set_ticket_collaborators`. Private Drafts remain not found for outsiders,
including Managers/Admins. On `STALE_REVISION`, read again, reconcile and use a
new operation. A replay rechecks current connection, role and ticket access.

## Boundaries

`get_token_usage` reads daily token totals and reporting coverage for current
teammates, plus separate current Scout quota windows, reset times and collector
health. Pass inclusive provider-native `fromDay`/`toDay` (at most 366 days),
optionally `personId`, and `limit` (1–10, default 5). Follow `nextCursor` with
the same range/filter; restart pagination if the workspace-selected source
changes. That source is authoritative: no adding Scout and provider totals or
filling gaps from the other source. Missing totals are null, days are absent,
and large counts are exact decimal strings. Measurement timestamps distinguish
historical freshness from `readAt`; quota/heartbeat freshness follows the app.
Scout sharing and live Team membership apply, including revocation. Truncation
flags identify capped devices/windows. It is available on the read-only
endpoint too and exposes no prompts, paths, credentials or raw provider data.
See [the result contract and local QA](https://github.com/rockbite/token-sharing/blob/dev/docs/mcp-token-usage.md).

Private Drafts are visible only to their creator and collaborators. Other people receive no identifier, count, relation, or existence signal. Human-only tasks are fully readable and editable by people who can see them, and MCP can claim, release and review them; only their delivery is left to a person in the UI.

`analyze_ticket_outcomes` returns bounded recorded outcomes and optional reviewer prose. A label inferred from prose, such as “poor prompt,” is the agent's inference rather than stored Wagglet taxonomy and must be presented that way. Analytics requires the dedicated `analytics.read` permission.

Attendance is read-only. `whos_out` lists who is away on a Company Day and whether it is a company holiday; `list_time_off` and `attendance_summary` return one person's entries, hours and balances — your own for anybody, somebody else's only with `attendance.manage`, which also unmasks a Sick day that everyone else sees as `OFF`. `get_ticket` reports the reserved or named people's availability, and `publish_draft` proceeds but returns `availabilityWarning` when the task is aimed at somebody who is away; say so to your person rather than treating it as an error. There are no tools to request or decide time off.

Treat tool errors literally. Revocation, Team disablement, membership removal, and role changes take effect on the next request. Keep MCP Tokens in authorization headers rather than URLs or tool arguments.

## Calendar

The calendar holds meetings, focus blocks and reminders, and acts with the same permissions as the app: only an organizer changes a shared meeting, and a reminder belongs to whoever set it and whoever receives it.

Read first. `calendar_range` returns the person's meetings, focus blocks, reminders and Google events between two instants (at most 100 days); `calendar_item` returns one of them in full with its `revision`. Items past the materialized window have ids starting with `proj:` and can be targeted like any other. `task_reminders` lists reminders on one task. `calendar_availability` gives teammates' free, busy, focus and out intervals without titles or reasons, and `calendar_rooms` lists rooms and their bookings. `calendar_alerts` lists the person's live alerts; its ids are the `alertId` for `alert.snooze` and `alert.dismiss`, and `snoozable` says which accept a snooze.

`calendar_range` always reads your own calendar; it accepts no teammate id. Use
`calendar_shared_items` with `personId`, `from` and `to` for **your shared items
with a teammate**, never their full calendar. It returns only Wagglet meeting
occurrences you both organize or attend (including occurrence-specific changes),
and reminders you created for that recipient. Google-synced Wagglet meetings
qualify; personal imports, focus blocks and other people's reminders do not.
Private linked tasks and notes are omitted unless you can open them normally.
No hidden-item counts or placeholders are returned. Use `calendar_item` with
`sharedWith: personId` for the same relationship boundary on direct opening;
without it, the caller's normal item access still applies, including reminders
they created. Only reminder creators edit/cancel; only recipients snooze,
complete or dismiss. `calendar_availability` remains the separate status-only read.

Change with `calendar_command`, one typed operation per call. Times are local wall-clock strings (`YYYY-MM-DDTHH:mm`) plus an IANA `timezone`; take the person's zone from context rather than assuming UTC. Pass the item's current `expectedRevision` when changing something that exists.

- Reminders: `reminder.create`, `reminder.update`, `reminder.snooze`, `reminder.done`, `reminder.undone`, `reminder.dismiss`, `reminder.cancel`, `reminder.series`. `create_reminder` is a shortcut for the first one. Snooze, done and dismiss take a `reminderOccurrenceId` (one ring); update and cancel take the `reminderId` (the whole reminder).
- Focus: `focus.start` begins a block now, `focus.stop` ends it, `focus.interruptible` changes whether alerts are held. Plan a later block with `event.create` and `kind: "FOCUS"`.
- Meetings: `event.create`, `event.update`, `event.move`, `event.cancel`, `series.transform`, `participant.respond`, `meeting.askToMove`, `meeting.recordingNotNeeded`. `scope` chooses one occurrence or the series.
- Google: `meeting.enableAssistance` turns a Google event into a Wagglet meeting; `sync.resolve` settles a conflict listed by `calendar_preferences`.

Every change returns a receipt. `calendar_undo` reverses one within ten minutes using the receipt's undo token, and is refused if anything changed since. `calendar_ask` sends a sentence through the calendar assistant and may answer with a clarification; prefer `calendar_command` when you already know the operation.

`calendar_open_note` returns the note of a meeting the person organizes or attends, creating it if needed; continue with `read_note` and `append_note`. `calendar_preferences` reads their notification preferences, channel readiness and Google connection; `update_calendar_preferences` changes the preferences. Reminders addressed to a person cannot be switched off, only routed. Connecting Google, choosing which Google calendars sync, and workspace calendar settings (rooms, meeting prep) stay in the app.

## Notes

Use `list_notes` or `search_notes` to find visible notes; continue through cursors.
`read_note` returns metadata, revision, `note.attachments` (IDs, filenames, MIME
types, byte sizes, uploader IDs and timestamps), and a short-lived markdown download URL;
small documents are also inline. Downloads include saved transcripts and recheck
access. Private Notes are visible only to their owners and collaborators.

`create_note` creates a Private Note owned by the caller. Read before using
`update_note` or `append_note`; pass `expectedRevision` and a fresh `operationId`.
Writes merge through the live document. On `STALE_REVISION`, read again and
reconcile; on an uncertain network result, retry the same operationId and inputs.
These tools do not change visibility, collaborators, grants or attachments.

To attach a local file, call `upload_note_attachment` with `noteId`, a fresh
`operationId`, `filename`, `contentType`, `size` in bytes, and the file's `sha256`
hex digest. It returns an `uploadUrl` valid for five minutes. PUT the raw file
bytes to that URL using an HTTP client (for example, `curl --fail-with-body
--request PUT --data-binary @/absolute/path/to/file "$UPLOAD_URL"`). This PUT
saves and attaches the file; the preparation tool alone does not. No browser
session or MCP token in the URL is needed. Treat the upload URL as a secret.
Ordinary attachments are limited to 20 MiB each and 50 files per note, including
pending recordings. Uploads add a file without overwriting note content, so no
`expectedRevision` is required.

After a successful PUT, use `read_note` to verify the attachment and updated
revision. Use `read_attachment` with any listed attachment ID to read its bytes;
it supports both ticket and note attachments and rechecks current access.
After an uncertain PUT response, retry the same file bytes and operationId.
If the URL expires, call `upload_note_attachment` again with the same inputs.
Connection revocation, membership/permission changes and private-note access
changes apply to uploads and downloads immediately.

## Points grants

Anybody holding `points.grant` (every Team Member by default) can grant 1–100
Contribution Score points to any teammate, themselves included, for work that
happened outside tickets and Notes. Call `grant_points` with `recipientId`
(from `list_people`, or your own id from `whoami`), `points`, a `reason`, a
fresh `operationId`, and proof: at least one of `proofText`, `proofLinks`
(http/https URLs) or `proofAttachmentIds`. A grant with no proof is refused.
Grants are permanent — never edited, revoked or approved — and every teammate
can read the reason and proof, which is the whole safeguard.

To attach a file as proof, call `upload_grant_proof` first, on the same
two-step contract as note uploads: PUT the raw bytes to the returned
`uploadUrl`, take the `attachmentId` from the response, and pass it in
`proofAttachmentIds`. A staged file belongs to your connection until a grant
claims it.

Read anybody's history with `get_points_history` (`personId`, optional `page`
and `pageSize`, newest first): every task award, appreciation, Note grant and
points grant with date, points, running total, who gave it, the reason and the
task, note or proof. Entries you may not see — a private draft, a Private
Note — are counted but not named. Proof files are readable through
`read_attachment` by their id.


### Correcting completed task awards (Admin)

`points.correct` is granted only to Admin by default. A personal MCP connection
may call `get_score_award` with an award ID from `get_points_history`, then
`correct_score_award` with `awardId`, `expectedRevision`, `correctedPoints`, a
nonempty `reason`, and a fresh `operationId`. The amount is the final total for
that one award (0–1,150), not a signed deduction. Other recipients, including the
drafter, are unaffected. Only task awards are supported, not appreciation or
Note/points grants. Agent-run connections cannot use these tools.

Corrections append permanent signed records with the acting admin and reason;
the original award stays unchanged. Score history shows both entries and the
task timeline records the correction. Reports use the corrected amount in the
original award period. On `STALE_REVISION`, read again before deciding whether
to retry. Reuse an operation ID only for an identical retry. To undo, read the
latest revision and append a correction restoring the prior total; never erase
history. Permission and connection revocation also apply to retries.
