streampresence.dev/docs
~/docs/toolprints

MCP Toolprint — the tool you approved is the tool you run

When you approve a tool, you approve a definition: a name, a description, an input schema, and the stated terms where the server presents them. A server can present a different definition later — an added sentence in the description, one more optional parameter — and nothing in the protocol tells you it happened. MCP Toolprint is a registry of toolprints: digests over tool definitions as presented to an agent. Pin the definition shown at approval time. Before a later call, check the definition being shown in this session against the print. The check runs at call time, through this service, every time.

The check reports one of three facts — match, changed (with the fields that differ), or unknown (no print on record). It makes no assessment of any change: definitions change for ordinary reasons too, and what to do about a change is the caller's decision. This service never blocks a call.

The machine-readable entry document: GET https://stream-presence-pow.onrender.com/api/v1/toolprints.

## quickstart — the prompt

Hand your agent this prompt; it follows the entry document end to end:

Route your MCP tool calls through MCP Toolprint. Fetch https://stream-presence-pow.onrender.com/api/v1/toolprints and follow it end to end: when you first approve a tool, pin its definition with pin_toolprint; before later calls to that tool, run check_toolprint on the definition you are being shown in that session. If the answer is "changed", show me the field-level diff before you run the tool.

The same prompt as a fetchable plain-text file: streampresence.dev/toolprint-prompt.txt.

## the print

A toolprint covers four fields of the definition as presented:

FieldWhat is digested
nameThe tool name, as a string.
descriptionThe full description text, byte for byte.
input_schemaThe input schema object, canonicalized (RFC 8785 JCS).
termsThe stated price / terms where the server presents them with the definition; absent where it does not.

Each field gets its own SHA-256 digest; the print digest is a hash of the canonical print core {"v": 1, "server", "tool", "fields"}, so a changed result can name exactly which fields differ. A print is identified as tp_… and keyed by (server, tool) — the server string is the identifier you pin under (a URL, a URN, or a name you control); pick one form per server and keep it. Numbers are normalized before hashing: a JSON number with no fractional part (1.0) is the integer 1; a non-integral number (0.5) is carried as its shortest round-trip decimal string. A definition carrying NaN or an infinity is refused with the JSON path of the value.

## the calls

MCP Toolprint is its own MCP server — separate from the main Stream Presence MCP endpoint:

SurfaceCallDoes
POST /mcp/toolprintpin_toolprintPin a definition as the reference print for (server, tool). Signed — see below.
POST /mcp/toolprintcheck_toolprintCompare the definition presented in this session against the print on record.
POST /mcp/toolprinttoolprint_historyThe prints on record for (server, tool), first-seen first, with the append-only change-event log.
POST /api/v1/toolprints/pinREST pinThe pin, as REST.
POST /api/v1/toolprints/checkREST checkThe check, as REST.
GET /api/v1/toolprints/history?server=&tool=REST historyThe history, as REST.

Pinning is a signed write. A pin carries your did:key and an Ed25519 signature (base64url, over the JCS-canonical envelope {"action": "toolprint_pin", "did", "print_digest"}). A pin may also carry a provider_signature — the definition signed by the tool's provider — which sets the print's tier (below). Checking is open: send the definition as presented; no identity needed. You may sign a check (envelope {"action": "toolprint_check", "did", "current_digest"}) so the check meters to your did:key instead of your IP — a supplied signature that does not verify is an error (403), never a silent downgrade.

## what a check returns

Two more facts ride along when they hold. If more than one print is on record for a tool, prints_on_record says how many, and the check compares against the most recently pinned one. If a different digest was observed after the print you matched, the match response names it as latest_observed_digest with its timestamp. Raw checks are not stored; the first observation of a new digest is recorded as a change event, and prints and events are append-only — a print is never edited or deleted.

## tiers — what a print states

Listing a print in this registry is a record, not an endorsement of the tool, the server, or the provider.

## private servers

The registry never needs access to a server. The agent is the sensor: the baseline print is pinned from the definition as shown to the agent at approval time, and the call-time check compares the definition as presented in that session — so servers behind a login, on a private network, or visible only inside one client's session are covered the same way. Two limits, stated plainly: a definition that was already altered before its first pin is recorded as presented — change detection starts at the first pin; and a print covers the definition as shown, not what the server's handler does when the call runs.

## metering

Standard platform metering (docs/billing): checks are free for the first 1,000 per day (per did:key when the check is signed, else per IP), then $0.001 per check against your PRESENCE balance and cap; pins are free for the first 100 per day per did:key, then $0.01; history reads are free for the first 1,000 per day per IP, then $0.001. At the cap, a check returns the standard 402 block (on MCP: JSON-RPC error -32001 with the block in data).

First prints on record: this server's own three tool definitions, pinned as provider-signed prints under https://stream-presence-pow.onrender.com/mcp/toolprint on 2026-11-23. Read them back with toolprint_history.