# Tools of the author MCP

Every tool the author server offers, as it lists them to an agent (`tools/list`). The server works inside one folder, its root: it never runs a command, never opens the network and never writes outside the root.

Set it up: [Setup](https://docs.altasystem.ai/reference/mcp/setup).

## At a glance

| Tool | What it does | Effect |
|---|---|---|
| [`genres`](#genres) | Genres of content | reads only |
| [`schema`](#schema) | JSON Schema of a content file | reads only |
| [`docs`](#docs) | Guides, standards and examples | reads only |
| [`executors`](#executors) | What a step can run | reads only |
| [`checks`](#checks) | What a step can prove | reads only |
| [`step`](#step) | Check steps on their own | reads only |
| [`scaffold`](#scaffold) | New content from a skeleton | writes in the root |
| [`list`](#list) | Files of the root | reads only |
| [`read`](#read) | Read a file of the root | reads only |
| [`write`](#write) | Write a file of the root | writes in the root |
| [`check`](#check) | Validate content | reads only |
| [`pack`](#pack) | Pack (dry run) | reads only |

## `genres`

**Genres of content.** Lists the genres of content an author can make (quest pack, onboarding and its axis variants, cinematics, universe, item, mission), the files each one is made of, the kind check reports, and the guide, standard and example to read. Start here.

No argument.

## `schema`

**JSON Schema of a content file.** Returns the JSON Schema (draft 2020-12) of a content file, by name (alta.quests, alta.onboarding, alta.cinematics, alta.universe, alta.chart, alta.game, alta.catalog, alta.license). Without a name, lists them. The schema gives the shape; check gives the full rules.

| Name | Type | Required | Description |
|---|---|---|---|
| `name` | string (one of 10) | no |  |

## `docs`

**Guides, standards and examples.** Reads a page of the documentation, read only: a guide (site/guides/quests/do-it-step, site/concepts/do-it, …), a standard (standards/alta-onboarding-0.2, …) or an example file (examples/axes/agent/onboarding.agent.json, …). Without a name, lists the pages. Copy from the examples: they are valid.

| Name | Type | Required | Description |
|---|---|---|---|
| `name` | string (one of 283) | no |  |

## `executors`

**What a step can run.** The closed list of executors a step may name in run.do (alta.game/0.3): what each does on the player's machine, the arguments it takes from run.args (kind, closed list, bounds, required), whether it shows a plan card, how it is undone, how a secret reaches it, where it runs (systems, hosted) and the capability the owner must allow. Give id for one executor.

| Name | Type | Required | Description |
|---|---|---|---|
| `id` | string | no | One executor, e.g. setup.daemon-name. |

### Example

The agent sends:

```json
{
  "name": "executors",
  "arguments": {
    "id": "channel.connect"
  }
}
```

It gets back:

```text
A step that does it: "kind": "action", "inputs" (a form), "run": { "do": <executor>, "args": { <name>: literal | { "input": id } | { "answer": "answers.<key>" } } }, and a read-only "check" that proves it.
- channel.connect: Connects a chat channel (Telegram, WhatsApp): the bot token typed in the card, or the channel's own login. Args: channel (telegram|whatsapp), token (secret, optional). Card: plan; secret via tool, page, terminal; macos/linux, hosted too.
```

## `checks`

**What a step can prove.** Every check type a step may declare in check (alta.game/0.3): its fields, when it passes (read only), who answers it, the version that added it, and an example. Also the input kinds a step may ask for and the reasons a step stays with the player (human). Give type for one check.

| Name | Type | Required | Description |
|---|---|---|---|
| `type` | string | no | One check type, e.g. permission. |

## `step`

**Check steps on their own.** Checks one step, or the steps of one quest, with the rules of alta.quests/0.3 (inputs, run.args references, executor arguments, secrets, human, provenBy, check fields) without a file. Each problem has its rule, the validator's words (detail), a hint read from the step (the inputs it has, the arguments its executor takes) and the fix. Use it while you write a step, then write the file and check it.

| Name | Type | Required | Description |
|---|---|---|---|
| `steps` | array (≤ 40) | yes | The steps, as they go in a quest's "steps" (provenBy may name one of them). |

### Example

The agent sends:

```json
{
  "name": "step",
  "arguments": {
    "steps": [
      {
        "id": "connect",
        "kind": "action",
        "title": {
          "en": "Connect Telegram",
          "fr": "Branche Telegram"
        },
        "inputs": [
          {
            "id": "token",
            "kind": "secret",
            "label": {
              "en": "Bot token",
              "fr": "Jeton du bot"
            }
          }
        ],
        "run": {
          "do": "channel.connect",
          "args": {
            "channel": "telegram",
            "token": {
              "input": "tokn"
            }
          }
        },
        "check": {
          "type": "channel",
          "id": "telegram"
        }
      }
    ]
  }
}
```

It gets back:

```text
error: steps[0].run.args.token: run.args.token: unknown input tokn [step.input-ref]
  hint: this step's inputs: token (secret)
  fix: Write `{ "input": "<id of an input of this step>" }` or `{ "answer": "answers.<key>" }`, and feed every input to an argument (or `saves` it).
error: steps[0].inputs[0]: input token is not used by run.args [step.input-ref]
  hint: this step's inputs: token (secret)
  fix: Write `{ "input": "<id of an input of this step>" }` or `{ "answer": "answers.<key>" }`, and feed every input to an argument (or `saves` it).
```

## `scaffold`

**New content from a skeleton.** Writes the skeleton of a genre into a folder of the root (default: a folder named after the id), valid as written, then checks it. For an onboarding variant of an axis, give axis: the file is onboarding.`<axis>`.json. Edit the texts afterwards (read, write) and check again.

| Name | Type | Required | Description |
|---|---|---|---|
| `genre` | `chart`, `quest-pack`, `onboarding`, `cinematics`, `universe`, `mission`, `signin` | yes | What to make (see genres). |
| `id` | string | yes | Lower-case id of the new content: letters, digits, dashes; 2 to 32 characters. |
| `dir` | string | no | Folder of the root to write in (default: the id). Path relative to the root ("/" between folders). Absolute paths, "..", hidden names and symbolic links are refused. |
| `branch` | string | no | Branch a quest pack, mission or item joins (default core). |
| `axis` | string | no | Onboarding only: the axis of the variant (play, agent, fleet, open, store, cockpit, or your own). |
| `template` | `link-code`, `device-code`, `email-link`, `secret`, `tool-browser` | no | signin only: the sign-in template (default link-code). |
| `tool` | `claude`, `codex`, `gh`, `practice` | no | signin only: the tool (default: the template's own); it must offer the template. |
| `overwrite` | boolean | no | Replace files that are already there (default false). |

### Example

The agent sends:

```json
{
  "name": "scaffold",
  "arguments": {
    "genre": "quest-pack",
    "id": "my-pack"
  }
}
```

It gets back:

```text
created my-pack/quests.json (quest-pack, id my-pack)
ok   my-pack/quests.json (quests)
1 checked, 0 errors, 0 warnings
next: read the files, change the texts (write with overwrite: true), then check my-pack
```

## `list`

**Files of the root.** Lists the files and folders under a folder of the root (default the root), without hidden names; symbolic links are shown, not followed.

| Name | Type | Required | Description |
|---|---|---|---|
| `dir` | string | no | Path relative to the root ("/" between folders). Absolute paths, "..", hidden names and symbolic links are refused. |
| `depth` | integer | no | How deep to go (default 4). |

## `read`

**Read a file of the root.** Reads a text file of the root (at most 524288 bytes). Hidden names, key files and symbolic links are refused.

| Name | Type | Required | Description |
|---|---|---|---|
| `path` | string | yes | Path relative to the root ("/" between folders). Absolute paths, "..", hidden names and symbolic links are refused. |

## `write`

**Write a file of the root.** Writes a .json, .md, .txt file inside the root (at most 1048576 bytes), creating its folders. A .json file must parse, and its folder is checked right after (the report is in the result). An existing file is replaced only with overwrite: true.

| Name | Type | Required | Description |
|---|---|---|---|
| `path` | string | yes | Path relative to the root ("/" between folders). Absolute paths, "..", hidden names and symbolic links are refused. |
| `content` | string | yes | The whole text of the file. |
| `overwrite` | boolean | no | Replace the file if it exists (default false). |

## `check`

**Validate content.** Validates content files (a .json with a "schema", or a universe folder) under a path of the root, against the game of Alta OS. Every problem names the file, the field, the rule and the page of the standard that states it; fix them and check again until ok is true. Warnings do not fail unless strict.

| Name | Type | Required | Description |
|---|---|---|---|
| `path` | string | no | File or folder to check (default the root). Path relative to the root ("/" between folders). Absolute paths, "..", hidden names and symbolic links are refused. |
| `strict` | boolean | no | Warnings fail too. |

### Example

The agent sends:

```json
{
  "name": "check",
  "arguments": {
    "path": "my-pack"
  }
}
```

It gets back:

```text
ok   my-pack/quests.json (quests)
1 checked, 0 errors, 0 warnings
```

## `pack`

**Pack (dry run).** Dry run of `alta package`: checks a folder of the root, then computes its deterministic archive in memory and returns the archive's sha256, the tree digest (alta.tree/1, what an item's source.sha256 carries) and the files. Writes nothing, sends nothing.

| Name | Type | Required | Description |
|---|---|---|---|
| `dir` | string | yes | Folder to pack. Path relative to the root ("/" between folders). Absolute paths, "..", hidden names and symbolic links are refused. |
