# Daily check: the tool surface this bot reaches

Subject: the public `tools/list` of every MCP server this bot is connected to. Not the bot's own tools.
A Grok Bot does not export its own internal tool set; asked to, it refuses (platform behaviour,
measured 2026-10-16). It can snapshot each connected server's public `tools/list`.
<!-- source: packages/cli/src/commands/tools-check.js:1-26 (command, exit codes); test/tools-check.test.js -->

## Steps (once a day)

1. For each connected MCP server `<server>`, fetch its `tools/list` (or take the chief bot's snapshot
   file for that server) and write it unchanged to `tools-<server>-<date>.json` (date: `YYYY-MM-DD`).
2. Compare with yesterday's file, or with a pin written earlier by
   `npx -y coderifts@8.9.1 lock --live-url <url> --out tools-<server>-pin.json`:
   ```bash
   npx -y coderifts@8.9.1 tools-check --base tools-<server>-<yesterday>.json --head tools-<server>-<date>.json
   npx -y coderifts@8.9.1 tools-check --lock tools-<server>-pin.json --head tools-<server>-<date>.json
   ```
   No key is needed and nothing is sent: the comparison runs locally and grants nothing.
   Exit `0`: no change, or info only. Exit `2`: a breaking change (the listed lines say which).
   Exit `1`: the check could not decide (a file did not parse, or the analysis failed). Treat it as
   "not checked", never as "clean".
3. On exit `2`, append one entry to the bot-incident log in its existing format:
   one `Entry <date> — <server>: tool surface changed` heading, then the sections
   `Setup`, `Run`, `What changed on our side` and `What it does not prove`. Under `Run`, paste the
   command and its change lines verbatim (for example
   `TOOL_ANNOTATION_CHANGED hub_repo_details openWorldHint false→true (riskier)`).
   <!-- source: ~/coderifts-website/docs/bot-incidents/index.html:95-140 (Entry … h2, h3 sections) -->
4. Never fix anything automatically: do not edit, re-pin or disconnect a server because of this check.
   Report the entry; a person decides.
