find-out-what-identity-your-tool-receives
Deploy one tool that reports the caller identity it actually observes, in the host you will really use, before designing an integration around an identity you assumed.
Procedure
- start start. Goes next to s1
- action Build one tool that reports its caller, RW (reversible-write). Goes on_fail to s9; next to s2
- action Register it in the host you will really use, RW (reversible-write). Goes on_fail to s9; next to s3
- action Call it as an ordinary user, RO (read-only). Goes on_fail to s9; next to s4
- decision What identity actually arrived?. Goes if per_user to s5; if service_only to s6; if differs_by_surface to s7; if default to s9
- action Exchange the user token, scoped to them, RO (read-only). Goes on_fail to s9; next to s8
- action Decide where consent will live, RO (read-only). Goes on_fail to s9; next to s8
- action Pin the scenario to the surface that works, RO (read-only). Goes on_fail to s9; next to s8
- check The protocol versions agree. Goes on_fail to s9; next to __end_success
- escalate Stop before building on an assumption. Terminal
- end success. Terminal
Open the graph on its own page — larger, printable, and an address you can send.
Walk it without running it — you answer what your environment would answer, and the path, the capabilities, the approvals and the distance back to an undo come out of the document. Nothing executes; there is no Run button here and there will not be one.
Trust
T2 · attested 2026-10-11 · runbooks.directory
Nobody has attested this record. That is the ordinary case: T2 is what the catalog can check on its own, and T3 needs somebody to run the procedure and sign for it.
- Link liveness has not been checked: it needs a network and the catalog builds without one. Run
pnpm gates --onlinewhere there is one.
Steps
s1action — Build one tool that reports its caller (reversible-write)s2action — Register it in the host you will really use (reversible-write)s3action — Call it as an ordinary user (read-only)s4decision — What identity actually arrived?s5action — Exchange the user token, scoped to them (read-only)s6action — Decide where consent will live (read-only)s7action — Pin the scenario to the surface that works (read-only)s8check — The protocol versions agrees9escalate — Stop before building on an assumption
Capabilities
This is a privilege request. Check it against your own allowlist before running.
Provenance
- Source
- https://github.com/microsoft/ai-agent-runbooks/blob/083f33eec889/02-patterns/MCP-Server-Integration/MCP-Server-Integration-Runbook.md
- Fetched
- 2026-09-04
- Source last checked
- not since it was captured on 2026-09-04 — recorded as
current - Licence
- MIT
- How it got here
- Rewritten here from the source above, under its licence. The words and the steps are this catalog's; the procedure it describes is not this catalog's invention, and the source is where to check it.
- Highest risk in this procedure
- reversible-write
Take it with you
- SKILL.md — the record as an Agent Skills file
- workflow.yaml — Open Workflow DSL 1.0.3, for a runner
- record.json — the catalog's own JSON
- graph.svg — the graph, standalone
Run it under supervision
Runs here, on your machine, under supervision: every step is proposed before it happens, an approval gate stops for you, and a failed expectation goes where the procedure says rather than on to the next step. Nothing is sent anywhere. To supervise an agent that is doing the work instead, runbooks hook sits in its tool-call path.
npx @runbooks/cli run adapted/find-out-what-identity-your-tool-receives@1.0.0 --as "$(whoami)" \
--input host=<the surface the integration will actually be used from> \
--input pilot_account=<an ordinary user account, not a developer or administrator one>