# MCP reference

The map is served over the Model Context Protocol at
`https://app.maplith.com/api/mcp` (streamable HTTP). 15 read/setup tools answer;
two upload and build, for connections with the upload consent; one asks us for
a capability that is missing; eight act, and only for keys whose policy allows
it; one, `join_review`, flags a join and reports the counts that settle it while an agent
tests the map with its human. It changes nothing on the map unless a key that may act
reports agreeing counts on a review Maplith opened, which confirms that join; otherwise
a person decides. Beside the tools, the same endpoint serves **resources** and **prompts**:
the playbooks your workspace writes, described below.

## Before work starts

Start from the task with `get_task_context`: pass `task` as an object,
`{ description, references }` (the task in words, and the map objects, files
or URLs it is about), a signal's id, or a support case. A task's references
resolve to the objects of the map your key can see; one the map cannot place
is listed as unresolved, never guessed. A record id, such as an order number or
a shipment id, never resolves: the map holds no rows, so look the record up in
its own system by its object's key field. The answer brings
the applicable rules, the documents that touch the task as links
(`documents`), the routes between the objects, their playbooks and the
owners stated for their systems.

**A task's answer comes in pages.** The first page is at most 8 KB and
holds four parts, in this order:

1. `entry`: what Maplith understood (the task, the map it read, the
   situation, how sure it is and the other playbooks that fit), and
   `cursor`, the page to read next.
2. `do_first`: the procedure, the playbook anchored most closely on what
   the task touches (its operations first, then its objects, then its signal
   kinds; never its title), with its steps in short, and the binding rules:
   the business policies, the checkable rules and the rules of your context
   that hold for this task, with the documents that touch it as links. Two
   playbooks anchored the same way are both served, and you choose.
3. `trust`: each join the work crosses, how well it is verified and its
   caveat, and the fields never to quote back.
4. `next`: the first calls of the procedure, ready to make.

Read the rest (the objects, the routes, the playbooks whole, the owners and
the glossary) with the same `task` and `page`, as `entry.cursor` names
it, until the cursor is null. For a case, read the named objects with
`get_object`. Follow the rules and their conditions; open a linked document
when your work depends on it. An answer without `documents` has no document
anchored to those objects; `documents: null` with
`documents_coverage.reason: 'unread'` means they could not be read, never
that there is none. The answer puts what to do first and the long context
(objects, routes, glossary) after it. For a task or a signal, only if your
client cut it, call again with `statements_only: true` for the rules alone
(`{}` when none applies); a case keeps to `get_object`. Find a playbook with `search`, then read it with `fetch`
(`playbook:<id>`). The same call again returns the same answer. To record
work you already finished, call `record_action` with `work` at once.

## Asking before you act

`request_action` with `op: "ask"` names the operation (`system`,
`operation`), the `target` (`kind` and its id in your human's system), the
`params`, an `idempotency_key` and a `reason` a person reads. The reason
opens with one plain sentence, then `What it does:`, `Problem:` and
`Value:`, each label at the start of its own line, within 500 characters:

```text
Pause the autumn campaign in the ad tool.
What it does: stops the campaign's ads until the marketing lead restarts them.
Problem: it has spent its month's budget in two weeks.
Value: no more spend this month on ads the plan did not pay for.
```

`allowed`: act with your own credentials. `pending`: do not act; show
`approve_url` to your human, and either ask again with the same request and
`idempotency_key` after a person decides or, on a signal you cannot keep
waiting on, record `needs_human` with `record_action` and a `task` that
says what the person does once they decide. `denied`: do not act; `why`
says what to tell your human.

Give the task a name a person reads at a glance: `title` on
`record_action` with `needs_human`, or on `request_action` with `op: ask`.
At most 80 characters on one line, the business thing first, no ids (an
order or invoice number may stay), and not the whole task again. A title that
breaks one of these is refused with `plain_language_required` and
`problem: bad_title`, and nothing is recorded or asked. Without one, Maplith
names the task itself: from the signal's kind, or the first sentence of your
`task` without ids. Your `task` and `reason` stay the body. A title names
a task a person gets: a request decided at once (`allowed` or `denied`)
keeps none, and `list_requests` names it from its `reason`.
`list_signals`, `get_task_context` and `list_requests` return the name as
`task_title`; `title` keeps its meaning.

## Documents that touch an object or task

`get_object(name)` and `get_task_context` (a task, a signal) link the
documents your human keeps that touch what you are working on: the decision
records, policies, playbooks, handbooks, agreements and mail a scan read. They
are context, not rules: Maplith no longer restates a document's sentences in
these answers. Each entry of `documents` is one document:

- `path`: where it is in your human's own sources; `title` and `label`
  (an ADR number, a policy id), where the scan read them.
- `status`: the record's own status (accepted, proposed, superseded,
  rejected or unknown). When a person decided it on Rules › Must hold,
  `status_decided` says so, `status` is theirs and `status_source` is
  the file's. A superseded or rejected
  document is context, not guidance. `role`: foundation, policy, procedure,
  agreement, record or correspondence.
- `why`: what of this answer it touches, each typed by `scope`: a
  `field` (`object` and `field`), an `object`, a `process` (its
  central `object`) or a `domain`. The most specific comes first.

A document is linked where it is anchored: on a field, object or process the
answer is about, or, for a key that sees whole domains, on the answer's domain
alone. One that names no object, field, process or domain is never linked only
for being about the whole workspace; find it with `search`, or on
Rules › Must hold with your human. A document anchored on a source your
key may not see is never linked. The most specific documents come first, then
the ones that touch more of the answer; an answer links at most 25 and counts
the rest in `documents_more`. The documents never push an answer over its
size budget (64 KiB of serialized UTF-8 JSON-RPC, both JSON copies counted):
a list that does not fit beside the rest is shortened and counted.
`documents_note` says how to read them, and `decisions_page` links
Rules › Must hold, where every document is listed as context, with its role and status.

Open a document in your human's own sources when your work depends on it. The
rules to follow are the checkable rules and the business policies the answer
carries. Rule groups (the `rule_node` argument) are no longer served: a
call with `rule_node` is refused with that instruction.

A rule that could not be read fails the call, so a document is never silently
missing, with one exception: for a visitor waiting in Maplith's own support
chat, which is answered from Maplith's public pages, a database timeout leaves
the documents out of a call that asks for the whole context. The answer then
carries `documents: null` and `documents_coverage` with `complete: false`,
`reason: 'unread'`, `degraded: true` and a note that says to answer only
from the public material. A rules-only call still fails.

When you pass `context` (`{"client": "<company>"}`), the confirmed
variations of that one context come as `statements`: the usual way of
working for it, which a person confirmed from reported work. They page like
any rule set: `statements_compact` lines are reminders, `statement_key`
reads one in full, and `statements_coverage` says when the set is complete;
`statements_call` repeats the call, `statements_cursor` reads the next
page, and `statements_only: true` returns them alone. If they do not fit
beside the rest of a `get_task_context` answer, the answer keeps its context
and carries the cursor with `statements_coverage.degraded: true`; its largest
lists (never `next` or `trust`) are shortened and named in
`context_trimmed`.

## Rules and policies a task touches

`get_task_context` (a task, a signal) serves only the rules the task
touches, never every rule of the workspace:

For a task, both are on the first page, in `do_first.binding_rules`,
each with its `kind`.

1. **Checkable rules** (`checkable_rules`): the rules Maplith checks on
   your human's data, anchored on the objects and fields the task is about.
   Each entry is `{ kind: "rule", rule_id, version, name, why }`; `why`
   names the `field` (with its `object`) or the `object` it is
   anchored on, the field first. Only rules that are on are listed, at most
   25 (`checkable_rules_more` counts the rest). Read one in full with
   `get_rule` where your key has it. A key that sees part of the map gets
   none.
2. **Business policies**, where your human has them switched on: those
   that bind the task. A policy on an operation the task does (the ones its
   procedure is bound to, or without one the ones that act on its objects)
   comes whatever else it names. A policy on no operation binds every
   request, and comes when it covers the whole workspace, the task's
   department, or the task's objects or the systems that hold them. On the
   task entry they ride among `binding_rules`; on a signal or a task in
   words they come as `policies`. `policies_left_out` counts the rest:
   every request you make is still checked against every policy, and a
   refusal names the policy id.
3. **Unread is unknown.** When the checkable rules cannot be read,
   `checkable_rules` is `null` with a note: never tell anyone that no
   rule holds; call again shortly.

Which rules come is decided by typed anchors only: the identities a rule is
grounded on, and the ids a policy is scoped to, read as the approval check
reads them. A rule is never matched by
its name or the task's words. A task that names no object gets no checkable
rule; pass the objects it is about in `references`.


## Object detail fields

Full detail for one business object: agent-oriented description, row_count (data rows in its primary export) and grain (the columns that identify one row, one or two where the file is lines of something, with its basis: declared, confirmed or measured; null when Maplith states none) and grain_reading (the same in words), fields (each field whose column is in the export with a role (identifier, dimension, measure or attribute, derived from the export, with role_basis naming the rule that gave it) and a profile of counts only: the column type, filled and blank rows, and distinct values, never a value; role and profile are absent where the field was not assessed; and every field with an explicit pii flag and a personal-data classification: category none/contact/identity/financial/special-category/other-personal, where it came from (the column name, the shape of the values as counts, or the customer) and its confidence; where fields are recognised by content, field_id (the same whatever the header), also_called and recognised_by, and auto_detected: true for a field Maplith placed from the business context or the export's layout and has not verified yet), source systems, every relation touching it (with strength, join key, coverage_side and separate child/parent coverage; unknown coverage is null and an untested join is labelled untested), the findings that mention it, and the automations your human’s systems run that read or write it (automations, when the workspace keeps a registry; see `list_automations`). Fields with pii=true hold personal data: never select or echo their values from source systems unless the task explicitly requires it.

## Find the documents before work starts

Search a task's words, such as “deploy”, to find the relevant objects and the
documents that touch them before work starts. A document is a search kind
beside objects, findings, processes, metrics, playbooks and workflows: found
by its path, title, label, role and status and the parts of the map it
touches that this key may see, one hit per document, never by a sentence
restated from it. A hit carries `path`, `title`, `label` and `role` where
they were read, `status` (when a person decided the document's status,
theirs) and `applies_to`; its id is `document:<path>` and its link opens
the document in Rules › Must hold, under Your documents. Documents share
the 50-document budget with the other kinds; `counts.documents` counts every
visible match even when fewer come back, and `truncated` means narrow the
query. A failed or incomplete scope read refuses rather than claiming there
is no document.

`fetch` with `document:<path>` returns the same fields: open the document in
your human's own sources when your work depends on it, since Maplith does not
restate its sentences as rules. A hidden, foreign or absent document has the
same not-found answer, and a `statement:<id>` from an earlier search is
refused with the way to the document. The rules to follow are the checkable
rules and policies `get_object` and `get_task_context` give. A task in
words goes to `get_task_context` as `task`.

## Search matching details

Search finds map items by text when their names are not known; a task in words
goes to get_task_context, which resolves the affected objects and their rules
in one call, and an object you can name to get_object. Matching
is case-insensitive: objects (name, description, field names and descriptions),
findings (title, description, evidence and recommendation), processes
(object type and step types), metrics (name, description, formula, caveats)
and decision statements (the fields described above). Relations are not
searched: get_object lists those touching an object, and route finds a path.
Each match has a snippet, per-kind counts and an id, title and URL; pass its
id to fetch for full detail. At most 50 documents are shared across kinds.
When more match, truncated says so and counts say how many. On a map larger
than one read, truncated_note says when counts may be lower bounds. A cut
statement-scope lookup refuses rather than guessing visibility. Use ask for
an explanation; use search for matching map items and their references.

## Vendor structure in system recipes

A system recipe can name the joins its vendor documents, with the source page,
and identifier formats that name a dataset even when a column has an unfamiliar
header. The scan counts format matches over filled rows without keeping values.
It applies a recipe only when the system and dataset columns can be recognised;
ambiguous matches do not create a declaration. Joins stay within that system.

These keys use the same declaration checks as a schema or a stated relationship.
A declaration that holds is cited on the join; a contradiction is a finding,
and a confirmed customer key stays in place. A missing dataset named by an
identifier format becomes an unshared-key finding with the recipe's fetch or
export instructions. Numeric identifiers without a distinctive documented format
are not enough to identify a vendor or dataset.

The recipe also lists structure artefacts the system can provide and how to
obtain a structure-only version. Keep examples, rows, defaults and credentials
out. Recipes with no cited declaration continue using the existing measured and
guessed paths. Recipe resources and their public markdown twins share the same
content. An unchanged recipe binding is reused per source; a later one-table
upload can still use the endpoint bound by a previous scan.

## Connect

From Claude Code, with OAuth. Nothing is pasted:

```
claude mcp add maplith --transport http https://app.maplith.com/api/mcp
```

Then run `/mcp` in Claude Code, choose **maplith** and **Authenticate**.
Your browser opens Maplith's consent page and a scoped key tied to your
workspace login is issued, exactly as for a claude.ai connector (Claude Code's
`http://localhost` callback is accepted).

Or with an agent key you made under Sources › Agents, sent as a bearer header:

```
claude mcp add maplith --transport http https://app.maplith.com/api/mcp \
  --header "Authorization: Bearer <your agent key>"
```

> As a claude.ai connector: add a custom connector with the same URL. OAuth
> takes over and issues a scoped key tied to your workspace login.

From OpenAI Codex, with OAuth, nothing is pasted either:

```
codex mcp add maplith --url https://app.maplith.com/api/mcp
codex mcp login maplith
```

The second command opens Maplith's consent page in your browser. The
[Maplith plugin](/docs/own-agent) adds the server and the Maplith skill
together.

From ChatGPT (Plus, Pro, Business or Enterprise): **Settings → Apps &
Connectors → Advanced settings → Developer mode** on, then **Create** a
connector with the same URL and **OAuth** as authentication. ChatGPT sends you
to Maplith to sign in and pick the workspace; a scoped key is issued to that
connection, nothing to paste. Deep research and "company knowledge" use only
`search` and `fetch`; a normal chat in developer mode can use every tool.

On the consent page, **May upload** and **Act with approval** start selected
for admins and builders. Turn uploads off to keep file submission in your
hands, or choose **Read only** for a connection that submits nothing, including
no feedback, observations, work reports or actions. Viewers start with
**Report and propose**: their assistant records the work they report, suggests
improvements and proposes rules, a person with the right role decides each
proposal, and it changes nothing and acts on nothing; one click on **Read only**
connects without it. Only admins can choose **Act directly**; it is never a default. Check the named
workspace and organisation before you allow access. A connection sees no more
than the person connecting it. Existing keys keep their separate permissions.
Change access under Sources › Agents and reconnect in your assistant.
[Set Maplith up with your own agent](/docs/own-agent) walks through sign-in
and the first prompt.

An agent that starts from maplith.com finds all of this without reading a
page: [/auth.md](/auth.md) says how to connect, the MCP server card is at
`https://app.maplith.com/api/mcp/server-card`, the API catalog at
`/.well-known/api-catalog` and the skills at
`/.well-known/agent-skills/index.json`. Every page with a markdown twin
answers with it at its own address when the request's `Accept` header
prefers `text/markdown`.

## The tools

### Key shapes

Which tools a connection is listed depends on its key and on what its workspace has switched on. The rows below are typical keys, each served its own list: between 13 and 29 of the tools in this reference. The count is the number `tools/list` returns for that typical key, with live checks off except in Maplith’s own workspace, and wake-ups on for every row of a customer’s key. Only autonomous keys are listed the wake-up tools: in a workspace where wake-ups are off, which is the default, an autonomous key is listed one tool fewer than its row, without `wake_subscription`. Where an admin binds a key to a live check, and for a member’s own reporting connection, tools come on top of the row, so a key’s list can differ from its row; each tool’s Who sees it says when. `get_task_context` with no argument gives `your_key.shape`, which says whether your key is read-only, acts with approval, is autonomous or proposes, which is the nearest row. The in-app assistant holds no key and is served its own list of 13.

| Key shape | How a key gets it | Tools listed |
|---|---|---|
| The published demo key | Anyone may use it, on a fictional company’s map. It reads and changes nothing of yours. | 13 |
| A directory reviewer’s key | Given to the reviewer of a directory listing: the demo key, locked. | 13 |
| A reviewer’s key in the review sandbox | Given to a directory reviewer in the review sandbox: it acts with approval, may upload, and the sandbox holds fixed policies for it. | 26 |
| Read-only, strict | The default for a new key: it is listed the tools that read. An admin who binds it to a live check adds report_observation, which records an observation and can raise or clear that rule’s signal. | 13 |
| Read-only, older keys | A read-only key made before keys became strict; it is also listed the join review, suggestion and request tools. | 16 |
| Read-only, workspace with an action policy | A read-only key in a workspace where an admin set an action policy (older connections). | 18 |
| Acts with approval | An admin chose it for the key: finding-status changes, field-identity answers, requests for a decision and drafts wait for a person; taking a signal and recording work apply at once, and some tools are refused to it (each tool says which). | 25 |
| Autonomous, whole map | An admin chose it for the key: its changes apply at once, every action is logged, and it reads the whole map. | 26 |
| Autonomous, part of the map | Autonomous, and an admin limited the key to named domains or objects. | 25 |
| Autonomous, with upload consent | Autonomous, and an admin allowed the key to upload exports and start a scan. | 27 |
| Autonomous, Maplith’s own workspace | The widest key: autonomous, with uploads and live checks on, in Maplith’s own workspace. It sees every tool of the reference. | 29 |

### Sources

Where the map’s data comes from: read what was scanned, upload exports, correct how files are grouped, answer what Maplith asked about them.

| Tool | What it answers | Changes something | Key shapes |
|---|---|---|---|
| `correct_source_system` | Correct upload system grouping without removing map items. | Yes | 6 of 11 |
| `answer_question` | Answer Maplith's question: a column, a row key, a dialect, an original or an auto-detected item. | Yes | 6 of 11 |
| `list_sources` | List the systems and datasets the current map came from. | No | all 11 |
| `submit_sources` | Upload synthetic or customer-approved exports; append files with upload_id. | Yes | unlisted |
| `build_map` | Upload exports, start a scan from them and follow its run. | Yes | 3 of 11 |

#### `correct_source_system`
**Purpose.** Correct upload system grouping without removing map items.

**Use it when.** Use it when uploaded files are grouped into the wrong system: move, split, merge or rename. Read list_sources first, and ask your human for the precise choice.

**Who sees it.** Listed to 6 of 11 key shapes: A reviewer’s key in the review sandbox; Acts with approval; Autonomous, whole map; Autonomous, part of the map; Autonomous, with upload consent; Autonomous, Maplith’s own workspace. Access: a key raised above read-only; applies only for an autonomous key that reads the whole map. See [Key shapes](/docs/key-shapes).

**Inputs.**
- `operation` (one of move, merge, split, rename, required): move: paths into the existing target. split: paths into a new system named target. merge: source into target. rename: source becomes target.
- `source` (string, required): Exact source system from list_sources.
- `target` (string, required): Existing system for move/merge; new system name for split/rename.
- `paths` (list of string, optional): Exact files from list_sources for move/split.

**Result.** Fields: `files` (number), `system` (string), `outcome` (string), `correction` (string), `note` (string).

An example, recorded from a call on a fictional company’s map (lists are cut to their first two items, long text is shortened):

```json
{"tool":"correct_source_system","arguments":{"operation":"rename","source":"system","target":"corrected"}}
```

```json
{
  "files": 1,
  "system": "corrected",
  "outcome": "corrected",
  "correction": "00000000-0000-4000-8000-000000000001",
  "note": "The catalogue is grouped now. Later uploads keep this correction; it re-homes files and never removes anything from the map, and objects and access are unchang…"
}
```

**Errors.**
- “System corrections require an autonomous key that sees the whole map. Ask an admin to correct the systems on Sources › Scans. A workspace admin changes what th…” Next step: Read the error: it says what was wrong. Correct that and call the tool again, or call tools/list for the tool's inputSchema.
- “read_only” Next step: This connection only reads. An admin or builder can reconnect with Act with approval to contribute; ask a workspace admin if your account needs different acces…

**Changes something.** Yes. Re-homes uploaded files under another system name. It never removes anything from the map, and only an autonomous key that reads the whole map can call it. No person decides each call: it applies when called, and the call is logged.

**Status.** Current.

#### `answer_question`
**Purpose.** Answer Maplith's question: a column, a row key, a dialect, an original or an auto-detected item.

**Use it when.** Use it to answer a question Maplith asked about your human’s data; get_task_context gives the exact call in next. For a finding’s status, use update_finding_status.

**Who sees it.** Listed to 6 of 11 key shapes: A reviewer’s key in the review sandbox; Acts with approval; Autonomous, whole map; Autonomous, part of the map; Autonomous, with upload consent; Autonomous, Maplith’s own workspace. Access: a key raised above read-only; the grain, schema_dialect and lineage_direction kinds apply only for an autonomous key that reads the whole map, and a field_identity answer waits for a person unless the key is autonomous. See [Key shapes](/docs/key-shapes).

**Inputs.**
- `kind` (string, required): field_identity takes question_id and answers; grain signal_id, columns, reason; schema_dialect signal_id, dialect, reason; lineage_direction signal_id, original, reason; auto_detected items, reason; term_report…
- `signal_id` (string, optional): The signal you answer.
- `reason` (string, optional): What you checked, without data values.
- `items` (list of object, optional): auto_detected: each item once.
- `dialect` (one of postgresql, mysql, optional): schema_dialect: postgresql or mysql.
- `original` (string, optional): lineage_direction: one of payload.options.
- `columns` (list of string, optional): grain: one or two of the listed columns, or [].
- `question_id` (string, optional): field_identity: from get_task_context.
- `report_id` (string, optional): term_report: from get_task_context.
- `verdict` (one of term_holds, report_holds, cannot_tell, optional): term_report: term_holds, report_holds or cannot_tell.
- `correction` (object, optional): With report_holds: what is right; applied with Undo.
- `answers` (list of object, optional): field_identity: each column once.

**Result.** Fields: `ok` (boolean), `outcome` (string), `decided` (number), `question_status` (string), `note` (string).

An example, recorded from a call on a fictional company’s map (lists are cut to their first two items, long text is shortened):

```json
{"tool":"answer_question","arguments":{"kind":"field_identity","question_id":"00000000-0000-4000-8000-000000000001","answers":[{"field_version_id":"00000000-0000-4000-8000-000000000002","answer":"new"}]}}
```

```json
{
  "ok": true,
  "outcome": "decided",
  "decided": 1,
  "question_status": "answered",
  "note": "Recorded as your agent's answer, final for this export: nobody answers this export's column again, a person included. The next scan continues the column as you…"
}
```

**Errors.**
- “Answering what identifies a row requires an autonomous key that sees the whole map. Ask your human: they answer on Sources › Scans. If it is a workspace key or…” Next step: Read the error: it says what was wrong. Correct that and call the tool again, or call tools/list for the tool's inputSchema.
- “read_only” Next step: This connection only reads. An admin or builder can reconnect with Act with approval to contribute; ask a workspace admin if your account needs different acces…
- “Answering which dialect a schema is requires an autonomous key that sees the whole map. Ask your human: they answer on Sources › Scans. If it is a workspace ke…” Next step: Read the error: it says what was wrong. Correct that and call the tool again, or call tools/list for the tool's inputSchema.

**Changes something.** Yes. Records the answer to a question Maplith asked (a column’s identity, a row key, a dialect, which copied file is the original, whether a term a member reported as wrong holds; Maplith then settles that report, and applies a correction your agent sends to a term Maplith confirmed, with Undo). A field identity answer from a key that acts with approval waits for a person, and a person’s answer always stands; a term correction from such a key is applied at once, with Undo, as Maplith’s own decision. An autonomous key applies it at once. A key that acts with approval waits for a person to decide, in the cases named above.

**Status.** Current. Old names that still answer: `answer_field_identity`, `answer_grain`, `answer_lineage_direction`, `answer_schema_dialect`.

#### `list_sources`
**Purpose.** List the systems and datasets the current map came from.

**Use it when.** Use it before you query a source system, to know which export or connection holds what. For what the map says about one object, use get_object.

**Who sees it.** Listed to all 11 key shapes. Access: every key. See [Key shapes](/docs/key-shapes).

**Inputs.**
- `system` (string, optional): One system as list_sources names it, e.g. "economic".

**Result.** Fields: `sources` (list), `fieldwork_systems` (list), `work_done_note` (string), `asked_fields` (string), `note` (string).

An example, recorded from a call on a fictional company’s map (lists are cut to their first two items, long text is shortened):

```json
{"tool":"list_sources","arguments":{}}
```

```json
{
  "sources": [
    {
      "system": "system",
      "kind": "file_export",
      "last_read": "2026-01-15T09:00:00Z",
      "in_current_map": true,
      "file_count": 1,
      "record_count": 3,
      "formats": {},
      "asked": {},
      "files": []
    }
  ],
  "fieldwork_systems": [
    {
      "system": "Print Desk",
      "work_done_here": {},
      "confirmed": true
    }
  ],
  "work_done_note": "work_done_here counts completed work agents reported in each system in the last 90 days: work kinds and object types, never rows. fieldwork_systems are systems…",
  "asked_fields": "Each source’s `asked` block is what is known about the system, never what a model inferred: owner (a team or role), refresh_cadence, retention, access and sens…",
  "note": "record_count adds up records of every kind (rows, mails, messages); formats splits it. in_current_map is false for a system the scan behind the current map did…"
}
```

**Errors.** No refusal is documented for this tool: it answers every key it is listed to, within that key’s scope.

**Changes something.** No. It only reads.

**Status.** Current.

#### `submit_sources`
**Purpose.** Upload synthetic or customer-approved exports; append files with upload_id.

**Use it when.** Use it when the data you need is not on the map and you cannot read it directly: upload exports, then call build_map. list_sources shows what is already there.

**Who sees it.** Listed to no key shape since it was replaced; a key it was listed to may still call it. Access: a key with uploads allowed (legacy consent or a writing policy), never in a demonstration workspace but the directory review sandbox. See [Key shapes](/docs/key-shapes).

**Inputs.**
- `files` (list of object, required): Files: a path under a system folder, content as text or base64.
- `upload_id` (string, optional): Continue an upload: the id a previous call returned.

**Result.** Fields: `upload_id` (string), `files_total` (number), `bytes_total` (number), `systems` (list), `budget_today` (object), `skipped_duplicates` (number), `remaining` (object), `next_step` (string), `deprecated` (object).

An example, recorded from a call on a fictional company’s map (lists are cut to their first two items, long text is shortened):

```json
{"tool":"submit_sources","arguments":{"files":[{"path":"tms/jobs.csv","content":"job_id,status\nJ-1,open\nJ-2,done\n"}]}}
```

```json
{
  "upload_id": "00000000-0000-4000-8000-000000000001",
  "files_total": 1,
  "bytes_total": 32,
  "systems": [
    "tms"
  ],
  "budget_today": {
    "share_used": 0,
    "resets_at": "2026-01-15T09:00:00Z",
    "this_scan_fits": true
  },
  "skipped_duplicates": 0,
  "remaining": {
    "files": 299,
    "bytes": 83886048
  },
  "next_step": "Call build_map with op submit again with upload_id 00000000-0000-4000-8000-000000000001 to add more files, then build_map with op start and the same upload_id.…",
  "deprecated": {
    "use": "build_map",
    "args": {
      "op": "submit"
    },
    "remove_after": "2027-04-30"
  }
}
```

**Errors.**
- “This key may not upload sources. Your human can allow it when connecting you (the upload choice on the consent page), or a workspace admin can enable it under…” Next step: Ask your human to allow uploads for this key under Sources › Agents, or to upload the export folder under Sources › Scans themselves.
- “read_only” Next step: This connection only reads. An admin or builder can reconnect with Act with approval to contribute; ask a workspace admin if your account needs different acces…

**Changes something.** Yes. Stores the uploaded files in the workspace until they are built into the map; an upload that is not built within 24 hours is deleted. No person decides each call: an admin has to allow it on the key first (upload consent).

**Status.** Unlisted: it still answers a call. Replaced by `build_map` until 2027-04-30.

#### `build_map`
**Purpose.** Upload exports, start a scan from them and follow its run.

**Use it when.** Use op submit to upload exports when the data you need is not on the map, op start to scan the upload (it also reads current connections), and op status to see where its run stands. When it finishes, read get_map_overview.

**Who sees it.** Listed to 3 of 11 key shapes: A reviewer’s key in the review sandbox; Autonomous, with upload consent; Autonomous, Maplith’s own workspace. Access: a key with uploads allowed (legacy consent or a writing policy), never in a demonstration workspace but the directory review sandbox. See [Key shapes](/docs/key-shapes).

**Inputs.**
- `op` (one of submit, start, status, optional): submit: files (upload_id adds more). start (default), status: upload_id.
- `files` (list of object, optional): Files: a path under a system folder, content as text or base64.
- `upload_id` (string, optional): The upload_id op submit returned; submit adds to it.

**Result.** Fields: `run_id` (string), `status` (string), `budget_today` (object), `what_happens_next` (string), `map_url` (string).

An example, recorded from a call on a fictional company’s map (lists are cut to their first two items, long text is shortened):

```json
{"tool":"build_map","arguments":{"upload_id":"00000000-0000-4000-8000-000000000001"}}
```

```json
{
  "run_id": "00000000-0000-4000-8000-000000000002",
  "status": "queued",
  "budget_today": {
    "share_used": 0.02,
    "resets_at": "2026-01-15T09:00:00Z",
    "this_scan_fits": true
  },
  "what_happens_next": "The map builds in a few minutes. Maplith sends no mail for a build you started, and your human sees the run on Sources › Scans. Then call get_task_context with…",
  "map_url": "https://app.maplith.com/w/00000000-0000-4000-8000-000000000003/map/atlas"
}
```

**Errors.**
- “This key may not upload sources. Your human can allow it when connecting you (the upload choice on the consent page), or a workspace admin can enable it under…” Next step: Ask your human to allow uploads for this key under Sources › Agents, or to upload the export folder under Sources › Scans themselves.
- “read_only” Next step: This connection only reads. An admin or builder can reconnect with Act with approval to contribute; ask a workspace admin if your account needs different acces…
- “op is submit, start or status. Nothing was changed.” Next step: Call build_map again with op submit and files, op start and the upload_id, or op status and the upload_id.

**Changes something.** Yes. Starts a scan of the submitted upload and the current connections, which builds or rebuilds the map. No person decides each call: an admin has to allow it on the key first (upload consent).

**Status.** Current.

### Map

What the map holds: objects, fields, relations, processes and metrics, and the ways to find, follow and question them.

| Tool | What it answers | Changes something | Key shapes |
|---|---|---|---|
| `configure_metric` | Start, change or stop tracking a grounded metric. | Yes | 6 of 11 |
| `state_relationships` | State cross-table relationships for future scans to test. | Yes | unlisted |
| `join_review` | Question or add a join, or report counts; a person decides, unless an acting key's counts agree. | Yes | 8 of 11 |
| `get_map_overview` | Replaced by get_task_context (no argument): coverage, counts, next steps. | No | unlisted |
| `get_object` | Read an object’s fields, relations, caveats and the documents that touch it. | No | all 11 |
| `search` | Find map items and the documents that touch them. | No | all 11 |
| `fetch` | Fetch a map item by search reference or stable finding key. | No | all 11 |
| `get_process` | Read one process in full, or list them all when no object_type is given. | No | all 11 |
| `get_metric` | Read one metric in full, or list them all when no name is given. | No | all 11 |
| `route` | Find a verified route between objects, with join keys and caveats. | No | all 11 |
| `ask` | Answer a question from the map or Maplith’s documentation, with sources. | No | all 11 |

#### `configure_metric`
**Purpose.** Start, change or stop tracking a grounded metric.

**Use it when.** Use it when your human asks for a metric’s value to be tracked over time, or for a line that tells them when it moves. get_metric reads the recorded series.

**Who sees it.** Listed to 6 of 11 key shapes: A reviewer’s key in the review sandbox; Acts with approval; Autonomous, whole map; Autonomous, part of the map; Autonomous, with upload consent; Autonomous, Maplith’s own workspace. Access: a key raised above read-only; it applies only for an autonomous key. See [Key shapes](/docs/key-shapes).

**Inputs.**
- `name` (string, required): The metric name, as get_metric lists it.
- `tracked` (boolean, required): Record this number from the next scan on, or stop.
- `threshold` (number, optional): The line the value should not cross, for the kind of figure the metric gives now (a period's value, or one number overall).
- `direction` (one of up, down, optional): Which way is bad: 'up' rising, 'down' falling.

**Result.** Fields: `ok` (boolean), `metric` (string), `tracked` (boolean), `threshold` (null), `direction` (null), `threshold_grain` (null), `evaluable` (boolean), `note` (string).

An example, recorded from a call on a fictional company’s map (lists are cut to their first two items, long text is shortened):

```json
{"tool":"configure_metric","arguments":{"name":"jobs","tracked":true}}
```

```json
{
  "ok": true,
  "metric": "jobs",
  "tracked": true,
  "threshold": null,
  "direction": null,
  "threshold_grain": null,
  "evaluable": true,
  "note": "From the next scan on, Maplith measures this metric from the sources that scan holds — per calendar period where the formula names a date column, and one numbe…"
}
```

**Errors.**
- “This key acts with approval, and the approval queue applies finding-status changes only. A workspace admin can turn tracking on under Map › Metrics in Maplith.” Next step: Ask your human to turn tracking on for this metric under Map › Metrics in Maplith.
- “read_only” Next step: This connection only reads. An admin or builder can reconnect with Act with approval to contribute; ask a workspace admin if your account needs different acces…
- “No such metric in this map, or it is outside your key’s scope.” Next step: Call get_metric without name for the metrics this key can see, and use one of those names.

**Changes something.** Yes. Starts, changes or stops tracking a metric’s value, and sets its threshold. Only aggregates are kept, and recorded values stay when tracking stops. Only an autonomous key can call it. No person decides each call: it applies when called, and the call is logged.

**Status.** Current.

#### `state_relationships`
**Purpose.** State cross-table relationships for future scans to test.

**Use it when.** Use it to tell Maplith how your human’s files relate, so the next scan tests it against the data. To question a join already on the map, use join_review.

**Who sees it.** Listed to no key shape since it was replaced; a key it was listed to may still call it. Access: an autonomous key that reads the whole map, never a published demo key or reviewer’s key. See [Key shapes](/docs/key-shapes).

**Inputs.**
- `statement` (string, optional): Relationships as text, one per line (or JSON or CSV text).
- `relationships` (list of object or string, optional): The same as a list: {from, to, cardinality} with from and to as table.column, or {join_table, between}.
- `replace` (boolean, optional): true: remove every stated relationship not in this call.
- `remove` (list of string, optional): Ids to remove, from stated (get_task_context with no argument).

**Result.** Fields: `ok` (boolean), `added` (number), `unchanged` (number), `changed` (number), `removed` (number), `note` (string), `next` (list), `deprecated` (object).

An example, recorded from a call on a fictional company’s map (lists are cut to their first two items, long text is shortened):

```json
{"tool":"state_relationships","arguments":{"statement":"invoice.job_id references job.job_id"}}
```

```json
{
  "ok": true,
  "added": 1,
  "unchanged": 0,
  "changed": 0,
  "removed": 0,
  "note": "Saved. Each scan checks every one against the data as Maplith checks its own joins, prefers the ones that hold, and turns one that does not into a question for…",
  "next": [
    {
      "tool": "get_task_context",
      "arguments": {},
      "why": "Its stated shows each statement with what the latest scan found; one the map never measured waits for the next scan."
    }
  ],
  "deprecated": {
    "use": "join_review",
    "args": {
      "op": "state"
    },
    "remove_after": "2027-04-30"
  }
}
```

**Errors.**
- “This key's policy does not allow it to state relationships. A key with the 'autonomous' policy can; a workspace admin changes a key's policy on its page under…” Next step: Tell your human what you would state; they can paste it on Map › Terms.
- “This key sees part of the map, and stated relationships name tables across the whole map.” Next step: Ask your human to state them on Map › Terms, or to use a key that sees the whole map.
- “read_only” Next step: This connection only reads. An admin or builder can reconnect with Act with approval to contribute; ask a workspace admin if your account needs different acces…

**Changes something.** Yes. Writes the stated relationships for future scans to test. Each scan tests every statement against the data and turns one that does not hold into a question for your human. Only an autonomous key that reads the whole map can call it. No person decides each call: it applies when called, and the call is logged.

**Status.** Unlisted: it still answers a call. Replaced by `join_review` until 2027-04-30.

#### `join_review`
**Purpose.** Question or add a join, or report counts; a person decides, unless an acting key's counts agree.

**Use it when.** Use it to question a join on the map, add one it missed, or report counts after testing a join in your human’s own systems (op flag, op report); route shows the evidence of each hop first. op state tells Maplith how your human’s files relate, for the next scan to test; it is listed only to an autonomous key that reads the whole map.

**Who sees it.** Listed to 8 of 11 key shapes: A reviewer’s key in the review sandbox; Read-only, older keys; Read-only, workspace with an action policy; Acts with approval; Autonomous, whole map; Autonomous, part of the map; Autonomous, with upload consent; Autonomous, Maplith’s own workspace. Access: every key but the published demo key and a reviewer’s key outside the directory review sandbox; never a new read-only connection. See [Key shapes](/docs/key-shapes).

**Inputs.**
- `op` (one of flag, report, required): flag: open a review of a join (from, to, reason, key?, cardinality?, note?, confirm?). report: add measured counts to a review (review_id, measurement).
- `from` (string, optional): flag: one object, as the map spells it.
- `to` (string, optional): flag: the other object.
- `reason` (one of wrong_key, wrong_direction, not_related, works_like_this, missed, optional): wrong_key: not this key. wrong_direction: direction or count wrong (give cardinality). not_related: no join. works_like_this: say how in note. missed: give key or note.
- `key` (object, optional): flag: an existing join's join_spec as route or get_object gave it; for a missed join, from's file and column left, to's right.
- `cardinality` (one of 1:1, 1:N, N:1, N:M, optional): flag, wrong_direction (required) and missed: the right shape, read from → to: 1:1, 1:N, N:1 or N:M.
- `note` (string, optional): flag: how it works, in your human’s words.
- `confirm` (boolean, optional): flag: true to open the review although Maplith’s evidence contradicts it, only after your human has seen the evidence.
- `review_id` (string, optional): report: the review, from get_task_context (join_review.review_id) or from the flag answer.
- `measurement` (object, optional): report: counts from your own measurement, never a value.

**Result.** Fields: `outcome` (string), `review_id` (string), `signal_id` (string), `contradicted` (boolean), `next_step` (string), `next` (list).

An example, recorded from a call on a fictional company’s map (lists are cut to their first two items, long text is shortened):

```json
{"tool":"join_review","arguments":{"op":"flag","from":"invoice","to":"job","reason":"wrong_key"}}
```

```json
{
  "outcome": "opened",
  "review_id": "00000000-0000-4000-8000-000000000001",
  "signal_id": "00000000-0000-4000-8000-000000000002",
  "contradicted": false,
  "next_step": "A person in the workspace decides it on Map › Terms, with Maplith’s evidence beside it. To settle it with numbers, call get_task_context with this signal_id: i…",
  "next": [
    {
      "tool": "get_task_context",
      "arguments": {},
      "why": "It lists exactly what to count in your human’s own systems for this review."
    },
    {
      "tool": "join_review",
      "arguments": {},
      "why": "Count in your human’s own systems first, then add measurement: left_distinct, right_distinct, matched_distinct and sampled; counts only, never a value."
    }
  ]
}
```

**Errors.**
- “read_only” Next step: This connection only reads. An admin or builder can reconnect with Act with approval to contribute; ask a workspace admin if your account needs different acces…
- “No such object in this map, or it is outside your key’s scope.” Next step: Call search, or get_task_context with no argument, for the objects this key can see, and use one of those names.
- “No such join review, or it is outside your key’s scope.” Next step: Read the error: it says what was wrong. Correct that and call the tool again, or call tools/list for the tool's inputSchema.

**Changes something.** Yes. Opens a review of a join, or adds counts to one. It changes nothing on the map by itself: a person decides, unless a key that may act reports counts that agree on a review Maplith opened, which marks that join tested. op state writes the stated relationships for future scans to test, as state_relationships does. A person decides: the tool only asks, drafts or opens a review.

**Status.** Current. Old names that still answer: `flag_join`, `report_join_check`.

#### `get_map_overview`
**Purpose.** Replaced by get_task_context (no argument): coverage, counts, next steps.

**Use it when.** Use get_task_context with no argument instead: it answers what this tool answers, paged. This name answers as before until it is removed, with setup_check: true for the setup check (not offered on a demo key or to the in-app assistant).

**Who sees it.** Listed to no key shape since it was replaced; a key it was listed to may still call it. Access: every key. See [Key shapes](/docs/key-shapes).

**Inputs.** None.

**Result.** Fields: `map_built` (string), `fieldwork_objects` (list), `fieldwork_objects_note` (string), `map_version` (object), `scope` (string), `your_key` (object), `stated` (object), `objects_by_domain` (object), `row_counts` (object), `structure_review` (object), `row_count_details` (object), `systems` (list), `cross_system_edges` (list), `cross_system_edges_truncated` (boolean), `field_count` (number), `relation_count` (number), `finding_count` (number), `metric_count` (number), `process_count` (number), `quality` (object), `hint` (string), `glossary` (object), `map_changes` (object), `maintenance` (object), `confidence` (object), `setup` (object), `departments` (list), `journey` (object), `next` (list), `deprecated` (object), `whats_new` (list).

An example, recorded from a call on a fictional company’s map (lists are cut to their first two items, long text is shortened):

```json
{"tool":"get_map_overview","arguments":{}}
```

```json
{
  "map_built": "2026-01-15T09:00:00Z",
  "fieldwork_objects": [
    {
      "name": "poster",
      "system": "Print Desk",
      "domain": "Fieldwork",
      "item_id": "00000000-0000-4000-8000-000000000001",
      "status": "confirmed by a person",
      "note": "On the map from Fieldwork, confirmed by a person: no export has built it yet.",
      "work_done_in": []
    }
  ],
  "fieldwork_objects_note": "Object types agents reported that no export has built. auto_detected: true means nobody has confirmed it yet; confirm or correct one you checked with answer_qu…",
  "map_version": {
    "kind": "scan",
    "note": "The current map was built from the sources by a scan."
  },
  "scope": "full map",
  "your_key": {
    "shape": "autonomous",
    "sees": "the whole map",
    "may_upload": true,
    "has_action_policy": true,
    "hands_over_only": false,
    "note": "Where a tool says Needs:, compare it with shape and sees. A workspace admin changes what this key may do under Sources › Agents.",
    "wake_ups": {
      "wake_endpoints": [],
      "note": "A wake-up carries signal ids only: call get_task_context or list_signals with this key to read them. An ended endpoint is not resumed; remove it and set up a n…"
    }
  },
  "stated": {
    "stated": [
      {},
      {}
    ],
    "note": "Each question is for your human: show it with its evidence. They can correct the statement, remove it, or keep it as a join on Map › Terms."
  },
  "objects_by_domain": {
    "Finance": [
      "invoice",
      "secret_object"
    ],
    "Operations": [
      "job"
    ]
  },
  "row_counts": {},
  "structure_review": {
    "waiting": 1,
    "available": true,
    "who": "admin",
    "page": "Terms",
    "url": "/w/00000000-0000-4000-8000-000000000002/map/terms"
  },
  "row_count_details": {},
  "systems": [
    {
      "system": "erp",
      "objects": []
    },
    {
      "system": "tms",
      "objects": []
    }
  ],
  "cross_system_edges": [
    {
      "from": "invoice",
      "to": "job",
      "strength": "unverified",
      "verified_rate": null
    },
    {
      "from": "job",
      "to": "invoice",
      "strength": "unverified",
      "verified_rate": null
    }
  ],
  "cross_system_edges_truncated": false,
  "field_count": 5,
  "relation_count": 2,
  "finding_count": 1,
  "metric_count": 1,
  "process_count": 2,
  "quality": {
    "open_findings": 1,
    "relations_tested": 0,
    "relations_untested": 2,
    "relations_partial": 0,
    "note": "Relations are tested against the rows of the exports; untested means not tested against rows (a map built before row coverage was measured says so too, and get…"
  },
  "hint": "Use get_object for join keys and caveats before querying source systems.",
  "glossary": {
    "confirmed_terms": 2,
    "confirmed_by_person": 2,
    "confirmed_by_maplith": 0,
    "unconfirmed_terms": 1,
    "open_proposals": 1,
    "note": "confirmed_terms counts both kinds. Neither kind changes between scans: where a later scan disagrees with a confirmed term or join, it raises a proposal for a p…"
  },
  "map_changes": {
    "proposals_waiting": 1,
    "proposed_for_removal": [
      "secret_object"
    ],
    "proposed_objects_for_removal": [
      "secret_object"
    ],
    "proposed_for_removal_by_kind": {
      "fields": [],
      "file_choices": [],
      "metrics": [],
      "objects": [],
      "previous_source": [],
      "processes": [],
      "relationships": [],
      "renames": []
    },
    "proposals_waiting_by_kind": {
      "objects": 1,
      "fields": 0,
      "relationships": 0,
      "metrics": 0,
      "processes": 0,
      "renames": 0,
      "file_choices": 0,
      "previous_source": 0
    },
    "removal_decision": {
      "who": "admin",
      "page": "Terms",
      "note": "The legacy proposed_for_removal array lists objects only; consult the breakdown for every kind. Metric proposals are withheld for a key limited to part of the…"
    },
    "renames_held": [],
    "note": "Additions apply on the scan that finds them and are listed here once. A removal never applies on its own: the item is kept in the map, marked proposed_for_remo…"
  },
  "maintenance": {
    "objects": 3,
    "not_maintained": 0,
    "confidence_effect": 0,
    "note": "No object on the map is marked not maintained."
  },
  "confidence": {
    "score": 23,
    "as_of": "2026-01-15T09:00:00Z",
    "counts_by_kind": {
      "joins_contradicted": 0,
      "joins_unsure": 1,
      "field_identity": 1,
      "open_questions": 3,
      "glossary_contradicted": 1,
      "not_maintained": 0
    },
    "measured": {
      "joins_tested": 0,
      "joins_total": 2,
      "few": true
    },
    "raisers": [
      {},
      {}
    ],
    "note": "How far an agent can trust the map today, 0-100, from counts the map holds, within your scope: contradicted and unsure joins, open questions, contradicted glos…"
  },
  "setup": {
    "complete": false,
    "gaps": 10,
    "urgent": 0,
    "attention": 8,
    "info": 2,
    "jobs": 9,
    "first": [
      "1 “Maplith asks if a new column is one it knows” signal in the last 30 days, and nothing is set up to handle them",
      "The playbook “playbook” runs on nobody: it is a draft"
    ]
  },
  "departments": [],
  "journey": {
    "stage": "confirm",
    "summary": "The map is built; 4 items wait for a person to confirm.",
    "done": [
      "action_policy",
      "map_built"
    ],
    "keep_fresh": {
      "ask_your_human": "Ask your human how often the map should follow the business: weekly or daily. Signals and rules are only as fresh as the last build. If a scheduled re-fetch is…",
      "one_source": "Each build reads all current connections and its new upload, into one map. Earlier uploads keep their map without their files being read again. Uploads can arr…",
      "recommended": "path_1",
      "quota": "At most once a day. Scans are bounded by a daily scan budget per workspace, in which many small updates fit and a heavy scan takes more. Every build_map spends…",
      "path_1": {},
      "path_2": {}
    },
    "steps": [
      {},
      {}
    ]
  },
  "next": [
    {
      "tool": "get_task_context",
      "arguments": {},
      "why": "Each open setup job, its missing links and the next step."
    },
    {
      "tool": "list_signals",
      "arguments": {},
      "why": "Poll list_signals for work, passing the time you last looked as since."
    }
  ],
  "deprecated": {
    "use": "get_task_context",
    "args": {},
    "remove_after": "2027-04-30"
  },
  "whats_new": []
}
```

**Errors.** No refusal is documented for this tool: it answers every key it is listed to, within that key’s scope.

**Changes something.** No. It only reads.

**Status.** Unlisted: it still answers a call. Replaced by `get_task_context` until 2027-04-30.

#### `get_object`
**Purpose.** Read an object’s fields, relations, caveats and the documents that touch it.

**Use it when.** Use it for an object you can name, before you act on it. Use search when you do not know the name, route for the path between two objects, and ask when a question spans several parts of the map.

**Who sees it.** Listed to all 11 key shapes. Access: every key. See [Key shapes](/docs/key-shapes).

**Inputs.**
- `statements_query` (string, optional): Rank rules; never filter them.
- `statements_cursor` (string, optional): Next page; keep the same query.
- `statement_key` (string, optional): Read one applicable rule in full.
- `statements_only` (boolean, optional): Rules only ({} if none), for a client that cut a long answer.
- `context` (object, optional): {"client": "<company>"}, not a person: adds its variation.
- `name` (string, required): The object name, e.g. "invoice"; case-insensitive.

**Result.** Fields: `name` (string), `domain` (string), `description` (string), `source` (string), `also_in` (list), `fields` (list), `grain` (null), `row_count` (null), `aliases` (list), `aliases_note` (string), `row_count_details` (object), `same_source_as` (list), `same_source_as_truncated` (boolean), `scan_name` (string), `basis` (string), `pii_fields` (list), `relations` (list), `findings` (list), `lineage` (object), `automations` (list), `glossary` (object), `used_by_workflows` (list), `variations` (object).

An example, recorded from a call on a fictional company’s map (lists are cut to their first two items, long text is shortened):

```json
{"tool":"get_object","arguments":{"name":"job"}}
```

```json
{
  "name": "job",
  "domain": "Operations",
  "description": "job",
  "source": "tms/jobs.csv",
  "also_in": [],
  "fields": [
    {
      "name": "job_id",
      "type": "STRING",
      "description": "key",
      "personal": null,
      "pii": false,
      "field_id": "00000000-0000-4000-8000-000000000001"
    },
    {
      "name": "customer_name",
      "type": "STRING",
      "personal": {},
      "pii": true
    }
  ],
  "grain": null,
  "row_count": null,
  "aliases": [
    "job"
  ],
  "aliases_note": "Read-side lookup hints from the scan name and matching primary-file grain; they do not rename or split this object, and an ambiguous alias requires a precise c…",
  "row_count_details": {
    "source": "tms/jobs.csv",
    "grain": null,
    "rows_are": null,
    "note": "Counted rows in the primary source, at its recorded grain; never a distinct count of the named entity unless that grain establishes it."
  },
  "same_source_as": [],
  "same_source_as_truncated": false,
  "scan_name": "job",
  "basis": "guessed",
  "pii_fields": [
    "customer_name"
  ],
  "relations": [
    {
      "from_object": "invoice",
      "to_object": "job",
      "via": "invoice.job_id = job.job_id",
      "strength": "untested",
      "caveat": null,
      "verified": {},
      "join_spec": {},
      "cardinality": "unknown",
      "verb": null,
      "provenance": "proposed",
      "basis": "guessed",
      "declared_by": null
    },
    {
      "via": "invoice joins job on erp/invoices.csv#job_id = tms/jobs.csv#job_id (confirmed in the glossary)",
      "strength": "untested",
      "caveat": "This scan did not find this join; the confirmed key is kept. The measurement shown is from the last scan that tested it, if any.",
      "verified": {},
      "verb": null,
      "cardinality": "1:N",
      "provenance": "confirmed",
      "from_object": "job",
      "to_object": "invoice",
      "join_spec": {},
      "cardinality_pinned": true,
      "confirmed_by": "person"
    }
  ],
  "findings": [],
  "lineage": {
    "copies": [
      {}
    ],
    "documents": []
  },
  "automations": [
    {
      "name": "automation",
      "system": "system",
      "status": "never_run",
      "last_run_at": null,
      "last_status": null,
      "reads": false,
      "writes": true
    }
  ],
  "glossary": {
    "status": "confirmed",
    "definition": "definition",
    "confirmed_by": {
      "by": "person"
    },
    "note": "Your team confirmed this term. No later scan changes or removes it: where one disagrees, Map › Terms asks your team. A relation or route hop marked provenance:…"
  },
  "used_by_workflows": [],
  "variations": {
    "confirmed": 1,
    "context_objects": [
      "linguist"
    ],
    "how": "Pass context {\"linguist\": \"<name>\"} to get the confirmed variation for the one linguist you work for. Counts only here: no names."
  }
}
```

**Errors.**
- “No such object in this map, or it is outside your key’s scope.” Next step: Call search, or get_task_context with no argument, for the objects this key can see, and use one of those names.

**Changes something.** No. It only reads.

**Status.** Current.

#### `search`
**Purpose.** Find map items and the documents that touch them.

**Use it when.** Use it when you do not know the name of what you need. For a task in words, call get_task_context; for an object you can name, call get_object.

**Who sees it.** Listed to all 11 key shapes. Access: every key. See [Key shapes](/docs/key-shapes).

**Inputs.**
- `query` (string, required): One term or phrase, e.g. "VAT"; not a keyword list.

**Result.** Fields: `matches` (list), `results` (list), `counts` (object), `glossary` (object).

An example, recorded from a call on a fictional company’s map (lists are cut to their first two items, long text is shortened):

```json
{"tool":"search","arguments":{"query":"job"}}
```

```json
{
  "matches": [
    {
      "type": "object",
      "name": "invoice",
      "domain": "Finance",
      "snippet": "invoice"
    },
    {
      "type": "object",
      "name": "job",
      "domain": "Operations",
      "snippet": "job"
    }
  ],
  "results": [
    {
      "id": "object:invoice",
      "title": "invoice",
      "url": "https://app.maplith.com/w/00000000-0000-4000-8000-000000000001/map/objects/invoice",
      "snippet": "invoice"
    },
    {
      "id": "object:job",
      "title": "job",
      "url": "https://app.maplith.com/w/00000000-0000-4000-8000-000000000001/map/objects/job",
      "snippet": "job"
    }
  ],
  "counts": {
    "objects": 3,
    "findings": 1,
    "processes": 2,
    "metrics": 1,
    "documents": 2,
    "playbooks": 1,
    "workflows": 1
  },
  "glossary": {
    "confirmed": [
      "invoice",
      "job"
    ],
    "unconfirmed": [
      "secret_object"
    ],
    "note": "Confirmed objects are business terms, confirmed either by a person in the workspace or by Maplith's build on its own evidence. confirmed_by_maplith lists the o…"
  }
}
```

**Errors.**
- “Empty query.” Next step: Pass query: a word or a name to look for on the map.

**Changes something.** No. It only reads.

**Status.** Current.

#### `fetch`
**Purpose.** Fetch a map item by search reference or stable finding key.

**Use it when.** Use it to read the item a search result points to, when your client can call only search and fetch. If your client can call the direct tools, use get_object, get_process or get_metric instead.

**Who sees it.** Listed to all 11 key shapes. Access: every key. See [Key shapes](/docs/key-shapes).

**Inputs.**
- `id` (string, required): An id from search or next, e.g. object:invoice.

**Result.** Fields: `id` (string), `title` (string), `text` (string), `url` (string), `metadata` (object).

An example, recorded from a call on a fictional company’s map (lists are cut to their first two items, long text is shortened):

```json
{"tool":"fetch","arguments":{"id":"finding:00000000-0000-4000-8000-000000000001"}}
```

```json
{
  "id": "finding:00000000-0000-4000-8000-000000000001",
  "title": "finding",
  "text": "finding\n\ndescription\n\nEvidence:\n\nRecommendation: null\nStatus: open",
  "url": "https://app.maplith.com/w/00000000-0000-4000-8000-000000000002/findings",
  "metadata": {
    "kind": "finding",
    "status": "open",
    "finding_key": "00000000-0000-4000-8000-000000000003"
  }
}
```

**Errors.**
- “No such object in this map, or it is outside your key’s scope.” Next step: Call search, or get_task_context with no argument, for the objects this key can see, and use one of those names.
- “No such finding in this map, or it is outside your key’s scope.” Next step: Call list_findings for the findings this key can see, and use one of those ids.
- “id must be object:<name>, finding:<id>, process:<object type>, metric:<name>, rule:<id>, source:<system>, document:<path>, playbook:<id> or workflow:<id> — tak…” Next step: Use the exact search reference, or finding:<finding_key> from list_signals or list_findings, then call fetch again.

**Changes something.** No. It only reads.

**Status.** Current.

#### `get_process`
**Purpose.** Read one process in full, or list them all when no object_type is given.

**Use it when.** Use it to see how work moves between steps and where cases deviate; call it without object_type to list the processes. For the object a process centres on, use get_object.

**Who sees it.** Listed to all 11 key shapes. Access: every key. See [Key shapes](/docs/key-shapes).

**Inputs.**
- `object_type` (string, optional): Central object of the process to read, as the list spells it, e.g. "order".

**Result.** Fields: `object_type` (string), `case_count` (number), `event_count` (number), `steps` (list), `happy_path` (list), `happy_path_share` (number), `variants` (list), `edges` (list), `display_object_type` (string).

An example, recorded from a call on a fictional company’s map (lists are cut to their first two items, long text is shortened):

```json
{"tool":"get_process","arguments":{"object_type":"job"}}
```

```json
{
  "object_type": "job",
  "case_count": 3,
  "event_count": 6,
  "steps": [
    {
      "name": "created"
    }
  ],
  "happy_path": [
    "created"
  ],
  "happy_path_share": 0.5,
  "variants": [],
  "edges": [],
  "display_object_type": "job"
}
```

**Errors.**
- “No such process in this map, or it is outside your key’s scope.” Next step: Call get_process without object_type for the processes this key can see, and use one of those.

**Changes something.** No. It only reads.

**Status.** Current. Old names that still answer: `list_processes`.

#### `get_metric`
**Purpose.** Read one metric in full, or list them all when no name is given.

**Use it when.** Use it to read a metric’s formula, grounding and caveats before you cite a number, or to list the metrics. To start or stop tracking one, use configure_metric.

**Who sees it.** Listed to all 11 key shapes. Access: every key. See [Key shapes](/docs/key-shapes).

**Inputs.**
- `name` (string, optional): The metric to read, as the list spells it.

**Result.** Fields: `name` (string), `description` (string), `formula` (string), `unit` (string), `grounding` (list), `caveats` (list), `tracked` (boolean), `threshold` (null), `direction` (null), `broken_reason` (null), `formula_aliases` (list), `values` (list).

An example, recorded from a call on a fictional company’s map (lists are cut to their first two items, long text is shortened):

```json
{"tool":"get_metric","arguments":{"name":"jobs"}}
```

```json
{
  "name": "jobs",
  "description": "",
  "formula": "COUNT(job.job_id)",
  "unit": "",
  "grounding": [
    {
      "field": "job_id",
      "object": "job"
    }
  ],
  "caveats": [],
  "tracked": true,
  "threshold": null,
  "direction": null,
  "broken_reason": null,
  "formula_aliases": [],
  "values": [
    {
      "value": 42,
      "unit": "",
      "at": "2026-01-15T09:00:00Z",
      "until": "2026-01-15T09:00:00Z",
      "period": "September 2026"
    }
  ]
}
```

**Errors.**
- “No such metric in this map, or it is outside your key’s scope.” Next step: Call get_metric without name for the metrics this key can see, and use one of those names.

**Changes something.** No. It only reads.

**Status.** Current. Old names that still answer: `list_metrics`.

#### `route`
**Purpose.** Find a verified route between objects, with join keys and caveats.

**Use it when.** Use it before you fetch data in your human’s own systems: it says where to look, by which key, and how far to trust each hop. For one object, use get_object.

**Who sees it.** Listed to all 11 key shapes. Access: every key. See [Key shapes](/docs/key-shapes).

**Inputs.**
- `from` (string, required): Start object, e.g. "order".
- `to` (string, required): Target object, e.g. "shipment".

**Result.** Fields: `from` (string), `to` (string), `reachable` (boolean), `hops` (list), `systems` (list), `weakest_link` (string), `how_to_use` (string), `glossary` (object), `lineage` (list).

An example, recorded from a call on a fictional company’s map (lists are cut to their first two items, long text is shortened):

```json
{"tool":"route","arguments":{"from":"invoice","to":"job"}}
```

```json
{
  "from": "invoice",
  "to": "job",
  "reachable": true,
  "hops": [
    {
      "from": "invoice",
      "to": "job",
      "join_spec": {},
      "cardinality": "1:N",
      "provenance": "confirmed",
      "confirmed_by": "person",
      "verb": null,
      "direction": {},
      "via": "invoice joins job on erp/invoices.csv#job_id = tms/jobs.csv#job_id (confirmed in the glossary)",
      "strength": "untested",
      "verified_rate": null,
      "sure": "unmeasured"
    }
  ],
  "systems": [
    {
      "object": "invoice",
      "system": "erp",
      "file": "erp/invoices.csv",
      "also_in": [],
      "pii_fields": [],
      "key_columns": [],
      "work_done_in": []
    },
    {
      "object": "job",
      "system": "tms",
      "file": "tms/jobs.csv",
      "also_in": [],
      "pii_fields": [],
      "key_columns": [],
      "work_done_in": []
    }
  ],
  "weakest_link": "invoice → job via erp/invoices.csv.job_id = tms/jobs.csv.job_id (untested) — This scan did not find this join; the confirmed key is kept. The measurement shown…",
  "how_to_use": "Walk the hops in your human’s own systems with your own credentials. Each hop’s join_spec is the join to run: leftFile.leftColumn = rightFile.rightColumn, with…",
  "glossary": {
    "confirmed": [
      "invoice",
      "job"
    ],
    "unconfirmed": [],
    "note": "Confirmed objects are business terms, confirmed either by a person in the workspace or by Maplith's build on its own evidence. confirmed_by_maplith lists the o…"
  },
  "lineage": [
    {
      "object": "invoice",
      "copies": [],
      "documents": []
    },
    {
      "object": "job",
      "copies": [],
      "documents": []
    }
  ]
}
```

**Errors.**
- “No such object in this map, or it is outside your key’s scope.” Next step: Call search, or get_task_context with no argument, for the objects this key can see, and use one of those names.
- “Both from and to are required.” Next step: Correct the argument the error names (the tool's inputSchema in tools/list gives its shape), then call the tool again.

**Changes something.** No. It only reads.

**Status.** Current.

#### `ask`
**Purpose.** Answer a question from the map or Maplith’s documentation, with sources.

**Use it when.** Use it when a question spans several parts of the map, or you do not know which tool holds the answer. For one known thing the direct tool is faster: get_object, route, get_metric, list_findings or search.

**Who sees it.** Listed to all 11 key shapes. Access: every key. See [Key shapes](/docs/key-shapes).

**Inputs.**
- `question` (string, required): One question, e.g. "Which systems hold customer data?"

**Result.** Fields: `answered` (boolean), `answer` (string), `citations` (list), `confidence` (string), `not_established` (null), `unmeasured_joins` (list), `grounding` (object), `glossary` (object), `how_to_use` (string), `next` (list).

An example, recorded from a call on a fictional company’s map (lists are cut to their first two items, long text is shortened):

```json
{"tool":"ask","arguments":{"question":"What is a job, and where does it come from?"}}
```

```json
{
  "answered": true,
  "answer": "A job is one assignment in the jobs export, keyed by job_id.",
  "citations": [
    {
      "id": "object:secret_object",
      "kind": "object",
      "title": "secret_object",
      "url": "https://app.maplith.com/w/00000000-0000-4000-8000-000000000001/map/objects/secret_object"
    }
  ],
  "confidence": "low",
  "not_established": null,
  "unmeasured_joins": [],
  "grounding": {
    "elements_visible": 14,
    "elements_in_context": 14,
    "context_truncated": false,
    "context_note": "The model saw 14 of 14 eligible elements; this describes context selection, not map completeness.",
    "signals_truncated": false,
    "signals_unavailable": false,
    "citations_dropped": 0
  },
  "glossary": {
    "confirmed": [],
    "unconfirmed": [
      "secret_object"
    ],
    "note": "Confirmed objects are business terms, confirmed either by a person in the workspace or by Maplith's build on its own evidence. confirmed_by_maplith lists the o…"
  },
  "how_to_use": "Answered from the map’s metadata within this key’s scope — and, for a question about Maplith itself, from Maplith’s own public documentation (cited as doc:<pag…",
  "next": [
    {
      "tool": "fetch",
      "arguments": {},
      "why": "Read the cited object in full."
    }
  ]
}
```

**Errors.**
- “question is required — one question in plain language.” Next step: Ask one question in plain language, within the length the error names.
- “A question is at most 1000 characters. Ask the question, not the document — search and fetch read the map directly.” Next step: Ask one question in plain language, within the length the error names.

**Changes something.** No. It only reads.

**Status.** Current.

### Findings

The data problems the scans documented, and what your human decided about each.

| Tool | What it answers | Changes something | Key shapes |
|---|---|---|---|
| `update_finding_status` | Change a finding’s status, immediately or after approval. | Yes | 6 of 11 |
| `list_findings` | List documented data problems with evidence and recommendations. | No | all 11 |

#### `update_finding_status`
**Purpose.** Change a finding’s status, immediately or after approval.

**Use it when.** Use it when your human has decided what a finding is. For work on a signal, use record_action.

**Who sees it.** Listed to 6 of 11 key shapes: A reviewer’s key in the review sandbox; Acts with approval; Autonomous, whole map; Autonomous, part of the map; Autonomous, with upload consent; Autonomous, Maplith’s own workspace. Access: a key raised above read-only. See [Key shapes](/docs/key-shapes).

**Inputs.**
- `finding_id` (string, required): Finding id from list_findings
- `status` (one of open, planned, automated, dismissed, required): automated: an automation handles it; dismissed: not a problem.

**Result.** Fields: `ok` (boolean), `finding_id` (string), `previous_status` (string), `status` (string).

An example, recorded from a call on a fictional company’s map (lists are cut to their first two items, long text is shortened):

```json
{"tool":"update_finding_status","arguments":{"finding_id":"00000000-0000-4000-8000-000000000001","status":"planned"}}
```

```json
{
  "ok": true,
  "finding_id": "00000000-0000-4000-8000-000000000001",
  "previous_status": "open",
  "status": "planned"
}
```

**Errors.**
- “read_only” Next step: This connection only reads. An admin or builder can reconnect with Act with approval to contribute; ask a workspace admin if your account needs different acces…
- “Finding not found.” Next step: Call list_findings for the findings on the latest map in your key's scope, and use one of those ids.
- “Invalid finding_id.” Next step: Pass the id of a finding exactly as list_findings returned it.

**Changes something.** Yes. Changes a finding’s status to open, planned, automated or dismissed. The change is logged. An autonomous key applies it at once. A key that acts with approval waits for a person to decide, in the cases named above.

**Status.** Current.

#### `list_findings`
**Purpose.** List documented data problems with evidence and recommendations.

**Use it when.** Use it for the catalogue of documented discrepancies. For new work and for what changed since a timestamp, use list_signals.

**Who sees it.** Listed to all 11 key shapes. Access: every key. See [Key shapes](/docs/key-shapes).

**Inputs.**
- `status` (one of open, planned, automated, dismissed, approved, optional): open (not addressed), planned, automated (an automation handles it), dismissed (not a problem) or approved (fix approved).

**Result.** Fields: `findings` (list).

An example, recorded from a call on a fictional company’s map (lists are cut to their first two items, long text is shortened):

```json
{"tool":"list_findings","arguments":{}}
```

```json
{
  "findings": [
    {
      "id": "00000000-0000-4000-8000-000000000001",
      "finding_key": "00000000-0000-4000-8000-000000000002",
      "title": "finding",
      "description": "description",
      "evidence": [],
      "recommendation": null,
      "status": "open",
      "domains": [],
      "decision": "to_decide",
      "suggested_next_steps": [],
      "object_aliases": []
    }
  ]
}
```

**Errors.** No refusal is documented for this tool: it answers every key it is listed to, within that key’s scope.

**Changes something.** No. It only reads.

**Status.** Current.

### Workflows

How work is meant to run: rules and their live checks, playbooks, and the automations the business already has.

| Tool | What it answers | Changes something | Key shapes |
|---|---|---|---|
| `register_automation` | Record an automation and the map objects it reads or writes. | Yes | 6 of 11 |
| `draft_playbook` | Draft a playbook for approval, or record a person’s stated manual time. | Yes | 5 of 11 |
| `report_observation` | Report observations for a live check an admin bound to this key. | Yes | by setting |
| `list_automations` | List registered automations and the map objects they use. | No | all 11 |
| `get_rule` | List the rules your key may see, or read one with its live checks’ reporting contract. | No | by setting |

#### `register_automation`
**Purpose.** Record an automation and the map objects it reads or writes.

**Use it when.** Use it to tell Maplith about an automation your human’s business runs in its own systems and the objects it reads and writes. list_automations shows what is registered.

**Who sees it.** Listed to 6 of 11 key shapes: A reviewer’s key in the review sandbox; Acts with approval; Autonomous, whole map; Autonomous, part of the map; Autonomous, with upload consent; Autonomous, Maplith’s own workspace. Access: a key raised above read-only; it applies only for an autonomous key. See [Key shapes](/docs/key-shapes).

**Inputs.**
- `name` (string, required): What the business calls it, at most 200 characters.
- `system` (string, required): Where it runs, e.g. the platform or scheduler, at most 100 characters.
- `reads` (list of string, optional): Objects of this map it reads, as the map spells them.
- `writes` (list of string, optional): Objects of this map it writes or changes, as the map spells them.
- `status` (one of active, paused, never_run, unknown, optional): active, paused, never_run or unknown.
- `last_run_at` (string, optional): ISO 8601 timestamp of its last run, if known.
- `last_status` (one of succeeded, failed, optional): How its last run ended, if known: succeeded or failed.
- `team` (string, optional): The team that owns it, if known.
- `modules` (integer, optional): How many steps it has, if known.

**Result.** Fields: `ok` (boolean), `outcome` (string), `id` (string), `status` (string), `reads` (list), `writes` (list), `provenance` (string), `note` (string).

An example, recorded from a call on a fictional company’s map (lists are cut to their first two items, long text is shortened):

```json
{"tool":"register_automation","arguments":{"name":"nightly admin export","system":"system","reads":["invoice"]}}
```

```json
{
  "ok": true,
  "outcome": "created",
  "id": "00000000-0000-4000-8000-000000000001",
  "status": "unknown",
  "reads": [
    "invoice"
  ],
  "writes": [],
  "provenance": "declared",
  "note": "Registered against these objects. list_automations and Workflows › Playbooks show it. Call register_automation again with the same name and system to report ho…"
}
```

**Errors.**
- “This key acts with approval, and registering an automation is not queued for approval. A key with the 'autonomous' policy can register it; an admin can change…” Next step: Tell your human about the automation; an admin can give this key the 'autonomous' policy under Sources › Agents, and you register it then.
- “read_only” Next step: This connection only reads. An admin or builder can reconnect with Act with approval to contribute; ask a workspace admin if your account needs different acces…
- “Not an object of the current map: invoice. Nothing was registered — use the names in known_objects.” Next step: Use names from known_objects (or search and get_object), then call register_automation again.

**Changes something.** Yes. Adds or updates an entry in the map. It never runs or connects to the automation, and an entry a person confirmed keeps its name, team and objects. Only an autonomous key can call it. No person decides each call: it applies when called, and the call is logged.

**Status.** Current.

#### `draft_playbook`
**Purpose.** Draft a playbook for approval, or record a person’s stated manual time.

**Use it when.** Use it to draft a playbook for an admin to approve, or to record the manual time a person states; a new playbook can go into a workflow at once (workflow, from search). To read the playbooks that exist, use get_task_context or search.

**Who sees it.** Listed to 5 of 11 key shapes: A reviewer’s key in the review sandbox; Acts with approval; Autonomous, whole map; Autonomous, with upload consent; Autonomous, Maplith’s own workspace. Access: a key that acts with approval or autonomously, or a viewer’s reporting connection, and reads the whole map: steps (time only a key that acts); whole only a key of Maplith’s own workspace or the directory review sandbox’s reviewer; never a published demo key or a reviewer’s key elsewhere. See [Key shapes](/docs/key-shapes).

**Inputs.**
- `part` (one of whole, steps, time, required): time: stated manual time (playbook_id, time_mode). steps: steps for a playbook Maplith wrote (playbook_id, steps, handoff). whole: a new playbook for an unhandled kind.
- `time_mode` (one of status, ask, answer, skip, optional): time: status first; ask claims the question; answer or skip records the person's response.
- `manual_minutes` (number, optional): time answer: only the person’s stated minutes, at most two decimal places.
- `time_basis` (one of person_stated, optional): person_stated: the person gave these minutes or chose to skip; never an estimate.
- `time_statement_id` (string or null, optional): time: latest statement token from status; null before the first answer.
- `playbook_id` (string, optional): steps or time: the playbook id from get_task_context, or after playbook: in a search result.
- `steps` (list of string, optional): Both parts: the steps in order, a plain sentence each.
- `handoff` (list of string, optional): steps: when a person takes over.
- `completion` (string, optional): How anyone can tell it is done (whole needs it).
- `signal_kind` (string, optional): whole: the kind, as list_signals names it.
- `title` (string, optional): whole: a title in plain words.
- `purpose` (string, optional): whole: exactly what it does.
- `problem` (string, optional): whole: the recurring problem it removes.
- `value` (string, optional): whole: the benefit the evidence supports; never invent savings.
- `trigger` (string, optional): whole: when it applies.
- `exceptions` (string, optional): whole: when not to follow it.
- `licence` (list of object, optional): whole: [{signal_kind, operations: ['hq.<op>'], max_per_day, close}]: operations per day and whether it may close.
- `signal_ids` (list of string, optional): whole: the signals it was drawn from.
- `workflow` (string, optional): whole: also put it in this workflow.

**Result.** Fields: `ok` (boolean), `outcome` (string), `draft_id` (string), `playbook_id` (string), `status` (string), `note` (string), `next_step` (string).

An example, recorded from a call on a fictional company’s map (lists are cut to their first two items, long text is shortened):

```json
{"tool":"draft_playbook","arguments":{"part":"steps","playbook_id":"00000000-0000-4000-8000-000000000001","steps":["Look the customer up in the web shop by the email the conversation came from.","Tell the customer what the numbers show and when they update."],"handoff":["The customer asks for a refund."],"completion":"The customer has an answer and the conversation is closed."}}
```

```json
{
  "ok": true,
  "outcome": "proposed",
  "draft_id": "00000000-0000-4000-8000-000000000002",
  "playbook_id": "00000000-0000-4000-8000-000000000001",
  "status": "draft",
  "note": "Drafted for a workspace admin to approve on Workflows › Playbooks. Until then the playbook keeps its current steps, and the draft is served to no agent.",
  "next_step": "Go on handling cases by the playbook as it stands: hand each case to a person until the new steps are approved."
}
```

**Errors.**
- “read_only” Next step: This connection only reads. An admin or builder can reconnect with Act with approval to contribute; ask a workspace admin if your account needs different acces…
- “This needs a key that acts and sees the whole map. Nothing was saved. A workspace admin changes what this key may do on its page under Sources › Agents.” Next step: Use your personal assistant connection, or let the person answer in Maplith when the question is available in Work.
- “This key cannot draft a playbook's steps: that takes a key that acts and sees the whole map. Nothing was drafted.” Next step: Follow the playbook as it stands: hand the case to a person, and tell your human that a key which acts and sees the whole map can draft the steps. A workspace…

**Changes something.** Yes. Saves a draft playbook, or a person’s stated manual time, and can put a new draft in a workflow of the workspace. A draft is not in use until an admin approves it, and an agent cannot approve, edit or delete one, or take one out of a workflow. A person decides: the tool only asks, drafts or opens a review.

**Status.** Current. Old names that still answer: `draft_playbook_steps`, `propose_playbook`.

#### `report_observation`
**Purpose.** Report observations for a live check an admin bound to this key.

**Use it when.** Use it after you followed get_rule’s instructions for a live check an admin bound to your key, with your own connectors.

**Who sees it.** Listed by a setting of the workspace, not by key shape alone. Access: a key an admin bound to a live check, including a read-only connection. See [Key shapes](/docs/key-shapes).

**Inputs.**
- `watch_id` (string, required): A live check's id, from get_rule.
- `type` (one of snapshot, fired, cleared, heartbeat, test, required): snapshot: every group (mode A); fired, cleared: one group; heartbeat: nothing to report; test: checks the contract.
- `observed_at` (string, required): When you looked, ISO 8601 with a zone; at most 24 hours old.
- `groups` (list of object, optional): Every group that holds now; [] when none.
- `spec_version` (number, optional): As get_rule gave it; an older one is refused.
- `event_id` (string, optional): Your id for it (printable ASCII, ≤100); a retry with it returns the first receipt.
- `observer` (string, optional): Optional: what you are, e.g. "scheduled-assistant".

**Result.** Fields: `outcome` (string), `receipt` (object), `groups` (list).

An example, recorded from a call on a fictional company’s map (lists are cut to their first two items, long text is shortened):

```json
{"tool":"report_observation","arguments":{"watch_id":"00000000-0000-4000-8000-000000000001","type":"heartbeat","observed_at":"2026-01-15T09:00:00Z"}}
```

```json
{
  "outcome": "accepted",
  "receipt": {
    "id": "00000000-0000-4000-8000-000000000002",
    "type": "heartbeat",
    "watch": "00000000-0000-4000-8000-000000000001",
    "outcomes": {},
    "signal_ids": [],
    "group_count": 0,
    "observed_at": "2026-01-15T09:00:00Z",
    "received_at": "2026-01-15T09:00:00Z",
    "spec_version": 1
  },
  "groups": []
}
```

**Errors.**
- “Live rules are not available to this key. An admin binds a key to a live check in Rules › Watch for.” Next step: Ask your human: an admin binds this key to a live check in Maplith, under Rules › Watch for.
- “"type" must be one of fired, cleared, snapshot, heartbeat, test.” Next step: Correct the report as the error says (get_rule gives the exact shape this live check expects), then send it again with report_observation.

**Changes something.** Yes. Records what you observed for a live check, which raises or clears the rule’s own signal. Maplith checks each group against the rule’s conditions and refuses a report that does not fit the contract. No person decides each call: it applies when called, and the call is logged.

**Status.** Current.

#### `list_automations`
**Purpose.** List registered automations and the map objects they use.

**Use it when.** Use it to see what depends on an object, and to find automations that never ran or failed. register_automation adds or updates one.

**Who sees it.** Listed to all 11 key shapes. Access: every key. See [Key shapes](/docs/key-shapes).

**Inputs.**
- `object` (string, optional): Only automations that read or write this object, as the map spells it.
- `status` (one of active, paused, never_run, unknown, optional): Only automations in this state: active, paused, never_run or unknown.

**Result.** Fields: `automations` (list), `note` (string).

An example, recorded from a call on a fictional company’s map (lists are cut to their first two items, long text is shortened):

```json
{"tool":"list_automations","arguments":{}}
```

```json
{
  "automations": [
    {
      "id": "00000000-0000-4000-8000-000000000001",
      "name": "automation",
      "system": "system",
      "team": "team",
      "modules": null,
      "status": "never_run",
      "last_run_at": null,
      "last_status": null,
      "reads": [],
      "writes": [],
      "provenance": "declared",
      "updated_at": "2026-01-15T09:00:00Z"
    }
  ],
  "note": "What was registered about each automation, sorted so the ones that need a look come first. Maplith does not run or watch these automations: a status is what wa…"
}
```

**Errors.** No refusal is documented for this tool: it answers every key it is listed to, within that key’s scope.

**Changes something.** No. It only reads.

**Status.** Current.

#### `get_rule`
**Purpose.** List the rules your key may see, or read one with its live checks’ reporting contract.

**Use it when.** Use it to list the rules your key may see, or to read one together with the reporting contract of its live checks. To report what you observed for a live check, use report_observation.

**Who sees it.** Listed by a setting of the workspace, not by key shape alone. Access: a key, where live rules are on for the workspace (in a demonstration workspace, a key bound to a live check). See [Key shapes](/docs/key-shapes).

**Inputs.**
- `rule_id` (string, optional): The rule id from the list, or the id of one of its live checks.

**Result.** Fields: `rules` (list).

An example, recorded from a call on a fictional company’s map (lists are cut to their first two items, long text is shortened):

```json
{"tool":"get_rule","arguments":{}}
```

```json
{
  "rules": [
    {
      "id": "00000000-0000-4000-8000-000000000001",
      "name": "rule",
      "enabled": true,
      "state": "on",
      "checked": [],
      "fired": {},
      "live_checks": []
    },
    {
      "id": "00000000-0000-4000-8000-000000000002",
      "name": "retired rule",
      "enabled": false,
      "state": "retired",
      "checked": [],
      "retired_at": "2026-01-15T09:00:00Z",
      "retired_reason": "retired reason.",
      "live_checks": []
    }
  ]
}
```

**Errors.**
- “Live rules are not available to this key. An admin binds a key to a live check in Rules › Watch for.” Next step: Ask your human: an admin binds this key to a live check in Maplith, under Rules › Watch for.

**Changes something.** No. It only reads.

**Status.** Current. Old names that still answer: `get_watch`, `list_watches`.

### Work

The loop of an agent’s work: read the queue, get the context, take a signal, ask before you act, record what you did.

| Tool | What it answers | Changes something | Key shapes |
|---|---|---|---|
| `take_signal` | Take a signal on a lease, or plan it within the workspace’s limits. | Yes | 6 of 11 |
| `record_action` | Record work and its outcome; close or hand over a signal. | Yes | 7 of 11 |
| `list_requests` | Read the decisions and status of your key’s action requests. | No | unlisted |
| `request_action` | Ask permission for an operation, or propose a rule change for a person. | Yes | 8 of 11 |
| `redeem_action_grant` | Spend a single-use signed grant for an allowed action. | Yes | 7 of 11 |
| `list_signals` | Read the scoped work queue, lifecycle and counts. | No | all 11 |
| `get_task_context` | Start any work here: rules, context and playbooks for a task, a signal or a support case. | No | all 11 |
| `get_value_summary` | Summarise work and its stated value over a period. | No | all 11 |

#### `take_signal`
**Purpose.** Take a signal on a lease, or plan it within the workspace’s limits.

**Use it when.** Use it to say you are working on a signal, so no other agent does the same work, or to plan it for later. Finish with record_action.

**Who sees it.** Listed to 6 of 11 key shapes: A reviewer’s key in the review sandbox; Acts with approval; Autonomous, whole map; Autonomous, part of the map; Autonomous, with upload consent; Autonomous, Maplith’s own workspace. Access: a key raised above read-only. See [Key shapes](/docs/key-shapes).

**Inputs.**
- `signal_id` (string, required): The signal to take.
- `signal_version` (string, required): The signal's created_at, exactly as read.
- `hours` (number, optional): How long to hold it, 1 to 72.
- `plan` (boolean, optional): Plan it for later instead, until due.
- `due` (string, optional): With plan: when it will be handled (ISO 8601), within the workspace's cap per urgency.

**Result.** Fields: `ok` (boolean), `signal_id` (string), `state` (string), `held` (string), `held_until` (string), `episode` (number), `note` (string), `next` (list).

An example, recorded from a call on a fictional company’s map (lists are cut to their first two items, long text is shortened):

```json
{"tool":"take_signal","arguments":{"signal_id":"00000000-0000-4000-8000-000000000001","signal_version":"2026-01-15T09:00:00Z","hours":1}}
```

```json
{
  "ok": true,
  "signal_id": "00000000-0000-4000-8000-000000000001",
  "state": "in_progress",
  "held": "you",
  "held_until": "2026-01-15T09:00:00Z",
  "episode": 1,
  "note": "It is yours until held_until: other agents see it held and cannot take it. Take it again to renew. Report with record_action when the work is finished (pass ep…",
  "next": [
    {
      "tool": "record_action",
      "arguments": {},
      "why": "When the work is finished, add summary and outcome: done or skipped with a resolution, or needs_human with task."
    }
  ]
}
```

**Errors.**
- “read_only” Next step: This connection only reads. An admin or builder can reconnect with Act with approval to contribute; ask a workspace admin if your account needs different acces…
- “signal_version is required: pass the signal's created_at exactly as list_signals or get_task_context returned it. Nothing was taken.” Next step: Pass the signal's created_at, exactly as list_signals or get_task_context returned it, as signal_version.
- “No such signal in this workspace, or it is outside your key’s scope.” Next step: Call list_signals for the signals this key can see, and use one of those ids.

**Changes something.** Yes. Moves a signal from open to in progress, held by your key for up to 72 hours, or plans it for later. Taking it again renews the hold. No person decides each call: it applies when called, and the call is logged.

**Status.** Current.

#### `record_action`
**Purpose.** Record work and its outcome; close or hand over a signal.

**Use it when.** Use it when work is finished and needs recording, or a signal needs closing or handing to a person; with needs_human, name the task with a short title. To change a finding’s status, use update_finding_status.

**Who sees it.** Listed to 7 of 11 key shapes: A reviewer’s key in the review sandbox; Read-only, workspace with an action policy; Acts with approval; Autonomous, whole map; Autonomous, part of the map; Autonomous, with upload consent; Autonomous, Maplith’s own workspace. Access: a key raised above read-only; a legacy key with an action policy, for the outcome of its own requests; a viewer’s own connection that reports and proposes, for work only. See [Key shapes](/docs/key-shapes).

**Inputs.**
- `work` (object, optional): Work with no signal or request; leave out task, resolution, episode and signal_version.
- `signal_id` (string, optional): The signal you worked on.
- `request_id` (string, optional): Your allowed or approved request's request_id, from request_action.
- `signal_version` (string, optional): The signal's created_at as read; a limited key must send it.
- `summary` (string, required): What you did, at most 500 characters.
- `outcome` (one of done, needs_human, skipped, required): done (settled) or skipped (did not matter), with a resolution; needs_human: a person takes it.
- `task` (string, optional): needs_human: the person's whole next step or the reply to send; no secrets.
- `task_type` (one of change, reply, optional): 'reply' for a drafted reply; default 'change'.
- `title` (string, optional): needs_human: the task's name, business thing first, no ids.
- `resolution` (one of fixed, not_an_issue, wont_fix, optional): fixed, not_an_issue or wont_fix, for done or skipped; unsure: needs_human.
- `episode` (number, optional): The episode as read; once a newer episode exists, nothing is recorded.
- `links` (list of string, optional): Where a person can open the work.
- `value` (object, optional): Its worth, only as your human or their systems state it; do not estimate.
- `tokens` (object, optional): Optional: the tokens you used, as your client counts them; shown as reported by the agent.

**Result.** Fields: `ok` (boolean), `signal_id` (string), `outcome` (string), `state` (string), `held` (string), `episode` (number), `acted` (boolean), `note` (string).

An example, recorded from a call on a fictional company’s map (lists are cut to their first two items, long text is shortened):

```json
{"tool":"record_action","arguments":{"signal_id":"00000000-0000-4000-8000-000000000001","signal_version":"2026-01-15T09:00:00Z","summary":"The job needs a person to decide whether it can be paused.","outcome":"needs_human"}}
```

```json
{
  "ok": true,
  "signal_id": "00000000-0000-4000-8000-000000000001",
  "outcome": "needs_human",
  "state": "in_progress",
  "held": "a_person",
  "episode": 1,
  "acted": false,
  "note": "Recorded. The signal now waits on a person: it stays in list_signals with unacted: true, held by a person, until they settle it."
}
```

**Errors.**
- “read_only” Next step: This connection only reads. An admin or builder can reconnect with Act with approval to contribute; ask a workspace admin if your account needs different acces…
- “This key hands over only: it may record outcome 'needs_human' (a person takes it from here) and never closes a signal as done or skipped. Record it again with…” Next step: Call record_action again with outcome 'needs_human' and no resolution; a person or the check that raised the signal settles it.
- “Say what came of it: pass resolution 'fixed', 'not_an_issue' or 'wont_fix' with outcome 'done' or 'skipped'. If you cannot tell, record outcome 'needs_human' s…” Next step: Call record_action again with a resolution, or with outcome 'needs_human' if you cannot tell.

**Changes something.** Yes. Records finished work and its outcome, and closes or hands over a signal. It changes nothing in your human’s systems and starts no scan. A resolution of not an issue or won’t fix waits for a person under a key that acts with approval, unless the key is a delegate. An autonomous key applies it at once. A key that acts with approval waits for a person to decide, in the cases named above.

**Status.** Current. Old names that still answer: `record_dmarc_rung` (answers with a pointer to this tool).

#### `list_requests`
**Purpose.** Read the decisions and status of your key’s action requests.

**Use it when.** Use it to read where your key’s action requests stand and what was decided. request_action asks for a decision or takes a request back.

**Who sees it.** Listed to no key shape since it was replaced; a key it was listed to may still call it. Access: every key that can call suggest_feature or is listed the action gate, and a viewer’s reporting connection; requests is filled only for a key that acts with approval or autonomously or holds an action policy; waiting_on_maplith and recently_done for every key that sees it; never a published demo key. See [Key shapes](/docs/key-shapes).

**Inputs.**
- `status` (one of pending, all, optional): pending (default, still waiting) or all.
- `limit` (number, optional): How many: 1 to 50, default 20.

**Result.** Fields: `requests` (list), `status` (string), `note` (string), `waiting_on_maplith` (list), `recently_done` (list), `deprecated` (object).

An example, recorded from a call on a fictional company’s map (lists are cut to their first two items, long text is shortened):

```json
{"tool":"list_requests","arguments":{"status":"all"}}
```

```json
{
  "requests": [
    {
      "request_id": "00000000-0000-4000-8000-000000000001",
      "status": "allowed",
      "task_title": "reason",
      "operation": "tms.pause_job",
      "target": {},
      "params": {},
      "reason": "reason",
      "requested_at": "2026-01-15T09:00:00Z"
    },
    {
      "request_id": "00000000-0000-4000-8000-000000000002",
      "status": "pending",
      "kind": "map_proposal",
      "requested_at": "2026-01-15T09:00:00Z",
      "approve_url": "https://app.maplith.com/w/00000000-0000-4000-8000-000000000003/agents/approvals/00000000-0000-4000-8000-000000000002",
      "approve_url_note": "Show approve_url to your human as a link. It opens this request in Maplith, where a workspace admin who is signed in approves or denies it. The link signs no o…"
    }
  ],
  "status": "all",
  "note": "Only this key's requests. A withdrawn request was taken back before anyone decided it.",
  "waiting_on_maplith": [
    {
      "block_id": "00000000-0000-4000-8000-000000000004",
      "what": "connector",
      "system": "triplewhale",
      "status": "setting_up",
      "late": false,
      "since": "2026-01-15T09:00:00Z",
      "asked_by": "a_person",
      "your_human_is_emailed": false,
      "tell_your_human": "A colleague asked Maplith to set up Triple Whale. An admin or builder connects it when it is ready."
    },
    {
      "block_id": "00000000-0000-4000-8000-000000000005",
      "what": "suggestion",
      "status": "received",
      "since": "2026-01-15T09:00:00Z",
      "asked_by": "you",
      "your_human_is_emailed": false
    }
  ],
  "recently_done": [],
  "deprecated": {
    "use": "request_action",
    "args": {
      "op": "list"
    },
    "remove_after": "2027-04-30"
  }
}
```

**Errors.**
- “read_only” Next step: This connection only reads. An admin or builder can reconnect with Act with approval to contribute; ask a workspace admin if your account needs different acces…
- “Invalid status — 'pending' or 'all'.” Next step: Correct the argument the error names (the tool's inputSchema in tools/list gives its shape), then call the tool again.

**Changes something.** No. It only reads.

**Status.** Unlisted: it still answers a call. Replaced by `request_action` until 2027-04-30.

#### `request_action`
**Purpose.** Ask permission for an operation, or propose a rule change for a person.

**Use it when.** Use it before you act in your human’s systems, to ask whether the operation is allowed (op ask), to take back a request that still waits (op withdraw), or to read where your requests stand (op list); with op ask, a short title names the request for the person who decides, and is kept only when it waits for one. A key that cannot ask is listed op list only.

**Who sees it.** Listed to 8 of 11 key shapes: A reviewer’s key in the review sandbox; Read-only, older keys; Read-only, workspace with an action policy; Acts with approval; Autonomous, whole map; Autonomous, part of the map; Autonomous, with upload consent; Autonomous, Maplith’s own workspace. Access: a key that acts with approval or autonomously, and a read-only key with an action policy on legacy connections only, though every request it asks is denied; never a published demo key or reviewer’s key; a viewer’s own connection that reports and proposes, for op proposal, withdraw and list only; every other key that can call suggest_feature, for op list only. See [Key shapes](/docs/key-shapes).

**Inputs.**
- `op` (one of ask, withdraw, proposal, list, optional): ask is the default; proposal takes proposal, reason and idempotency_key.
- `system` (string, optional): op ask: the system in the catalogue, e.g. "payments".
- `operation` (string, optional): The catalogue operation, e.g. "issue_refund".
- `target` (object, optional): What you act on: its kind and id.
- `params` (object, optional): op ask: its params, e.g. { "amount_dkk": 299 }.
- `reason` (string, optional): op ask: a plain lead, then What it does:, Problem:, Value: on their own lines, ≤500 characters. op withdraw: one sentence, ≤200.
- `signal_id` (string, optional): op ask: the signal that started this, if any.
- `title` (string, optional): op ask: the request's name, business thing first, no ids.
- `request_id` (string, optional): op withdraw: the request_id op ask returned or op list shows.
- `idempotency_key` (string, optional): op ask: your id for it (letters, digits, . _ : -); a repeat returns the first answer.
- `status` (one of pending, all, optional): op list: pending (default, still waiting) or all.
- `limit` (number, optional): op list: 1 to 50, default 20.
- `proposal` (object, optional): op proposal: the change a whole-map admin approves.

**Result.** Fields: `decision` (string), `request_id` (string), `grant` (object), `why` (string), `next_step` (string), `next` (list).

An example, recorded from a call on a fictional company’s map (lists are cut to their first two items, long text is shortened):

```json
{"tool":"request_action","arguments":{"op":"ask","system":"tms","operation":"resume_job","target":{"kind":"job","id":"J-1"},"params":{},"reason":"What it does: Resume one paused job.\nProblem: The job was paused by mistake.\nValue: The team can finish the job today.","idempotency_key":"ask-allowed"}}
```

```json
{
  "decision": "allowed",
  "request_id": "00000000-0000-4000-8000-000000000001",
  "grant": {
    "token": "<grant>",
    "grant_id": "00000000-0000-4000-8000-000000000002",
    "request_id": "00000000-0000-4000-8000-000000000001",
    "digest": "<token>",
    "param_salt": "<token>",
    "expires_at": "2026-01-15T09:00:00Z",
    "kid": "k1"
  },
  "why": "Routine: it moves no money, reaches no one outside and can be undone; within this key's policy and limits.",
  "next_step": "Hand this grant to the executor that holds your human’s credentials. Give it the request_id and the action exactly as you sent it here — the same target id and…",
  "next": [
    {
      "tool": "record_action",
      "arguments": {},
      "why": "Once your executor has done the action, add summary and outcome."
    }
  ]
}
```

**Errors.**
- “read_only” Next step: This connection only reads. An admin or builder can reconnect with Act with approval to contribute; ask a workspace admin if your account needs different acces…
- “This key has no policy for this operation, so it is denied.” Next step: An admin adds a policy for tms.resume_job to this key under Sources › Agents › the agent › What it may do (policy_url opens it). You can ask for it yourself: s…
- “No such request for this key. Pass the request_id request_action returned to you, or one request_action with op list lists. Nothing was withdrawn.” Next step: Pass the request_id that request_action returned to this key.

**Changes something.** Yes. Records a request and answers it from the key’s action policy: allowed (with a grant to redeem where Maplith signs grants), denied, or pending until an admin decides. Maplith never acts in your human’s systems itself. Marked destructive: what it removes or spends cannot be put back. Marked open-world: it reaches an address outside the workspace. The key’s action policy answers: allowed, denied, or pending until an admin decides.

**Status.** Current. Old names that still answer: `withdraw_request`.

#### `redeem_action_grant`
**Purpose.** Spend a single-use signed grant for an allowed action.

**Use it when.** Use it once, immediately before you perform the action request_action allowed, and act only if the answer is redeemed.

**Who sees it.** Listed to 7 of 11 key shapes: A reviewer’s key in the review sandbox; Read-only, workspace with an action policy; Acts with approval; Autonomous, whole map; Autonomous, part of the map; Autonomous, with upload consent; Autonomous, Maplith’s own workspace. Access: a key that acts with approval or autonomously, and a read-only key with an action policy on legacy connections only, though every request it asks is denied; never a published demo key or reviewer’s key; listed only where Maplith signs grants, and it redeems only once the key holds a policy. See [Key shapes](/docs/key-shapes).

**Inputs.**
- `grant_id` (string, required): From the grant request_action returned.
- `request_id` (string, required): The request your job names, NOT copied from the grant.
- `digest` (string, required): The grant's digest, passed through unchanged.
- `param_digest` (string, optional): Compute base64url(HMAC-SHA256(key: base64url-decoded param_salt, message: 'maplith-action-params/v1' + newline + canonical {system, operation, target, params} as sent to request_action)).
- `system` (string, required): The system you act in, e.g. "payments"; checked against the request.
- `operation` (string, required): The operation, e.g. "issue_refund"; checked against the request.
- `target_kind` (string, required): What you act on, e.g. "order"; checked against the request.

**Result.** Fields: `outcome` (string), `grant_id` (string), `request_id` (string), `system` (string), `operation` (string), `target_kind` (string), `redeemed_at` (string), `why` (string), `next_step` (string), `next` (list).

An example, recorded from a call on a fictional company’s map (lists are cut to their first two items, long text is shortened):

```json
{"tool":"redeem_action_grant","arguments":{"grant_id":"00000000-0000-4000-8000-000000000001","request_id":"00000000-0000-4000-8000-000000000002","digest":"<token>","system":"tms","operation":"resume_job","target_kind":"job","param_digest":"<token>"}}
```

```json
{
  "outcome": "redeemed",
  "grant_id": "00000000-0000-4000-8000-000000000001",
  "request_id": "00000000-0000-4000-8000-000000000002",
  "system": "tms",
  "operation": "resume_job",
  "target_kind": "job",
  "redeemed_at": "2026-01-15T09:00:00Z",
  "why": "This grant is now used. It was good for one action and cannot be redeemed again.",
  "next_step": "Go ahead in your human’s system with your human’s own credentials: tms.resume_job on this job, once and nothing else, then record the outcome with record_actio…",
  "next": [
    {
      "tool": "record_action",
      "arguments": {},
      "why": "Once the action is done in your human’s system, add summary and outcome."
    }
  ]
}
```

**Errors.**
- “read_only” Next step: This connection only reads. An admin or builder can reconnect with Act with approval to contribute; ask a workspace admin if your account needs different acces…
- “This key's policy does not allow actions, so it cannot redeem an action grant. An admin can give the key a policy for an operation in Sources › Agents. Nothing…” Next step: An admin adds a policy to this key under Sources › Agents › the agent › What it may do (policy_url opens it). Do not act. Tell your human; once the policy is t…
- “This grant was issued before grants were bound to their parameters and cannot be redeemed. Ask again with a new idempotency_key.” Next step: Do not act. Tell your human why, or ask again with a new idempotency_key.

**Changes something.** Yes. Spends a single-use grant: the first redemption marks it used, and every later attempt is refused. The action itself happens in your human’s system, not here. Marked destructive: what it removes or spends cannot be put back. Marked open-world: it reaches an address outside the workspace. Maplith changes nothing in your human’s systems: the agent does that work with its own credentials, only after an allowed answer.

**Status.** Current.

#### `list_signals`
**Purpose.** Read the scoped work queue, lifecycle and counts.

**Use it when.** Use it for the work queue and for what changed since a timestamp. For documented discrepancies, use list_findings; to start on a signal, call get_task_context.

**Who sees it.** Listed to all 11 key shapes. Access: every key. See [Key shapes](/docs/key-shapes).

**Inputs.**
- `since` (string, optional): Only signals created after this ISO time.
- `workflow` (string, optional): Only this workflow's (id from search).
- `department` (string, optional): Only this department's (id from get_task_context).
- `work_kinds` (list of string, optional): alarm, repair, check, answer, routine or carry_out; omit for all.
- `kinds` (list of string, optional): Causes in work_kinds; alone, deprecated.
- `unacted` (boolean, optional): Only open, planned or in_progress.
- `states` (list of string, optional): open (unclaimed), planned, in_progress (held) or done.
- `exclude_kinds` (list of string, optional): Causes to leave out.
- `limit` (number, optional): Default 100; up to 500 for a whole-map key.
- `order` (one of newest, urgency, optional): newest (default) or urgency; keep it with its cursor.
- `cursor` (string, optional): The next_cursor from the previous call.

**Result.** Fields: `signals` (list), `counts` (object).

An example, recorded from a call on a fictional company’s map (lists are cut to their first two items, long text is shortened):

```json
{"tool":"list_signals","arguments":{}}
```

```json
{
  "signals": [
    {
      "id": "00000000-0000-4000-8000-000000000001",
      "work_kind": "repair",
      "cause": "agent_burst",
      "kind": "agent_burst",
      "severity": "urgent",
      "title": "The agent \"key\" asked for Resume job · Tms on the same item 5 times within an hour, so Maplith turns its requests for it down for up to an hour",
      "task_title": "The agent \"key\" asked for Resume job · Tms on the same item 5 times within…",
      "owner": {},
      "executor": {},
      "objects": [],
      "object_aliases": [],
      "same_source_as": []
    },
    {
      "id": "00000000-0000-4000-8000-000000000002",
      "work_kind": "check",
      "cause": "lineage_direction_unsure",
      "kind": "lineage_direction_unsure",
      "severity": "attention",
      "title": "which file is the original",
      "task_title": "which file is the original",
      "owner": {},
      "executor": {},
      "objects": [],
      "object_aliases": [],
      "same_source_as": []
    }
  ],
  "counts": {
    "total": 6,
    "by_state": {
      "open": 6,
      "planned": 0,
      "in_progress": 0,
      "done": 0
    },
    "by_kind": {
      "agent_burst": {},
      "field_identity_unsure": {},
      "finding_added": {},
      "grain_unsure": {},
      "lineage_direction_unsure": {},
      "schema_dialect_unsure": {}
    },
    "note": "Counts of every signal this key sees, by kind and state, whatever since, kinds, exclude_kinds, states or unacted this call passed; only the first page carries…"
  }
}
```

**Errors.** No refusal is documented for this tool: it answers every key it is listed to, within that key’s scope.

**Changes something.** No. It only reads.

**Status.** Current.

#### `get_task_context`
**Purpose.** Start any work here: rules, context and playbooks for a task, a signal or a support case.

**Use it when.** Start any work here: a task in words, a signal or a support case, or no argument to see what the map holds and what your key may do. Then take_signal before you work on a signal, and record_action when you finish.

**Who sees it.** Listed to all 11 key shapes. Access: every key. See [Key shapes](/docs/key-shapes).

**Inputs.**
- `statements_query` (string, optional): Rank rules; never filter them.
- `statements_cursor` (string, optional): Next page; keep the same query.
- `statement_key` (string, optional): Read one applicable rule in full.
- `statements_only` (boolean, optional): Rules only ({} if none), for a client that cut a long answer.
- `context` (object, optional): {"client": "<company>"}, not a person: adds its variation.
- `task` (object, optional): Pass one of task, signal_id and case.
- `page` (integer, optional): Copy entry.cursor; same task or setup_check.
- `signal_id` (string, optional): A signal id from list_signals.
- `ground_in_context` (boolean, optional): support_chat follow-up: omit the public ground you hold.
- `case` (object, optional): A support case, in kinds.

**Result.** Fields: `signal` (object), `handling` (object), `lifecycle` (object), `trust` (object), `checkable_rules` (list), `checkable_rules_note` (string), `playbooks` (list), `playbook_drafts` (list), `playbook_drafts_note` (string), `objects` (list), `routes` (list), `processes` (list), `findings` (list), `metric` (null), `glossary` (object), `prior_actions` (list), `how_to_use` (string), `workflow` (object), `department` (null).

An example, recorded from a call on a fictional company’s map (lists are cut to their first two items, long text is shortened):

```json
{"tool":"get_task_context","arguments":{"signal_id":"00000000-0000-4000-8000-000000000001"}}
```

```json
{
  "signal": {
    "id": "00000000-0000-4000-8000-000000000001",
    "kind": "finding_added",
    "severity": "attention",
    "title": "signal",
    "task_title": "finding",
    "owner": {
      "kind": "person",
      "user_id": "00000000-0000-4000-8000-000000000002",
      "chosen_by": "area_owner",
      "says": "A person answers for this signal."
    },
    "executor": {
      "kind": "person",
      "user_id": "00000000-0000-4000-8000-000000000003",
      "chosen_by": "playbook",
      "says": "A person carries this signal out: prepare what they need and hand the work to them, do not do it in their place."
    },
    "payload": {
      "title": "finding",
      "status": "open",
      "finding_key": "00000000-0000-4000-8000-000000000004"
    },
    "fix": [],
    "acted": false,
    "created_at": "2026-01-15T09:00:00Z"
  },
  "handling": {
    "settles_itself": null,
    "covered_by": {
      "note": "A lead, not proof: work in hand on this map whose title names this signal’s subject, and your own earlier requests about this signal. Read it before you act. A…"
    }
  },
  "lifecycle": {
    "state": "open",
    "resolution": null,
    "episode": 1,
    "held": null,
    "earlier_episodes": [],
    "how": "Take the signal with take_signal before you start, so no other agent does the same work; report with record_action when you finish — outcome, and resolution fi…"
  },
  "trust": {
    "weak_joins": [],
    "pii_fields": [
      "customer_name"
    ],
    "note": "This is the map, not the data. Fetch the rows in your human’s own systems with your own credentials — see how_to_use for how to run each hop. Where a join is w…"
  },
  "checkable_rules": [],
  "checkable_rules_note": "checkable_rules are the rules Maplith checks on the objects and fields this task touches: what must hold in your human’s data. Keep each one true in the work y…",
  "playbooks": [
    {
      "id": "00000000-0000-4000-8000-000000000005",
      "title": "handle a new finding",
      "version": 1,
      "approved": true,
      "uri": "maplith://playbook/00000000-0000-4000-8000-000000000005",
      "bound_by": [],
      "executor": {},
      "body": "Read the finding, check the job in the system, and record what was done.",
      "note": "This is guidance your human wrote, not a limit on what you may do. What you may do is decided by this key’s policy and grant and is checked when you ask to act…"
    }
  ],
  "playbook_drafts": [
    {
      "id": "00000000-0000-4000-8000-000000000006",
      "title": "playbook",
      "version": 1,
      "status": "draft",
      "approved": false,
      "bound_by": []
    }
  ],
  "playbook_drafts_note": "Drafts aimed at this task that no admin has approved yet. They are not approved and are not the procedure: their text is not served, so do not follow, guess or…",
  "objects": [
    {
      "name": "job",
      "domain": "Operations",
      "system": "tms",
      "file": "tms/jobs.csv",
      "also_in": [],
      "fields": [],
      "pii_fields": [],
      "work_done_in": [],
      "lineage": {}
    }
  ],
  "routes": [],
  "processes": [
    {
      "object_type": "job",
      "case_count": 3,
      "event_count": 6,
      "steps": [],
      "happy_path": [],
      "happy_path_share": 0.5,
      "edges": []
    }
  ],
  "findings": [
    {
      "finding_key": "00000000-0000-4000-8000-000000000004",
      "title": "finding",
      "description": "description",
      "evidence": [],
      "recommendation": null,
      "status": "open",
      "domains": []
    }
  ],
  "metric": null,
  "glossary": {
    "confirmed": [
      "job"
    ],
    "unconfirmed": [],
    "note": "Confirmed objects are business terms, confirmed either by a person in the workspace or by Maplith's build on its own evidence. confirmed_by_maplith lists the o…"
  },
  "prior_actions": [],
  "how_to_use": "Walk the hops in your human’s own systems with your own credentials. Each hop’s join_spec is the join to run: leftFile.leftColumn = rightFile.rightColumn, with…",
  "workflow": {
    "id": "00000000-0000-4000-8000-000000000008",
    "name": "refunds",
    "department": null
  },
  "department": null
}
```

**Errors.**
- “No such signal in this workspace, or it is outside your key’s scope.” Next step: Call list_signals for the signals this key can see, and use one of those ids.
- “Invalid task: pass task as { description, references }.” Next step: Pass task as { description, references }: the task in words (at most 2,000 characters) and, optionally, up to 20 object names, file paths or URLs it is about,…
- “Invalid case — identifier and topic name the kind of identifier and the kind of case ("email", "return"), never a value: leave out e-mail addresses, numbers an…” Next step: Pass case as { identifier, topic }: the kind of identifier you hold for the customer ("email", "order number") and the kind of case ("return"), with no address…

**Changes something.** No. It only reads.

**Status.** Current. Old names that still answer: `estimate_scan` (answers with a pointer to this tool), `list_stated_relationships` (answers with a pointer to this tool), `list_wake_subscriptions` (answers with a pointer to this tool).

#### `get_value_summary`
**Purpose.** Summarise work and its stated value over a period.

**Use it when.** Use it to see what the workspace got out of its signals over a period, as counts. For the signals themselves, use list_signals.

**Who sees it.** Listed to all 11 key shapes. Access: every key. See [Key shapes](/docs/key-shapes).

**Inputs.**
- `since` (string, optional): ISO 8601 timestamp — the start of the period.
- `until` (string, optional): ISO 8601 timestamp — the end of the period (exclusive).
- `group_by` (one of workflow, department, optional): Per workflow or department: signals and records; one in two workflows counts in each.

**Result.** Fields: `period` (object), `signals` (object), `handled` (object), `findings` (object), `actions` (object), `gate` (object), `stated_value` (object), `link_dead` (object), `metrics` (object), `note` (string), `scope` (string).

An example, recorded from a call on a fictional company’s map (lists are cut to their first two items, long text is shortened):

```json
{"tool":"get_value_summary","arguments":{}}
```

```json
{
  "period": {
    "since": "2026-01-15T09:00:00Z",
    "until": "2026-01-15T09:00:00Z",
    "days": 30
  },
  "signals": {
    "raised": 5,
    "acted": 0,
    "unacted": 5,
    "no_action_needed": 0,
    "resolved_itself": 0,
    "planned": 0,
    "by_kind": {
      "field_identity_unsure": {},
      "finding_added": {},
      "grain_unsure": {},
      "lineage_direction_unsure": {},
      "schema_dialect_unsure": {}
    },
    "acted_by": {
      "agents": 0,
      "people": 0,
      "unknown": 0
    }
  },
  "handled": {
    "total": 1,
    "by_agents": 1,
    "by_people": 0,
    "unknown": 0
  },
  "findings": {
    "added": 1,
    "no_longer_reported": 0
  },
  "actions": {
    "recorded": 2,
    "by_outcome": {
      "done": 2,
      "needs_human": 0,
      "skipped": 0
    },
    "timed": 0,
    "time_to_action_hours": {
      "median": null,
      "longest": null
    }
  },
  "gate": {
    "approvals": {
      "approved": 1,
      "denied": 0
    },
    "requests": {
      "allowed": 1,
      "pending": 0,
      "denied": 0
    }
  },
  "stated_value": {
    "actions_with_value": 0,
    "actions_without_value": 2,
    "totals": []
  },
  "link_dead": {
    "connections": 0,
    "probe_passed": 0,
    "probe_passed_by": {
      "resolved_itself": 0,
      "cleared_while_held": 0,
      "fix_confirmed": 0
    }
  },
  "metrics": {
    "series": [],
    "left_out": 0,
    "note": "Each tracked metric's recorded values are shown beside the actions recorded against signals about it. They are side by side, not joined: Maplith does not say t…"
  },
  "note": "Counts of what happened in this workspace, and the value the agents that acted stated in their own numbers. Maplith does not estimate value and does not attrib…",
  "scope": "full map"
}
```

**Errors.** No refusal is documented for this tool: it answers every key it is listed to, within that key’s scope.

**Changes something.** No. It only reads.

**Status.** Current.

### About the connection

The connection itself: whether the setup is complete, how to be woken, and how to tell Maplith what its server lacks.

| Tool | What it answers | Changes something | Key shapes |
|---|---|---|---|
| `suggest_feature` | Tell Maplith what its MCP server lacks or gets wrong, without customer data. | Yes | 8 of 11 |
| `check_setup` | Check setup gaps and the next steps that repair them. | No | unlisted |
| `set_wake_subscription` | Create, change or test your key’s signed wake endpoint and filter. | Yes | unlisted |
| `remove_wake_subscription` | Remove one of your key’s wake endpoints and revoke its secret. | Yes | unlisted |
| `wake_subscription` | Set up, change, test or remove your key’s signed wake endpoints. | Yes | by setting |

#### `suggest_feature`
**Purpose.** Tell Maplith what its MCP server lacks or gets wrong, without customer data.

**Use it when.** Use it for what Maplith’s MCP server lacks or gets wrong. A problem in your human’s data is not a suggestion: a scan documents it as a finding (list_findings).

**Who sees it.** Listed to 8 of 11 key shapes: A reviewer’s key in the review sandbox; Read-only, older keys; Read-only, workspace with an action policy; Acts with approval; Autonomous, whole map; Autonomous, part of the map; Autonomous, with upload consent; Autonomous, Maplith’s own workspace. Access: any key outside a demonstration workspace, and the directory review sandbox’s reviewer (recorded there, not filed), where Maplith has feature suggestions configured; never a new read-only connection, unless it is a viewer’s own connection that reports and proposes. See [Key shapes](/docs/key-shapes).

**Inputs.**
- `kind` (one of improvement, bug, optional): improvement (default): a missing capability. bug: a Maplith tool failed or answered wrongly.
- `title` (string, required): One line: the capability or what went wrong.
- `description` (string, optional): improvement: what it is and why.
- `tool` (string, optional): bug: the tool name.
- `problem` (one of error, wrong_answer, contradicts_docs, incomplete, optional): bug: error, wrong_answer, contradicts_docs or incomplete.
- `error_class` (string, optional): bug: its error code, if any.
- `expected` (string, optional): bug: what it should have answered; no data.
- `got` (string, optional): bug: its answer or error text; no data.
- `notify_me` (boolean, optional): Ask your human in these words: "Should Maplith email you when this is fixed?" (suggestion: "…when this is built?").

**Result.** Fields: `ok` (boolean), `issue_url` (string), `issue_number` (number), `notify` (string), `waiting_on_maplith` (boolean), `note` (string).

An example, recorded from a call on a fictional company’s map (lists are cut to their first two items, long text is shortened):

```json
{"tool":"suggest_feature","arguments":{"kind":"improvement","title":"Expose field-level lineage between exports","description":"A tool that says which field of one export feeds which field of another."}}
```

```json
{
  "ok": true,
  "issue_url": "https://github.com/Maplith/maplith/issues/4242",
  "issue_number": 4242,
  "notify": "you_only",
  "waiting_on_maplith": true,
  "note": "Filed. Tell your human the URL. There is no promise of delivery. Do not call this tool for the same capability again. request_action with op list shows it unde…"
}
```

**Errors.**
- “This key was not connected by a person (it was made under Sources › Agents), so a report has nobody to read Maplith's answer. Tell your human what went wrong (…” Next step: Tell your human what went wrong: the tool, what you expected and what you got. They can report it with Tell Maplith in the app.
- “kind must be improvement or bug.” Next step: Call suggest_feature again with kind improvement for a missing capability, or kind bug for a Maplith tool that went wrong.
- “read_only” Next step: This connection only reads. An admin or builder can reconnect with Act with approval to contribute; ask a workspace admin if your account needs different acces…

**Changes something.** Yes. Sends a suggestion or a bug report to Maplith. The text leaves the workspace, so it carries capability only: no records, values, names, credentials or identifiers. Marked open-world: it reaches an address outside the workspace. No person decides each call: it applies when called, and the call is logged.

**Status.** Current.

#### `check_setup`
**Purpose.** Check setup gaps and the next steps that repair them.

**Use it when.** Use it when signals go unhandled, or your human asks what is missing in the setup. For the open work itself, use list_signals.

**Who sees it.** Listed to no key shape since it was replaced; a key it was listed to may still call it. Access: every key outside a demonstration workspace, and the directory review sandbox’s reviewer. See [Key shapes](/docs/key-shapes).

**Inputs.** None.

**Result.** Fields: `complete` (boolean), `summary` (object), `jobs` (list), `gaps` (list), `scope` (string), `schedules` (list), `how` (string), `deprecated` (object).

An example, recorded from a call on a fictional company’s map (lists are cut to their first two items, long text is shortened):

```json
{"tool":"check_setup","arguments":{}}
```

```json
{
  "complete": false,
  "summary": {
    "complete": false,
    "gaps": 10,
    "urgent": 0,
    "attention": 8,
    "info": 2,
    "by_type": {
      "operation_no_policy": 1,
      "playbook_draft": 2,
      "playbook_object_missing": 2,
      "signal_kind_unhandled": 4,
      "source_not_kept_fresh": 1
    },
    "jobs": 9,
    "runs_on_nobody": 6
  },
  "jobs": [
    {
      "headline": "The playbook “support (new steps)” runs on nobody: it is a draft; it is anchored on 1 object or process no longer on the map",
      "severity": "attention",
      "runs_on_nobody": true,
      "next_step": {},
      "gaps": []
    },
    {
      "headline": "The playbook “playbook” runs on nobody: it is a draft",
      "severity": "attention",
      "runs_on_nobody": true,
      "next_step": {},
      "gaps": []
    }
  ],
  "gaps": [
    {
      "key": "operation_no_policy:00000000-0000-4000-8000-000000000001",
      "type": "operation_no_policy",
      "severity": "attention",
      "title": "The operation hq.queue_work is declared, but no agent key has an action policy for it",
      "concerns": {},
      "objects": [],
      "next_step": {},
      "evidence": {}
    },
    {
      "key": "playbook_draft:00000000-0000-4000-8000-000000000002",
      "type": "playbook_draft",
      "severity": "attention",
      "title": "The playbook “playbook” is a draft: no agent is given it until it is approved",
      "concerns": {},
      "objects": [],
      "next_step": {},
      "evidence": {}
    }
  ],
  "scope": "full map",
  "schedules": [
    {
      "playbook": {},
      "status": "active",
      "runs": "every Monday at 07:30 (Europe/Copenhagen time)",
      "cadence": "weekly",
      "weekday": 1,
      "local_time": "07:30",
      "time_zone": "Europe/Copenhagen",
      "set_by": "person",
      "next_due": "2026-01-15T09:00:00Z",
      "signal": "a routine_due signal naming this playbook at each occurrence"
    }
  ],
  "how": "Deterministic: no model was used and nothing was changed. Maplith runs the same check every hour and raises each gap as a setup_gap signal (list_signals with k…",
  "deprecated": {
    "use": "get_task_context",
    "args": {
      "setup_check": true
    },
    "remove_after": "2027-04-30"
  }
}
```

**Errors.**
- “check_setup is not offered for a demo workspace: it is a fixed example, not a setup to complete.” Next step: Connect with a key of your own workspace to check its setup.

**Changes something.** No. It only reads.

**Status.** Unlisted: it still answers a call. Replaced by `get_task_context` until 2027-04-30.

#### `set_wake_subscription`
**Purpose.** Create, change or test your key’s signed wake endpoint and filter.

**Use it when.** Use it to be woken by a signed request when a matching signal is raised, instead of polling list_signals. remove_wake_subscription takes an endpoint away.

**Who sees it.** Listed to no key shape since it was replaced; a key it was listed to may still call it. Access: an autonomous key, where wake-ups are on. See [Key shapes](/docs/key-shapes).

**Inputs.**
- `id` (string, optional): The wake endpoint to change or test, from get_map_overview’s your_key.wake_ups.
- `url` (string, optional): Your endpoint: a public https URL, port 443, no user name or password.
- `work_kinds` (list of string, optional): As list_signals work_kinds.
- `kinds` (list of string, optional): Narrow to causes (list_signals kind).
- `objects` (list of string, optional): Objects of the map, as the map spells them.
- `domains` (list of string, optional): Domains of the map.
- `min_severity` (one of info, attention, urgent, optional): The least severe signal that wakes you: info, attention or urgent.
- `approvals` (boolean, optional): Also wake you when a person decides one of your key's pending requests.
- `debounce_seconds` (integer, optional): Ignored: nothing waits.
- `daily_cap` (integer, optional): The most wake-ups a day.
- `automation` (string or null, optional): The id of a registered automation this wake-up starts (list_automations), or null to clear it.
- `rotate_secret` (boolean, optional): Replace the signing secret: the new one is returned once, the old one keeps signing for 24 hours, and a test wake-up is sent.
- `test` (boolean, optional): Send one signed test wake-up to the endpoint named by id, changing nothing else; one test waits at a time.

**Result.** Fields: `ok` (boolean), `outcome` (string), `wake_endpoint` (object), `signing_secret` (string), `secret_note` (string), `wake_ups_sent` (boolean), `test_delivery` (string), `note` (string), `deprecated` (object).

An example, recorded from a call on a fictional company’s map (lists are cut to their first two items, long text is shortened):

```json
{"tool":"set_wake_subscription","arguments":{"url":"https://hooks.example.test/wake/admin","kinds":["finding_added"],"min_severity":"attention"}}
```

```json
{
  "ok": true,
  "outcome": "created",
  "wake_endpoint": {
    "id": "00000000-0000-4000-8000-000000000001",
    "endpoint": "https://hooks.example.test/…",
    "status": "active",
    "filter": {
      "work_kinds": [],
      "kinds": [],
      "objects": [],
      "domains": [],
      "min_severity": "attention",
      "approvals": true
    },
    "debounce_seconds": 0,
    "debounce_min_seconds": 0,
    "daily_cap": 24,
    "daily_cap_max": 24,
    "automation_id": null,
    "made_by": "this key",
    "created_at": "2026-01-15T09:00:00Z",
    "updated_at": "2026-01-15T09:00:00Z"
  },
  "signing_secret": "<token>",
  "secret_note": "Store this signing secret now, in your runtime's secret store: Maplith shows it this once and never again. Verify every wake-up with it: the X-Maplith-Signatur…",
  "wake_ups_sent": false,
  "test_delivery": "wd_00000000-0000-4000-8000-000000000002",
  "note": "Saved. Nothing is sent yet: Maplith has not switched wake-ups on for this workspace. Tell your human; your_key.wake_ups (get_task_context with no argument) sho…",
  "deprecated": {
    "use": "wake_subscription",
    "args": {
      "op": "set"
    },
    "remove_after": "2027-04-30"
  }
}
```

**Errors.**
- “Unknown tool: set_wake_subscription” Next step: Call tools/list for the tools this key can use, then call one of those.
- “This key acts with approval, and a wake endpoint is not queued for approval. A key with the 'autonomous' policy manages its own; an admin can change a key's po…” Next step: Read the error: it says what was wrong. Correct that and call the tool again, or call tools/list for the tool's inputSchema.
- “read_only” Next step: This connection only reads. An admin or builder can reconnect with Act with approval to contribute; ask a workspace admin if your account needs different acces…

**Changes something.** Yes. Creates or changes one of your key’s wake endpoints and its filter. A new endpoint, a rotated secret and a test each send one signed test wake-up to the address you give. Only an autonomous key can call it. Marked open-world: it reaches an address outside the workspace. No person decides each call: it applies when called, and the call is logged.

**Status.** Unlisted: it still answers a call. Replaced by `wake_subscription` until 2027-04-30.

#### `remove_wake_subscription`
**Purpose.** Remove one of your key’s wake endpoints and revoke its secret.

**Use it when.** Use it to remove one of your key’s own wake endpoints. set_wake_subscription creates or changes one.

**Who sees it.** Listed to no key shape since it was replaced; a key it was listed to may still call it. Access: an autonomous key, where wake-ups are on. See [Key shapes](/docs/key-shapes).

**Inputs.**
- `id` (string, required): The wake endpoint id from get_map_overview’s your_key.wake_ups.

**Result.** Fields: `ok` (boolean), `removed` (string), `note` (string), `deprecated` (object).

An example, recorded from a call on a fictional company’s map (lists are cut to their first two items, long text is shortened):

```json
{"tool":"remove_wake_subscription","arguments":{"id":"00000000-0000-4000-8000-000000000001"}}
```

```json
{
  "ok": true,
  "removed": "00000000-0000-4000-8000-000000000001",
  "note": "Removed, with its delivery log. Nothing more is sent to that endpoint.",
  "deprecated": {
    "use": "wake_subscription",
    "args": {
      "op": "remove"
    },
    "remove_after": "2027-04-30"
  }
}
```

**Errors.**
- “This key acts with approval, and a wake endpoint is not queued for approval. A key with the 'autonomous' policy manages its own; an admin can change a key's po…” Next step: Read the error: it says what was wrong. Correct that and call the tool again, or call tools/list for the tool's inputSchema.
- “read_only” Next step: This connection only reads. An admin or builder can reconnect with Act with approval to contribute; ask a workspace admin if your account needs different acces…
- “Unknown tool: remove_wake_subscription” Next step: Call tools/list for the tools this key can use, then call one of those.

**Changes something.** Yes. Removes the endpoint with its delivery log and revokes its secret; nothing more is sent to it. It is refused for an endpoint a person set up or limited. Marked destructive: what it removes or spends cannot be put back. No person decides each call: it applies when called, and the call is logged.

**Status.** Unlisted: it still answers a call. Replaced by `wake_subscription` until 2027-04-30.

#### `wake_subscription`
**Purpose.** Set up, change, test or remove your key’s signed wake endpoints.

**Use it when.** Use op set to be woken by a signed request when a matching signal is raised, instead of polling list_signals, or to change or test an endpoint; op remove takes one away.

**Who sees it.** Listed by a setting of the workspace, not by key shape alone. Access: an autonomous key, where wake-ups are on. See [Key shapes](/docs/key-shapes).

**Inputs.**
- `op` (one of set, remove, required): set: create, change or test an endpoint. remove: remove one (id).
- `id` (string, optional): The wake endpoint, from your_key.wake_ups (get_task_context with no argument). set: leave out to create one. remove: required.
- `url` (string, optional): Your endpoint: a public https URL, port 443, no user name or password.
- `work_kinds` (list of string, optional): As list_signals work_kinds.
- `kinds` (list of string, optional): Narrow to causes (list_signals kind).
- `objects` (list of string, optional): Objects of the map, as the map spells them.
- `domains` (list of string, optional): Domains of the map.
- `min_severity` (one of info, attention, urgent, optional): The least severe signal that wakes you: info, attention or urgent.
- `approvals` (boolean, optional): Also wake you when a person decides one of your key's pending requests.
- `debounce_seconds` (integer, optional): Ignored: nothing waits.
- `daily_cap` (integer, optional): The most wake-ups a day.
- `automation` (string or null, optional): The id of a registered automation this wake-up starts (list_automations), or null to clear it.
- `rotate_secret` (boolean, optional): Replace the signing secret: the new one is returned once, the old one keeps signing for 24 hours, and a test wake-up is sent.
- `test` (boolean, optional): Send one signed test wake-up to the endpoint named by id, changing nothing else; one test waits at a time.

**Result.** Fields: `ok` (boolean), `outcome` (string), `wake_endpoint` (object), `signing_secret` (string), `secret_note` (string), `wake_ups_sent` (boolean), `test_delivery` (string), `note` (string).

An example, recorded from a call on a fictional company’s map (lists are cut to their first two items, long text is shortened):

```json
{"tool":"wake_subscription","arguments":{"op":"set","url":"https://hooks.example.test/wake/admin","kinds":["finding_added"],"min_severity":"attention"}}
```

```json
{
  "ok": true,
  "outcome": "created",
  "wake_endpoint": {
    "id": "00000000-0000-4000-8000-000000000001",
    "endpoint": "https://hooks.example.test/…",
    "status": "active",
    "filter": {
      "work_kinds": [],
      "kinds": [],
      "objects": [],
      "domains": [],
      "min_severity": "attention",
      "approvals": true
    },
    "debounce_seconds": 0,
    "debounce_min_seconds": 0,
    "daily_cap": 24,
    "daily_cap_max": 24,
    "automation_id": null,
    "made_by": "this key",
    "created_at": "2026-01-15T09:00:00Z",
    "updated_at": "2026-01-15T09:00:00Z"
  },
  "signing_secret": "<token>",
  "secret_note": "Store this signing secret now, in your runtime's secret store: Maplith shows it this once and never again. Verify every wake-up with it: the X-Maplith-Signatur…",
  "wake_ups_sent": false,
  "test_delivery": "wd_00000000-0000-4000-8000-000000000002",
  "note": "Saved. Nothing is sent yet: Maplith has not switched wake-ups on for this workspace. Tell your human; your_key.wake_ups (get_task_context with no argument) sho…"
}
```

**Errors.**
- “Unknown tool: wake_subscription” Next step: Call tools/list for the tools this key can use, then call one of those.
- “This key acts with approval, and a wake endpoint is not queued for approval. A key with the 'autonomous' policy manages its own; an admin can change a key's po…” Next step: Read the error: it says what was wrong. Correct that and call the tool again, or call tools/list for the tool's inputSchema.
- “read_only” Next step: This connection only reads. An admin or builder can reconnect with Act with approval to contribute; ask a workspace admin if your account needs different acces…

**Changes something.** Yes. op set creates or changes one of your key’s wake endpoints and its filter; a new endpoint, a rotated secret and a test each send one signed test wake-up to the address you give. op remove removes an endpoint with its delivery log and revokes its secret, and is refused for one a person set up or limited. Only an autonomous key can call it. Marked destructive: what it removes or spends cannot be put back. Marked open-world: it reaches an address outside the workspace. No person decides each call: it applies when called, and the call is logged.

**Status.** Current. Old names that still answer: `send_test_wake` (answers with a pointer to this tool).

## Notes on the tools

### Structural questions need your choice

Mixed measured grains, same-file objects and conflicting metric units can raise
findings with an admin's link to Terms. A shared file or grain is not proof
that two objects mean the same thing. Review the latest checked evidence and
choose new result names/files, or keep one metric definition without a unit
conversion. Approval applies on the source's next scan; counts, joins and
processes are rebuilt from the current exports. A pending/rejected question
applies no correction, and a split/merge predecessor leaves the map only when a
person accepts it. Confirmed terms keep their correction controls.

Only a whole-map admin with sign-in step-up can decide; there is no agent-key
writer. Changed evidence, active scans, object grants or keys naming the subjects,
or durable bindings refuse approval for explicit review; unrelated and
domain-only scopes do not block it. The refusal lists affected bindings. New successors inherit no predecessor
grants. Terms lets an admin stop future application of a choice; existing
successors stay on the map and later rescans may propose their removal; retired
predecessor identities are not revived. If an approved choice no longer matches
or acquires a binding, the scan carries the published items and raises a finding
for an admin instead of applying that correction. Each decision is audited.
The overview's structure_review gives full-map keys a pending count and the
admin/page pointer; limited keys and unreadable counts get unknown, not zero.

### Read the grain and review markers

An object name is not a row count’s unit. `row_count_details` names the
primary source and grain; where a unique key and its file establish the row
kind, the description starts with it. `aliases` are lookup hints, never
access grants. Choose an exact map name when an alias could mean several
objects. Process results keep their stored `object_type` handle;
`display_object_type` supplies the current confirmed label after a rename.
Both names open the same visible process. Exact stored/display names and their case-folded spellings remain usable when reads are cut; inferred grain aliases still require a complete read.

`same_source_as` marks objects that share a file and reports their counts;
it does not merge them or make their joins interchangeable. Route evidence
can point out these alternatives without silently taking another object’s
join. Overview `systems` groups objects with their file paths, and a route
names `system` and `file` separately.

Metric lists include `caveat_count`, `broken_reason` and removal marks.
A missing object in a parsed formula is diagnosed when the map read is
complete; the formula is not rewritten. Read the detail before using a
number. Metrics that are not seen are not suggested for new tracking.

Overview `map_changes` breaks pending proposals down by kind. The legacy
`proposed_for_removal` array is objects only; use
`proposed_for_removal_by_kind` for fields, relationships, metrics and
processes too. An admin decides in Map › Terms; nothing is removed by
these read-side markers. Metric proposal details are withheld from a key
limited to part of the map.

### Annotations and what a key is listed

Every tool declares MCP annotations: `readOnlyHint`, `destructiveHint` and `openWorldHint`, each an explicit true or false. Each tool also carries its display name as `title`, at the top level of the tool and in its annotations. Open-world tools are `request_action` (an allowed answer leads to an act in your own systems; the variant that only lists your requests is read-only), `redeem_action_grant` (the step immediately before that act), `suggest_feature` (Maplith’s own tracker, or a report to Maplith) and `wake_subscription` (your endpoint: a new or re-keyed wake endpoint, and one tested on request, gets a signed test wake-up), with `set_wake_subscription`, which it replaces. Destructive tools are `request_action` (the variant that can ask or withdraw), `redeem_action_grant` (spends a single-use grant) and `wake_subscription` (its op remove removes an endpoint and revokes its secret), with `remove_wake_subscription`, which it replaces. Wake tools appear only where wake-ups are on.

`update_finding_status` is **absent from tools/list** for read-only keys:
not hidden behind an error, absent, so an agent cannot even try.

### Details the tool descriptions point to

A tool description says what the tool does, when to use it and which tool to
use instead, in at most 80 words, and ends with `Details: maplith://docs/<page>`
where there is more. This is the more. What a call returns says the rest
itself: its `next` (the calls to make next), `next_step` and `why` fields.

**The next call.** An answer that suggests a call carries one `next`: a list
of at most five entries, most useful first, each exactly `tool`, `arguments`
and `why`. The tool is one your key is listed; the arguments are what Maplith
already knows, every value real and valid by that tool's schema; `why` is one
sentence that says what you add (a summary, an outcome, a count). Copy the call
rather than choosing one. Advice that names no call is prose, in `next_step`.

**The server's instructions.** Start from `get_task_context`; find work with
`list_signals` and, on a key that acts, take a signal with `take_signal` before
you act; record the work with `record_action`. Keys come in three shapes
(read-only, acts with approval, autonomous), see [Key shapes](/docs/key-shapes);
where a tool says `Needs:`, that is the shape it takes, and the overview's
`your_key` (`get_task_context` with no argument) says which this key is. Before relying on the map, test it with your
human: the prompt `maplith-test-the-map` is the procedure. The overview's
`whats_new` says once what is new in Maplith since the connection last asked:
mention an item when it is relevant, never as an advert. The resource
`maplith://product-map` is Maplith's own product map (never part of your human's),
and `maplith://systems` with a system's recipe says how to read one of your
human's systems.

**Personal data.** The map is metadata, not rows, but not free of personal data:
a finding's evidence quotes examples from the files, so check the full set in your
human's own system before acting on one. Maplith tries to mask email local parts,
CPR, IBAN and card numbers and, unless an admin switched it off, people's names
from an export's own name columns; masking is best effort and not complete. Every
field carries a personal-data classification (category, source, confidence) and a
`pii` flag; do not select or echo pii=true values unless the task requires it.

**get_task_context.** For a `rule_fired` signal, read `payload.checks` before
acting on it: one entry per condition of the rule, numbered `c1`, `c2`, each
with a `state`: `judged` (verified: Maplith's scan judged it over the export),
`checked_by_observer` (your human's own tool looked in their own system; Maplith
does not read that data) or `unverified` (no one has yet, with `why` and where to
confirm it). Confirm an unverified condition before you act on it. See
[What a firing carries](/docs/signals-and-rules#what-a-firing-carries-and-what-is-never-stored).

**get_map_overview, now the overview `get_task_context` gives with no argument.** `get_map_overview` answers it until 2027-04-30, with `deprecated`. With `setup_check: true` (offered wherever the setup check is: not on a demo workspace's keys, never to the in-app assistant) it adds `setup_check`, exactly the setup check below, even on a workspace with no map yet. Beyond `journey`, `setup` and `maintenance`: counts in a
truncated read are lower bounds; `stated` lists the relationships people stated,
with the scan's check of each, for a key that sees the whole map; `kept` lists
items kept from earlier scans with date and reason; `confidence` carries the
raisers; `your_key.wake_ups` holds the key's wake endpoints and deliveries.
On `get_task_context` the first page is at most 8 KB, in four parts: `entry`
(the map's build, version and scope), `do_first` (`journey`, `setup`,
`setup_check` when asked for, `your_key`), `trust` (`confidence`,
`quality`, `maintenance`) and `next`; `entry.cursor` names the next
`page`, which reads the rest under the same names.

**get_object.** The detail also carries aliases, `row_count_details`, grain,
`field_id`, `also_called`, `recognised_by`, `auto_detected`, role and its
basis, count-only profiles, personal-data classifications, source systems and
`same_source_as` peers, relations with coverage sides and basis (declared,
measured or guessed), findings and automations. A kept item answers as last seen
with `kept` (date, reason, `replaced_by`); a current one adds `fields_not_seen`
and `kept_joins`.

**search and fetch.** `search` matches a substring exactly as written, so spaces
and hyphens differ ("where is my order" misses "where-is-my-order"), and one word
finds more than several. Results share a 50-document budget with true per-kind
counts; `kept_matches` lists kept items apart. A document's id is
`document:<path>`. `fetch` returns id, title, text, url and metadata,
with the direct tools' data flattened to text.

**list_findings, list_sources, list_signals.** `empty_scan` is
`found_none_of_its_own` when the scan produced no finding at all, or
`findings_kept_from_previous_scan` when the previous scan's findings were kept
open with the statuses people gave them. `list_sources` gives per system: file
export or connection, when a scan last read it, whether the current map was built
from it, and per file its path, format, record count and objects; `work_done_here`
counts the work agents reported there; a limited key sees a file only when every
object built from it is in its scope. `list_signals`: a lease that ran out or a
reopened signal keeps its `created_at`, so poll `states: ["open"]` without
`since`; `by_rule` rolls this page's open rule firings up per rule; a done signal
carries `effort` (times and tokens, served or reported). For a key limited to part
of the map, a close counts only when that key may see the record behind it, so such
a signal can still come back as open under `unacted`.

**get_process and get_metric.** `get_process` without `object_type` lists one
process per central object type; with it, each deviating variant carries its
missing or extra steps, candidates for process-level findings. Processes are
found deterministically, from the exports' dated rows and any event log they
include. `get_metric` without `name` lists each metric's `caveat_count`,
`broken_reason` (the formula cannot be measured as written, and why; its values
are not recorded) and any `proposed_for_removal` mark, older definitions kept for
review included. The caveats say when a number cannot be trusted. For both, a kept
one reads with `kept` and the list adds `kept`; on a map larger than one call
reads, the list is cut: `truncated` is true and `truncated_note` says so.

**list_automations.** An automation is a flow, a zap, a scheduled job or an
agent on a timer. `attention` lists the reasons one needs a look, most urgent
first (`never_run`, `last_run_failed`, `status_unknown`, `object_not_on_map`,
`paused`), and the list is sorted that way. Maplith describes them from what was
registered. Only automations whose every bound object is in your key's scope
are listed.

**route.** `verified_rate` measures `join_spec.leftFile` rows (blank keys miss),
`child_coverage` child rows finding parents, `parent_coverage` parents with
children; null means unmeasured, and `child_key_coverage` counts only non-blank
keys. Each hop has a basis (declared with `declared_by`, measured or guessed);
guessed hops are used only when nothing else connects (`guessed_only`), and kept
items only when nothing current does (`uses_kept_items`). Each object's
`work_done_in` says where agents reported working on it. Contradictory inferred
directions are withheld; pinned shapes stay with a `shape_conflict` warning.

**ask.** The answer is written from what your key may see, cites the exact
elements it rests on (ids you can pass to `fetch`, `get_object` or `route`;
signals as `signal:<id>`, documentation as `doc:<page>`), and says what the map
could not establish. A cited route carries each hop's measured `verified_rate`;
`unmeasured_joins` names joins never measured. It is metered against the
workspace's daily allowance and limited per key.

**get_value_summary.** Notices and changes resolved before anyone acted are
separate totals; gate requests count by decision, and approvals a person decided
are workspace-wide (null for a key limited to part of the map); records without a
value are counted as unstated. Acted on means a record exists against the signal,
or a person closed it in Maplith or in the system the case lives in. `until` is
exclusive and at most 400 days after `since`.

**The setup check: the overview's setup_check (`get_task_context` with no argument and `setup_check: true`), and check_setup, which it replaces until 2027-04-30.** It checks the chain from the map to a recorded completion: a
signal kind nothing handles (no approved, anchored playbook and no automation);
open signals piling up unacted, or past their severity's time (4 hours urgent, 24
attention, 72 info); a playbook in draft, anchored on nothing, naming an
undeclared operation or a missing object, or whose trigger is not wired; an
operation with no action policy or no live key able to ask for it; a join a
playbook crosses that is neither confirmed nor measured; a source with unknown
owner or refresh cadence; an automation registered active with no run reported for
8 days; an uploaded system no connection keeps fresh; a plan past its due date.
Maplith runs it hourly; a scoped key sees only gaps about objects in its scope.

**build_map, and submit_sources, which its op submit replaces until 2027-04-30.** For `op: "submit"`, `content` is text for CSV, JSON, JSONL,
Markdown, VTT and mbox, or base64 for an Excel workbook (up to 20 sheets and 50,000
rows per sheet, each sheet a CSV) or a PDF (its text layer, first 100 pages; a
scanned PDF is listed as unreadable). Images, audio, video and archives are
refused. Up to 100 files and 5 MB per call, 2 MB per file, 300 files and 80 MB per
upload; an upload not built within 24 hours is deleted. Leave a shared root folder
out of the paths. If you cannot read a system directly, ask your human to export
into one shared folder, one subfolder per system. Source uploads are exports from
your human's systems, never your own work notes. `op: "start"` (a call without
`op` too) needs an owner or admin to have accepted the Terms and DPA at
`human_action_url`; a scan that does not fit today's scan budget waits in the
queue and starts on its own (`waits_for_budget`). While Maplith's AI is
paused on Maplith's side, a scan stays `queued` instead of failing and
starts on its own once it is back. `op: "status"` reads the
upload's run (`queued`, `running`, `succeeded` or `failed`, or `not
started`) and starts nothing.

**correct_source_system.** `move` re-homes paths into an existing target,
`split` into a new system named target, `merge` folds the whole source into
target, and `rename` gives the whole source the new name. A correction is kept
across later uploads and never changes object names, access or stated answers.

**answer_question.** `field_identity` answers each unrecognised column of a new
export (accept Maplith's suggestion, `same_as` a candidate, `new`, or
`other_table` for the whole file); `grain` names the one or two columns that
identify a row, or `[]`; `schema_dialect` is `postgresql` or `mysql`;
`lineage_direction` names which copied file holds the original; `auto_detected`
confirms or corrects items from `fieldwork_objects` or `work_done_in`. Give what
you checked as `reason`, or ask your human; a person's answer stands, and a
suggestion's confidence measures past correctness, never the model's certainty.
`grain`, `schema_dialect` and `lineage_direction` apply only for an autonomous
key that sees the whole map, or an admin's delegate key; `field_identity` and an
`auto_detected` correction apply for an autonomous key and otherwise wait for a
person; an `auto_detected` confirm applies for any key that may act and does not
hand over only.

**configure_metric and register_automation.** `direction` `up` means rising is
bad, `down` falling; the threshold is drawn for the kind of figure the metric
gives now, so redraw it when the formula changes shape. A metric Maplith cannot
compute says why at once. `register_automation` refuses an unknown object name
with the names not found; leave `reads` and `writes` out to keep the objects; an
entry a person confirmed keeps its name, team and objects.

**take_signal.** Taking a signal again renews the hold. It is refused when another
agent holds it, when someone else planned it and the plan is not past its date,
when it waits on a person, or when it is done. A plan's `due` is within the
workspace's cap (by default 7 days for urgent, 30 for attention, 90 for info);
without a date, seven days or the shorter cap. The workspace limits how often one
episode is planned. It changes nothing in any system.

**record_action.** With `work`: `kind`, map `objects` with non-personal
references (name the client or channel the work was for, never a person), the
`system` you did it in as `list_sources` or the product names it, optional `at`
(within the last 90 days, never future), plus `summary` and outcome `done` or
`skipped`; call it at once, without `get_task_context` first. It is news in
agent activity, not a signal; repeats may become a draft for an admin at a later
scan, and for a key that sees the whole map an object type the map lacks goes on
the map as auto-detected once reports name it three times over two days. With a
signal: pass its `signal_version` (`created_at` as read) and `episode`; if the
signal has since come back as a new episode, nothing is recorded. Every
scan that emits a signal again moves its version; a key limited to part of the map
records nothing on a stale version and is told to read again, and a whole-map key's
record on one is kept but hidden from limited keys. `not_an_issue` and `wont_fix`
wait for a person under an approval key, unless it is a delegate. A person's hold
is settled by that person or an admin's delegate key (not customer reports,
security, secrets, legal). With `request_id`: only your own key's requests; if the
signal it named is gone or unreadable, the outcome is recorded against the request
alone, and a signal still waiting for work is handed to a person. Pass an empty
`signal_version` for a request that named no signal. `task` is at most 2,600
characters; recorded again on a signal waiting on your task, it updates that task.
`summary` is at most 500 characters, masked best effort. State `value` only in
your human's or their systems' own numbers; `tokens` is optional and shown as
reported by the agent. A hand-over-only key records `needs_human` on a signal,
and a person or the raising check settles it; where a playbook in use licenses the
key to close a kind (done with resolution `fixed`), it may within the licence's
number a day, and any other close is refused.

**state_relationships, and join_review with op state, which replaces it.** Write one relationship per line (`orders.customer_id ->
customers.id (N:1)`, or `order_lines is a join table between orders and
products`), or a list of `{from, to, cardinality}` or `{join_table, between}`.
A table is an object of the map or a file; a column is the header as the export
spells it; `=` claims no direction. Lines it cannot read come back in
`not_read`; stating one again
changes nothing. It writes nothing in your human's systems; the call is logged.

**request_action.** `op: "ask"` is above (Asking before you act). `pending`:
show `approve_url`; an admin decides in the app or in Slack. With no policy the
answer is denied; for an operation the workspace's catalogue declares, it says
where an admin adds one (Sources › Agents › the agent › What it may do) and
gives, in `next`, the call to ask for it. A key that acts is listed
`request_action` before any policy exists, and is denied until one does. Maplith
never sees your credentials and acts itself only where `next_step` says so (as for a
company-page post). `op: "withdraw"` takes back one of your own requests while it
waits for a person: pass `request_id` and a one-sentence reason the person reads;
it becomes withdrawn (nobody decides it, nothing is done, it stays in the log);
needed after all, ask again with a new `idempotency_key`. `op: "proposal"` is in
[Signals and rules](/docs/signals-and-rules) (a rule an agent proposes): no
operation policy is needed, a whole-map admin approves even for an autonomous key,
and only objects the key sees, join intermediates included, may be named.
`op: "list"` shows each request's operation, target, params, reason and the
signal it named with that signal's state now; `waiting_on_maplith` lists a system
Maplith is setting up or a problem or suggestion sent with `suggest_feature`, and
each row says since when and where it stands, and a system that is done also
raises an `unblocked` signal.

**redeem_action_grant.** The first redemption marks the grant used and every later
attempt is refused. Maplith checks grant, digest, request, system, operation,
target kind and `param_digest` against the request and the grant in one atomic
update, so a grant for a refund of 120 on one order never authorises 999,999 on
another. `param_digest` is
`base64url(HMAC-SHA256(key = base64url-decode(param_salt), message = "maplith-action-params/v1" + "\n" + canonical({system, operation, target: {kind, id}, params})))`,
over the action exactly as it was sent to `request_action`; never copy it out of
the grant. Take `request_id` from your job, not from the grant, or the check
compares the grant with itself. The `digest` is a bearer factor, not a check on the action: Maplith
hashes the parameters in the masked form it stored. Any key of the same workspace
may redeem, never one of another. Any answer but `redeemed` means do not act:
`already_redeemed` (perhaps your own retry), `expired` (ask again with a new
`idempotency_key`), `wrong_action` or `params_mismatch` (the grant is not used
up), `params_required`, `params_unbound` (ask again), `revoked` or `refused`.

**request_action op list, and list_requests, which it replaces until 2027-04-30.** Requests come newest first. Failed means approved, but Maplith
could not carry it out; its `failure` says why and what to do next. Each carries
its `request_id`, the operation (`system.operation`), the target, the params you
sent, your reason, when you asked, and the signal it named with that signal's
state now; only this key's requests. A key that cannot ask for actions gets an
empty `requests`. In `waiting_on_maplith` each row says since when and where it
stands; for a system you also get an `unblocked` signal when it is done.

**draft_playbook.** `part: "time"`: when a person approves or works through a
playbook with you, offer the optional manual-time question. Call `time_mode:
"status"` first; only a person-bound OAuth connection can save it or read its
status, so on a key you were handed, skip the question. If unasked, `time_mode:
"ask"` claims the one question; record the person's explicit minutes with
`time_mode: "answer"` and `time_basis: "person_stated"`, or their explicit
`skip`. Never estimate; a question pending, answered or skipped is not asked
again. `part: "steps"` drafts the steps of a playbook Maplith wrote without them,
from helpdesk conversations you read or steps your human states. `part: "whole"`
proposes a playbook for a signal kind nothing handles, drawn from the signals you
name, in Maplith's own workspace; it is refused for a kind that is covered or has a
draft waiting, and then you plan the signal with `take_signal` (`plan: true`, due
in 7 days). A rejected or deleted whole proposal holds its workspace and kind for 90
days. A draft with a value Maplith recognises is turned away. You cannot approve,
edit or delete a draft, and a draft and its licence allow nothing until approved.

**join_review.** `op: "flag"` with a `reason`: `wrong_key`, `wrong_direction`
(with `cardinality` read from → to), `not_related`, `works_like_this` (how, in
`note`) or `missed` (with the key or a note); for a join on the map pass its key
exactly as `route` or `get_object` gave it. If Maplith's evidence contradicts the
claim nothing is opened and the outcome is `contradicted`, with the evidence to
show your human; only if they still say it is wrong call again with `confirm:
true`. Other outcomes: `opened` (with `review_id` and the report call), `exists`,
`on_map`. Each review raises a `join_review` signal whose task context says what
to count in your human's own systems. `op: "report"` needs `left_distinct`,
`right_distinct`, `matched_distinct` and `sampled`; a fraction, a negative,
counts that cannot all be true or a note over 300 characters refuses the whole
report. Never send a value, a row, a name or an id from the data, and show your
human the numbers first.

**get_rule and report_observation.** The list gives each rule's checking mode,
when it last fired (90 days), `review` on a quiet one, retired ones last with
their reason, and each live check's id, cadence, status, health (never reported,
healthy, late, silent, rejecting, broken, needs confirmation, paused) and last
report. A rule read in full also names who answers for it (`owner`: a person's
`user_id` or a `department_id`, or null when nobody does yet; Maplith names one
every hour for a rule that has none) and where it came
from (`source`: a person, a finding Maplith set it up from by its `finding_key`,
Maplith itself, an assistant's or an agent's proposal by its `approval_id`, or a
document by its `path`; null when no record shows it), and gives each live check's spec (what it is judged per,
each figure's source, the tested join, which conditions you check and which the
acting agent confirms, the figures a report may carry). Follow its instructions
with your own connectors; Maplith reads none of them. A whole-map key is listed
every rule; a limited key sees only live checks whose every object it can see. A
report sends figures by term id (`{"t1": 0}`); a property the contract does not
name, a figure the check does not ask for, or a key over 200 characters or with a
control character refuses the whole report, and a figure that does not meet the
conditions is refused as inconsistent. A group that starts holding raises
`rule_fired`; a group a live check reports as stopped is kept on the rule itself, and the next time it holds it is raised again. The first snapshot
after a check is set up or changed is its baseline. `observed_at` is ISO 8601 with
a zone, at most 24 hours old; a report against an older `spec_version` is refused;
a retry with the same `event_id` returns the first receipt. The receipt says per
group raised, restamped, debounced, baseline, confirming, cleared, capped or
refused.

**wake_subscription, and set_wake_subscription and remove_wake_subscription, which its ops replace until 2027-04-30.** `op: "set"`: at most 3 endpoints per key; leave out what should stay
when you change one. A new endpoint and a rotated secret each get one signed test
wake-up (type test, no signal ids), and `test: true` sends one on request;
`your_key.wake_ups` shows whether it was accepted, and a test counts against the
daily cap. The filter's kinds are signal kinds, and objects and domains must be on
the current map within your key's scope. A signal wakes you once raised, a burst as
one wake-up; `debounce_seconds` is ignored. You may lower `daily_cap`, never past
the limit a person set, and a new endpoint is refused while a person has paused or
set limits on another of yours. After `rotate_secret` the old secret signs for 24
hours. `op: "remove"` removes an endpoint with its delivery log and revokes its
secret; it is refused for one a person set up, paused or set limits on, and for
one with wake-ups counted today, which an admin removes. Every change is logged
with your key. More: [Wake your agent](/docs/wake-your-agent).

**get_proposal_options and propose** (the in-app assistant). The items that wait
for confirmation come grouped by the pattern they share, with the evidence the
map holds for each and no verdict: you judge which belong together, and ask the
member when unsure. Each rule says whether it is on and in which modes it is
checked live. A proposal card lists exactly what will apply, and the member
applies it with one click. `confirm_items` takes one line saying why;
`finding_status` the status the member chose; `rule_from_finding` a rule per
object and key, with conditions over the map's own object and field names,
refused with the reason when a join is untested or a name is wrong;
`watch_from_rule` a rule id that is on. `propose` returns the proposal id, or
the reason nothing was proposed.

**suggest_feature.** `kind: "improvement"` (the default) is a missing tool, field
or answer shape, filed in Maplith's tracker. `kind: "bug"` names the `tool` and a
`problem`: `error` (it failed), `wrong_answer`, `contradicts_docs` or
`incomplete` (it left out what the docs say it carries), with `expected` and
`got`. A bug reaches Maplith as your human's report with a
reference and `follow_url`; an improvement returns its tracker URL. Where
`notify_me` is offered and your human said yes, Maplith emails them once, when
it is done; either way `request_action` with `op: "list"` shows when it is done. Never records,
values, names, credentials or identifiers: Maplith tries to mask what slips
through, and the text leaves the workspace.

## Items the map keeps

A scan removes nothing by itself. What it no longer finds stays on the map: an
object whose source stopped arriving, a file that was missing from the scan, or
an object another one replaced. Your agent reads these too, apart from what is
current: in a `kept` block that says since when (`not_seen_since`) and why
(`reason` and `reason_text`, in one line: "Its file was missing from the
scan.", "Its file was there, but the scan did not find it.", "Its source
stopped arriving." or "Replaced by" and the name, `replaced_by`). They come in
new keys only, and only where something is kept: `kept` on the overview, on
`get_metric` and `get_process` and on the item itself, `kept_matches` in
`search`, `fields_not_seen` and `kept_joins` on a current object, and
`kept_references` in `get_task_context`. Every current field and count answers
as it always did, and a kept item is in none of them. `get_object` on a name the
map keeps answers it as it was last seen, with the same `kept` block; a kept item
outside your key's scope answers as an unknown name does. `route` uses a kept
join or object only when nothing current connects the two objects, and then says
so (`uses_kept_items`, and `kept` on each such hop and object). Check a kept
item in your human's own systems before you build on it.

## Stable references and questions

A finding’s `finding_key` stays stable across rescans. Pass
`finding:<finding_key>` to `fetch` from signals or task context; the
current scan’s `finding:<id>` still works. Access is checked the same way.

`ask` can cite visible open signals with their severity and state as
`signal:<id>`; open one with `get_task_context`. Its context is bounded:
the grounding.context_note says how many elements were read. At most 20
signals enter an answer; signals_truncated marks more available work. Map
questions keep map evidence first. If optional signals cannot be read,
grounding.signals_unavailable says so and the answer can still use the map;
it cannot establish what work is open or most urgent. An excerpt for an answer does not mean the map is
incomplete. Questions about Maplith use relevant documentation sections and
the tools actually listed to your connection.

## When a call fails

Every JSON-RPC error the endpoint returns carries `error.data.next_step`: one
sentence that says what to do next: which call to make instead, whether to
wait and retry, or that retrying will not help and your human should be told.
That holds for a malformed request, a missing or invalid key, the rate limit,
an unknown method, a playbook that is not there or too large to return, and a
failure on Maplith's side.

Once a call reaches a tool, the tool answers with a result, not a JSON-RPC
error. When it cannot do what was asked (an argument it cannot use, a tool
name or an id it does not know, a policy that does not allow it, a limit
reached), the result is marked `isError`: its `error` says why and its
`next_step` says what to do next: the call to make, whether to wait, or who
can decide. When a tool fails on Maplith's side, the result is marked
`isError` too, and its text says whether to try again. So `isError` says
only that the call did not do what was asked: read `error` and
`next_step` on every result marked `isError` before you retry, change the
call or tell your human. `redeem_action_grant` marks every `outcome` but
`redeemed`: only that one authorises the action. A decision is not a
refusal: when `request_action` answers `decision: "denied"`, that is its
answer, not an error. Nor is the guide to the first map: while the
workspace has no map yet, a map tool answers with `error`, `next_step` and
`first_map`, the steps to build it, as an ordinary result.

When an admin has paused every agent in the workspace, every call is refused
with the same sentence, *"Agents in this workspace are paused by an admin
since <time>: <reason>. Ask an admin to resume."*, and `code:
"agents_paused"`: a tool call as a result marked `isError`, any other method
as the JSON-RPC error -32004. Only `initialize` and `ping` still answer.
Stop there, act in no system for the workspace, and tell your human; nothing
works again until an admin resumes the agents.

### Choosing a tool

The overview returns domains, row_counts, scoped counts, freshness and quality,
and `your_key`: which shape the connection has (read-only, acts with approval
or autonomous; the whole map or part of it), in the words every gated tool's
closing "Needs:" sentence uses, so an agent compares before it calls.
Journey gives stage/done and up to three steps with what, why and who (a page
for your human's); `next` holds the calls; setup names missing links. Maintenance gives last-seen dates and refresh steps. Counts can be lower bounds when the response is truncated. Use
journey to guide your human, including features they have not started yet.

Task context carries playbooks and playbook_drafts, suggested_action and remedy,
handling, lifecycle and trust, and `next`: for a signal that asks a question,
the exact call that answers it, with what Maplith knows filled in and `why`
saying what you add. A taken signal and a flagged join answer with `next` the
same way (the record that finishes the signal, the report that adds the counts). The trust summary names weak joins and fields not
to quote back. Still metadata: fetch rows in your human's own systems using the
routes. Playbooks guide work and never grant permission. A routine
selects its named playbook; typical_value is passed on only when your human's own
systems state it, never as an estimate. Suggested actions forecast the decision;
changed rules, flood-cap summaries and a rule's roll-up cannot authorize action. Rule checks are
numbered and say which conditions need confirmation in your human's own systems.
Remedy links the map's SOP. Rollback identifies the current scan to look up again.
Lifecycle describes the holder or plan, episode, changes while held and earlier
resolutions; handling explains the check that closes the cause, earlier requests
and work already in hand. Read both before asking a person to act. The named
finding is included when visible; other findings are a relevance selection and
truncated_note explains an incomplete selection. No source rows are returned.

For a case without a signal, supply identifier and topic kinds, never customer
values. Context identifies lookup fields, routes, playbooks, related findings and
signals, and the operations available to your key. Look up the actual customer
in your human's own systems.

Use `get_task_context` with no argument to orient yourself, `route` for a join path and
`get_object` for one object's fields. Use `list_signals` for work or changes
and `list_findings` for documented discrepancies. `get_task_context` equips
one signal or support case; action forecasts and playbooks never grant permission.
The full lifecycle is in [Signals & rules](/docs/signals-and-rules).
The signal-kind filter lists the kinds relevant to your workspace; Maplith's
internal operational controls are not advertised to customer connections.

Response guidance follows the tools listed to your connection. If a step needs access this key lacks, share your evidence and proposed next step with a person in the workspace in your conversation, and point them to Signals or Findings.

### Rate limits

Maplith paces calls by kind of key. A key made for your workspace (in
Sources › Agents, or by connecting ChatGPT, Claude or another client through OAuth)
gets a burst large enough for a review, then a steady rate, with a ceiling
across all keys of one workspace. The public demo keys are paced more tightly,
per caller. Every message in a batch counts as a call; the handshake
(`initialize`, notifications, `tools/list`) has a budget of its own. Each
answer carries `RateLimit-Limit`, `RateLimit-Remaining` and
`RateLimit-Reset` headers, so a client can pace itself.

When a tool call is refused, it is answered as a tool result marked
`isError` with `retryable: true`, `retry_in_seconds` and `limit` (which
limit refused it), and a sentence that says to wait that long and continue,
from the `next_cursor` you have if you were paging. Nothing was lost. Any
other refused method gets HTTP `429` with `Retry-After` and the same fields
under `error.data`. Too many requests with an invalid key from one address
are refused before the key is looked up, with a message of their own.

To read a long signal queue in few calls, page `list_signals` with a larger
`limit`, leave out the kinds you are not reviewing with `exclude_kinds`,
and read the counts on its first page; `get_value_summary` counts over a
period.

## Workflows and departments over MCP

A workflow groups the playbooks that together deliver one outcome (see
[Workflows and departments](/docs/workflows-and-departments)). Eight tools
say which workflow and department a piece of work belongs to:

- `get_task_context` returns `workflow` (id, name, department) and
  `department` for a signal or a task. When several workflows handle it,
  `workflows` lists them all and `workflow` is the first by id;
  `department` is the first department among them that has one. A signal a
  rule raised goes to that rule's workflows only. Until rule signals per
  workflow ship, a rule in two workflows raises one signal, placed in both.
- `list_signals` names each signal's `workflow`, and its `workflow` and
  `department` inputs keep the signals of one workflow, or of one department's
  workflows. A workflow or department that does not exist, or that your key
  cannot see, answers an empty page; ids may be written in either case.
- `search` finds workflows by name and purpose (`workflow:<id>`), and
  `fetch` reads one: its purpose, department, status and the part it still
  needs, its playbooks, and the rules, policies and objects derived from them.
- `get_object` lists `used_by_workflows`, and the overview (`get_task_context` with no argument) lists
  `departments` with how many workflows, playbooks, rules and policies each has
  (policies scoped to a department or to an operation count too).
- `get_value_summary` with `group_by` `workflow` or `department`
  counts signals and their records per group (a signal in two workflows counts in
  each; the totals do not change); findings and metrics are not grouped.
- `draft_playbook` with part `whole` takes an optional `workflow` to
  put the new draft in; it stays a draft, served to no agent, until a person
  approves it.

A key limited to part of the map sees a workflow only when every playbook in it
is in its scope (a draft placed in a workflow is listed there but takes no part in
it, and is named to such a key only when it is itself in its scope), and only the
departments of the workflows it sees; it is never told the name or a count of
one it cannot see. Rules and policies are named to a
key that sees the whole map only. Who acts and who approves is not served over
MCP.

## Maplith's documentation: resources and prompts

These pages, except the page about what Maplith costs and the company-brain article (`what-is-a-company-brain`), are served to every key as MCP **resources**, one per page, at
`maplith://docs/<page>` (`resources/read` returns the same markdown
as `/docs/md/<page>`), and four MCP **prompts** are built from them:
`maplith-get-started` (from a new workspace to the first map, and on by
the `journey` of the overview, `get_task_context` with no argument),
`maplith-connect-your-agent`, `maplith-test-the-map` (test the map with
your human before relying on it) and `maplith-work-the-signals`. They are
listed first on the first page of `resources/list` and `prompts/list`,
ahead of your workspace's playbooks, after one more resource,
`maplith://product-map`: Maplith's own concepts as a map, in the shape of
your human's map (objects with a description, relations with a verb and a
cardinality), with what each needs first and the tool or page that serves
each, as JSON with a markdown rendering. `ask` answers a question about
Maplith itself from the same pages and cites them as `doc:<page>`; a
question about your map is answered from your map alone.

## Playbooks: resources and prompts

A **playbook** is a document an admin writes in your workspace (the steps,
the checks, the exceptions, the tone), anchored on the map: on the objects or
processes it is about, or on signal kinds or catalogue operations. A playbook
in use always has at least one anchor; the database refuses one without, and
an agent reaches it through the item it is working on. Maplith serves it to
your agents three ways, and never asks them to go looking:

- inside `get_task_context`, under `playbooks`, for the signal the agent
  picked up: the ones anchored on an object the signal names, bound to that
  signal's kind, to a process it touches, or to the operation it is likely to
  need. The list is always there: when nothing is aimed at the task it is
  empty, so an agent reads "none" and never has to wonder whether the key was
  left out. Each entry carries the playbook's text, `approved: true` and the
  `uri` to read it again with `resources/read`: an agent never has to
  open a file in your repository or anywhere else. One reply carries at most
  1 MiB of playbook text: past that, an entry keeps its title and says where
  to read the text whole (`body_omitted`), rather than sending half of it.
  For a support case (`get_task_context` with `case`), the ones whose title
  names the kind of case, or that are bound to an operation or a process that
  does;
- as MCP **resources**. `resources/list` names two per playbook: the document
  itself, and the same playbook exported as a **SKILL.md** for clients that
  load skills. `resources/read` returns either as `text/markdown`. A skill
  name may not contain "claude" or "anthropic", so the SKILL.md's name leaves
  out any part of the title that does (`Claude handoff` is served as
  `handoff-skill`), and the playbook editor says so;
- as MCP **prompts**. `prompts/list` names each playbook by a handle taken
  from its title, and `prompts/get` hands it over as a message.

Three things are worth saying plainly, because an agent acts on them.

**Guidance, not enforcement.** A playbook is prose your people wrote. It is
not a limit on what an agent may do, and no part of Maplith reads one to
decide whether an action is allowed: that is the key's policy and its grant,
checked when the agent asks to act. Every playbook Maplith serves carries a
sentence saying so, next to the text.

**What the work is typically worth.** A playbook may say what its work is
usually worth, under its own heading, `## Typical value`, for example "refund avoided:
the amount of the order". It names the figure to look for, never a number.
`get_task_context` hands it to the agent as `typical_value`, beside the
playbook's text (so it arrives even when the text is left out for size), with
`typical_value_note`: when the agent records the outcome and your own
systems state that figure for the case, it passes it as `record_action`'s
`value`; when nothing states it, it leaves value out. That is what
`get_value_summary` and the monthly report add up; Maplith never estimates it.

**Who carries it out.** Every playbook names one agent or one person who
carries it out. Maplith chooses: the agent whose key sees the whole map, may act
(and not only hand work to a person) and has a policy on every action the
playbook names; else the playbook's approver; else a workspace admin. A
workspace admin can change it on the playbook's page (About it, Carried out
by), and Maplith keeps that choice while it can still be made: until the
agent's key is revoked, limited to part of the map or published, or the person
leaves the workspace. `get_task_context` hands it to the agent as `executor`: for an
agent, whether it is the agent asking (`you`); for a person, their member id;
who chose it (`chosen_by`); and the same in a sentence (`says`). It names
who does the work, never what an agent may do: that is still the key's policy.

**Only what is live, and only what the key may see.** A draft (one an admin
is still writing, or one Maplith drafted that no admin has approved) is
never served to an agent, and neither is one that has been retired. A draft
aimed at the task is only *named*: `get_task_context` lists it under
`playbook_drafts` (id, title, what it is aimed at, `approved: false`,
at most five, an empty list when there is none) with a note saying it is not
the procedure and that an admin approves it in Workflows › Playbooks. Its text is not read for this at all, and
a draft is never a resource or a prompt. Drafts pass the same scope check as
playbooks in use. A playbook anchored on objects or processes reaches a key only
when every one of those objects, and every object those processes run on, is
inside the key's scope; one bound to signal kinds or operations alone names
nothing scope-bearing, so it reaches an unrestricted key only. A playbook
anchored on nothing is served to nobody, and cannot be put in use: playbooks
put in use before anchors were required are listed in Workflows › Playbooks for
an admin to anchor or take out of use.
Reading a resource or getting a prompt is checked exactly as listing is, so a
client cannot read what it was never listed.

**The version it was served at.** Each playbook served inside
`get_task_context` carries the version it was handed over at, so what an agent
was told is answerable afterwards: an admin who edits a playbook can see which
wording an agent had in front of it.

## Asking for what is missing

`suggest_feature` is for the case where your agent tried to answer your
question from the map and could not, because Maplith lacks the capability. It
files the request as an issue in **Maplith's own tracker** and returns the URL,
so you can follow it. Nothing is filed unless the agent calls the tool;
Maplith never files on its own from a failed call.

With `kind: bug` the same tool reports that one of Maplith's own tools
failed, answered wrongly or contradicts the docs. That report is not filed in
the tracker: it reaches Maplith as your report, as **Tell Maplith** does, and
shows under **Your reports** (see [When something does not work](/docs/getting-started)).

It is deliberately **not** on the autonomy ladder below: it changes nothing in
your workspace, so every key has it, and gating it behind a write policy would
hide it from the read-only keys almost every agent uses. The controls are
elsewhere and they are real. The text goes through best-effort masking,
sanitising and truncation before it leaves (the tool asks the agent for the capability, never your data).
Maplith adds no identifier of your workspace, your key or a person to the
issue, only a reference that its own service resolves. An
open issue that already asks for the same thing gets a comment instead of a
duplicate. There are a few suggestions per workspace per day, every call is a
durable audit row, and the public demo key cannot file at all. A suggestion is
not a commitment; it is a request on a list.

## Typical flow

1. `get_task_context` with no argument: orient.
2. `get_object` / `search`: drill into structure. An object says how many
   rows its export has and which columns identify one (`row_count`,
   `grain`); every field whose column is in the export carries a
   `role` (identifier, dimension, measure or attribute, derived from the
   export) and a `profile` of counts, and every field carries a
   `personal` classification and a `pii` flag; the connection
   instructions tell the agent how to treat them.
   `list_sources` says which system and file each object was built from
   (format, record count, when it was last read) before you query a source
   system. It says how far back each system's last read reached and whether it
   was cut (`source_horizon`; see *How far back a source reaches* below). It
   also says what a person stated about each system (owner,
   refresh cadence, retention, access, sensitivity) and says `unknown` for
   what nobody has answered yet: ask your human, never guess.
3. `get_process`: how work actually flows; without a name it lists the processes.
4. `get_metric`: grounded numbers; without a name it lists the metrics. **Read the caveats**;
   they say when a number cannot be trusted, and a source whose read was cut
   adds one (`source_horizon` says how far back the sources behind the metric reach).
5. `list_findings`: documented discrepancies with evidence. Every finding
   carries a `finding_key` that stays stable across rescans (row ids are per
   run): refer to findings by key when you track them over time. Each
   finding also carries `suggested_next_steps`: the rule, live check, action
   plan or line on a number it can lead to, derived without a model from what
   the map measured and limited to what your key may see. You cannot turn any
   of them on; propose them to your human, who confirms in the product.
6. `list_signals`: what changed, as typed events to poll instead of
   re-reading the map, including the conditions the workspace wrote itself as
   rules; then `get_task_context` for the one you mean to work on. See
   [Signals & rules](/docs/signals-and-rules).
7. `ask`, when a question spans several parts of the map, or you do not
   know which tool holds the answer: one question in plain language, answered
   from what the key may see and nothing else, with citations to the map
   elements the answer rests on (ids the other tools resolve), every cited
   join with the rate the map measured for each hop (read from the map, not
   from the answer text), the joins it never measured, and a plain statement
   of what the map could not establish. Metadata only: it never
   reads rows. Each question is metered against the workspace's daily
   allowance, so use the direct tools for one known thing.
8. `get_value_summary`: what the workspace got out of it over a period:
   work signals raised and acted on (notices and changes resolved on their own are counted separately), the time from a signal to its record, actions
   by outcome, requests through the action gate, and the value the agents that acted
   stated in your own numbers, optionally grouped by workflow or department.
   Counts and sums within your key's scope; Maplith estimates nothing and
   attributes nothing.

## Try it right now: the sandbox

Acme Commerce, a fictional web shop (19 objects, 50 relations, 17 findings), served
by the same production MCP, read-only and rate-limited:

```
claude mcp add maplith --transport http https://app.maplith.com/api/mcp \
  --header "Authorization: Bearer mlk_demo_acme-ltyWYChCrYzO8KOec-8BX-yO"
```

Then ask: "call get_task_context with no argument" · "get_object support_conversation" · "which
findings mention refunds?"