ToolmarkCheck a package

Behaviour report · published

version 0.8.17 | run 2026-11-23

@paystage/mcp

Recorded by Toolmark on 2026-11-23. Version 0.8.17. Run 2026-11-23. A behaviour report, not a rating or an endorsement.

Tools declared
10
Called
6
Not called
4
Checks passed
6
Checks failed
0
To review
0

Not a rating; there is no score. Not tested is never counted against a tool.

Nothing to review

Declared and observed

What each tool says about itself, next to what happened when we called it.

Declared
Observed
evaluate_mcp_payment
verify the recipient. Call this BEFORE signing any x402 payment. Verdict is pay | review | do_not_pay, each with stable reason codes (e.g. 'amount 1.00 USDC exceeds max_amount 0.05 USDC'). Fail-closed by design: do not invent authority — when policy, identity, cost or evidence is missing the answer is a refusal or a review, never a pay. Returns the decision plus a signed receipt you can verify offline with verify_receipt. Read-only: holds no keys, never signs, never moves funds. A refusal costs nothing. This tool evaluates locally, so it makes no network calls and returns no seller reputation; the hosted HTTP API adds `seller_reputation` (domain and certificate age) because it can reach the network. destructiveHint: False, openWorldHint: False, readOnlyHint: True, title: Evaluate an x402 payment (read-only, never signs)
no benign synthetic value for type None
not tested
verify_receipt
verify the recipient. Call this when you have a receipt and want to know whether it is genuine, without trusting the server that issued it. Returns VALID with the verdict it attests to, INVALID if the payload was altered, or UNVERIFIABLE when the key cannot be fetched — and UNVERIFIABLE is a refusal, not a pass. Needs only the receipt JSON and a network connection; no account, no shared secret. Fetches the signing key from a published URL you can pin with key_url. Fails closed: do not invent authority — a missing policy, identity, cost or evidence is a refusal, never a default. destructiveHint: False, openWorldHint: True, readOnlyHint: True, title: Verify a receipt against the published key (read-only, never signs)
no benign synthetic value for type None
not tested
validate_policy
spending limits. Call this before wiring a policy into anything: a policy that fails validation makes every evaluation refuse, which looks like a product bug and is not one. Returns valid: true, or the exact field and message that is wrong. No payment needed, no network call, no key. Use it in CI on the policy file your agent ships with. Fails closed: do not invent authority — a missing policy, identity, cost or evidence is a refusal, never a default. destructiveHint: False, openWorldHint: False, readOnlyHint: True, title: Validate a spending policy (read-only, never signs)
no benign synthetic value for type None
not tested
evaluate_batch
transaction scope. Call this when an agent might pay several times in one turn and you want one policy decision covering all of them. Verdict is pay | review | do_not_pay per item, in input order, with reason codes — so the agent can stop at the first refusal rather than discovering it after three payments. Read-only, holds no keys, never signs. Cheaper and more consistent than calling evaluate_mcp_payment in a loop: same policy, one round trip. Fails closed: do not invent authority — a missing policy, identity, cost or evidence is a refusal, never a default. destructiveHint: False, openWorldHint: False, readOnlyHint: True, title: Evaluate a batch of x402 payments (read-only, never signs)
no benign synthetic value for type None
not tested
list_outstanding_auths
spending limits. Call this when auditing what an agent could still spend without a new signature — ERC-20 allowances, Permit2 and EIP-3009 authorisations. Returns each authorisation with spender, amount and expiry. Read-only and needs only a public RPC; no key, no funds moved. Use it after an incident to see what remains exposed, not to revoke anything (this tool cannot revoke). Fails closed: do not invent authority — a missing policy, identity, cost or evidence is a refusal, never a default. destructiveHint: False, openWorldHint: True, readOnlyHint: True, title: List outstanding token [REDACTED] (read-only, never signs)
tool returned an error for synthetic input (input may be invalid for the domain) · error text (untrusted): ENOENT: no such file or directory, open './policy.json'
passed: reports a failure when it cannot reach its service
reports a failure when it cannot reach its service · verified
evaluate_outstanding_auths
spending limits. Call this when an agent already holds authorisations and you need to know which are dangerous. Verdict is pay | review | do_not_pay per authorisation, with reason codes naming the rule that fired (unlimited allowance, expiry already passed, spender not on the allow-list). Returns per-authorisation decisions plus a summary action. Read-only: never revokes, never signs. Revocation is a transaction you send yourself. Fails closed: do not invent authority — a missing policy, identity, cost or evidence is a refusal, never a default. destructiveHint: False, openWorldHint: True, readOnlyHint: True, title: Evaluate outstanding token [REDACTED] (read-only, never signs)
tool returned an error for synthetic input (input may be invalid for the domain) · error text (untrusted): ENOENT: no such file or directory, open './policy.json'
passed: reports a failure when it cannot reach its service
reports a failure when it cannot reach its service · verified
evaluate_hip3_trade
transaction scope. Call this BEFORE an agent places a HIP-3 / trade.xyz order. Verdict is allow | review | do_not_trade, with the rule that fired (notional above cap, market not allowed, leverage too high). Returns the decision and a one-line reason. Local policy only: this is not financial advice, holds no keys, and cannot place or cancel an order. Prices come from a read-only market query. Fails closed: do not invent authority — a missing policy, identity, cost or evidence is a refusal, never a default. destructiveHint: False, openWorldHint: True, readOnlyHint: True, title: Evaluate a HIP-3 trade (read-only, never signs)
tool returned an error for synthetic input (input may be invalid for the domain) · error text (untrusted): Error: [ { "expected": "object", "code": "invalid_type", "path": [], "message": "Invalid input: expected object, received undefined" } ]
passed: reports a failure when it cannot reach its service
reports a failure when it cannot reach its service · verified
evaluate_velocity
transparent risk assessments. Call this when an agent is about to make its Nth payment and you need to know whether the rate itself is the risk. Verdict is pay | review | do_not_pay over a rolling window (per-hour and per-day spend, count of payees). Returns the decision plus which window was breached. Read-only: it reads the history you pass in, holds no keys, and calls no external service. Fails closed: do not invent authority — a missing policy, identity, cost or evidence is a refusal, never a default. destructiveHint: False, openWorldHint: False, readOnlyHint: True, title: Evaluate payment velocity (read-only, never signs)
tool returned an error for synthetic input (input may be invalid for the domain) · error text (untrusted): Input validation error: Invalid arguments for tool evaluate_velocity: proposed: provide exactly one of amount_atomic or (amount + decimals)
passed: reports a failure when it cannot reach its service
reports a failure when it cannot reach its service · verified
decode_payment_required
verify the recipient. Call this first when a 402 response arrives and you cannot read the payment-required header. Returns the decoded x402 v2 challenge: scheme, network, asset, atomic amount, payee, resource and timeout. Pure decoding: no network call, no signature, no verdict — use evaluate_mcp_payment when you want a decision. Fails closed with a named error if the header is malformed or not base64. Fails closed: do not invent authority — a missing policy, identity, cost or evidence is a refusal, never a default. destructiveHint: False, openWorldHint: False, readOnlyHint: True, title: Decode a payment-required header (read-only, never signs)
tool returned an error for synthetic input (input may be invalid for the domain) · error text (untrusted): Error: header is not valid base64
passed: reports a failure when it cannot reach its service
reports a failure when it cannot reach its service · verified
request_testnet_funds
test funds. Call this when you need Base Sepolia USDC to exercise the paid path end to end — one drip of 0.5 USDC per address per 24 hours, and the refusal tells you when it resets rather than just failing. Reads a public faucet: no key needed, no account, and it can only ever send testnet USDC. Use a throwaway address for anything automated; the cap is per address, so a script that generates a new address per call is not clever, it is why faucets get closed. Fails closed: do not invent authority — a missing policy, identity, cost or evidence is a refusal, never a default. destructiveHint: False, openWorldHint: True, readOnlyHint: False, title: Request testnet funds (writes a testnet tx, never touches mainnet)
tool returned an error for synthetic input (input may be invalid for the domain) · error text (untrusted): Input validation error: Invalid arguments for tool request_testnet_funds: address: a 0x-prefixed 20-byte address
passed: reports a failure when it cannot reach its service
reports a failure when it cannot reach its service · verified

What the server did in the sandbox

0Programs it started or tried to startnone seen
0Network connections it tried, with the answer it gotnone seen
0Names it looked upnone seen
0Key and secret files it tried to opennone seen
0Files it opened for writing outside the usual placesnone seen

Recorded with strace during this run, for the server and every process it started. The recorder runs inside the same sandbox as the tool, so a tool that targets it could hide from it; it covers the whole run, not each tool call.

Package facts
  • tool list size: 10156 bytes as JSON (names, descriptions and input schemas of 10 tools)
How this was tested
  • network check: DNS and TCP (IPv4 and IPv6) to the outside all failed before any call
  • Toolmark's synthetic fixture (files) was created in the data folder /fixture
  • Dependencies (11)@modelcontextprotocol/core@2.4.0, @modelcontextprotocol/server@2.4.0, @paystage/auth-watch@0.2.2, @paystage/mcp@0.8.17, @paystage/policy@0.3.0, @paystage/policy@0.3.0, @paystage/policy@0.3.1, @paystage/preflight@0.5.3, @paystage/trade-preflight@0.2.1, @paystage/velocity@0.2.4, zod@4.6.7
    as claimed by the package metadata

Only the published package was run, at this exact version, in Toolmark's sandbox with no network and no secrets, with synthetic input; the provider's hosted service, if any, was not tested. base_image node:22-bookworm-slim@sha256:e9f565d32859f0cbfb52125eafe8be39390f24dac302dc3cdf566e8ba3ab21ee, commit 3c386808e1b126764a6ac40aeee2e666d1760ddc, modal_sdk 1.6.4, python 3.12.16, rules 1e5a2990d01b99a3, toolmark not installed