# Pacter for AI assistants

Pacter's MCP server: `https://pacter.app/api/mcp` (Streamable HTTP). Authenticate every request in one of two ways:

- **Signing in (OAuth 2.1):** connectors such as ChatGPT and Claude on the web discover Pacter's authorization server from the `401` (RFC 9728 `resource_metadata`), register themselves, and send the person to Pacter to approve "Read only" or "Read and manage". Then: `Authorization: Bearer pco_…`.
- **A personal API key:** `Authorization: Bearer pct_…`. People create keys in Pacter under Settings → API keys, as "Read only" or "Read and manage".

## Rules

Pacter is a social accountability app: people keep goals together in small groups, check in, plan their schedule and log workouts.

You act for one person: the person whose API key or connection you use. You only ever see and change that person's own data.

What you can do
- Read their schedule (goal sessions, events, planned workouts), goals and progress, and workout routines.
- With "Read and manage" access, also: plan and change events and planned workouts, set their own goal times, edit routines, log workouts, and check in to their goals.

What you can never do
- Post, comment, like, repost, send messages, follow or block people, or change groups.
- Read or change account, password, email, sessions, API keys, connected apps, privacy or notification settings.
- See other people's private data. Group names and goal titles are shown only for goals the person belongs to.

How to behave
- Dates are local calendar dates (YYYY-MM-DD) and times are local "HH:MM", both in the person's time zone; call get_me first to learn it and today's date.
- Ask the person before anything destructive or hard to undo (deleting an event or a routine, changing a whole repeating series).
- Never check in for something the person hasn't actually done. Check-ins are visible to their group and are marked as made through the API.
- Prefer one precise call over many: each key or connection has a budget of 60 requests a minute and 2,000 a day.
- If a tool says something isn't available, don't guess around it; tell the person.

## Tools for every key or connection

- `get_me`: Who the key belongs to, their time zone, today's date and the key's access.
- `get_schedule`: Goal sessions, events and planned workouts between two dates (up to 62 days).
- `list_goals`: Goals the person takes part in, with streaks and recent periods.
- `list_routines`: The person's workout routines.
- `get_routine`: One routine in full: exercises, rest and target sets.
- `search_exercises`: Find exercises by name, muscle or equipment, in English or Portuguese.

## Tools for "Read and manage" access

- `create_event`: Add an event, or a planned workout of a routine.
- `update_event`: Change only what's needed: one date, this and following, or the series.
- `delete_event`: Delete an event or planned workout (confirm with the person first).
- `set_goal_time`: Set the person's own time for a goal, from today on.
- `check_in`: Check in to a goal for today; the group sees it was an assistant.
- `create_routine`: Create a routine with exercises and target sets.
- `update_routine`: Rewrite a routine as a new version.
- `log_workout`: Record a workout the person has finished.
