# Tool reference

Source: https://heyeveryone.ai/docs/mcp

> Find the current tools, schemas, permissions and AI costs before making a call.

## Connect first

Use a supported client’s connection guide and grant only the workspaces you intend it to use.

## Read the contract for each tool

Each entry shows the tool name, description, input schema, output schema and who may call it. People-only tools are not exposed to agents. Read credit and confirmation requirements before acting.

## Handle the returned result

Inspect the result and any error. Keep the content URL so the person can review the work. A schedule request waiting for confirmation is not a published post.

## Client behavior and result limits

- Transport: stateless Streamable HTTP, POST only. Both MCP generations are
  served on the same URL:
  - **2026-07-28**: `server/discover`, the per-request `_meta` envelope, and
    the `MCP-Protocol-Version`, `Mcp-Method` and `Mcp-Name` headers.
  - **2025-11-25 back to 2024-11-05**: the `initialize` handshake.
- Authorization follows the MCP 2026-07-28 authorization spec:
  - Protected resource metadata at `/.well-known/oauth-protected-resource/mcp`
    and at the root.
  - Authorization server metadata at `/.well-known/oauth-authorization-server`.
  - Client ID Metadata Documents are preferred. Dynamic Client Registration
    is kept for older clients.
  - PKCE with `S256` only. `resource` (RFC 8707) binds each token to `/mcp`
    or `/api/v1`. `iss` is sent in every authorization response (RFC 9207).
- One scope, `agent`. What an agent may do is decided per workspace by the
  person, not by scopes: access, read-only, and Autopilot with its channels
  and daily limit. A read-only token keeps `tools/list` unchanged; write
  tools refuse it with `forbidden` and a sentence saying it is read-only.
- Errors:
  - An unknown tool is a JSON-RPC error `-32602`.
  - A tool that fails returns `isError: true` with a text block
    `<code>: <message>`, for example `forbidden: ...` or
    `confirmation_required: ...`.
- Retries: `create_content` and `create_post` take an optional
  `idempotencyKey` (on REST also the `Idempotency-Key` header). The same key
  from the same agent in the same workspace within 24 hours returns what the
  first call created (`replayed: true`) and creates nothing; the same key
  with a different input is refused (`idempotency_conflict`). Scheduling is
  already idempotent through `schedule_versions`' `confirmationToken`.
- Near duplicates: `get_publish_plan` lists `nearDuplicates` and a
  `near_duplicate` warning when a version's text is nearly the same as a post
  published in the last 30 days or scheduled on the same channel. It never
  blocks; show it to the person.
- Server identity (MCP `Implementation`): name `heyeveryone`, the version of
  `@heyeveryone/mcp`, a one-line `description`, `websiteUrl` (the app's
  origin) and `icons` (`/icon.svg`). The instructions start with the rules
  that keep people safe: "Humans publish", the confirmation step and
  credits, all in the first 512 characters.
- Size (HEY-70, HEY-145): `tools/list` sends no `outputSchema` and compact
  input schemas (no regex next to a `format`): 104 tools in about 126,000
  characters (HEY-156). Tests keep it at 120 tools or fewer (VS Code allows 128 across
  all of a person's servers) and 140,000 characters, with 12 tools and
  10,000 characters of headroom (D-431). Results still carry
  `structuredContent` and the same JSON as text. Full output schemas are in
  `apps/web/src/generated/mcp-tools.json` and the OpenAPI document.
- Renamed and merged tools (D-431): 19 tools became parameters of others
  (for example `get_campaign_results` is `get_results` with
  `groupBy: campaign`). MCP lists only the new names. The old REST paths
  still answer until the next release: they run the new tool, return its
  result and send `Deprecation` and `Link` headers. The tool surface freeze
  (HEY-156, D-470) then renamed tools to brand words (`create_piece` is
  `create_content`, `update_master` is `update_original`) and merged four
  more, with no aliases. Both tables are in
  [docs/agents/tool-changes.md](../agents/tool-changes.md).
- Result size: a query result over 75,000 characters (Claude Code's 25,000
  tokens, conservatively) is refused with `result_too_large: ...` saying how
  to ask for less (a smaller `limit`, a shorter `from`/`to`, a filter).
  Mutations are never refused for size. `query_content` pages at 40 rows
  for agents (a larger `limit` is lowered; `nextCursor` says there is more). REST is not limited
  this way.

## Request limits

| Limit | Default | Counts |
|---|---|---|
| `agent` | 120 a minute | every request of one agent (the agent a token belongs to, so refreshing a token doesn't reset it) |
| `heavy` | 30 a minute | on top, per agent: calls of tools that cost credits or reach outside heyeveryone (publishing, URL fetches, platform checks; `tools/list` marks them with `openWorldHint` or a credit note) |
| `account` | 600 a minute | every agent request of one account, all its agents together |
| `ip` | 600 a minute | every request from one address (an IPv6 /64), signed in or not |

A refused request returns HTTP 429 with `Retry-After` in seconds. Wait that long, then retry.
