Skip to main content
Glama

Notarize what an artifact does

kenwea_notary_check
Read-only

Use before installing an npm, PyPI or OpenClaw package (npm install, pnpm add, yarn add, bun add, pip install, uv add, poetry add, an OpenClaw plugin install): it fetches the package from its registry (for npm, the tarball npm install would download; for PyPI, the wheel this sandbox can import, which can differ from the one pip picks on your platform; for ClawHub, the release ClawHub serves), runs the install steps npm would run (none for a wheel or an OpenClaw plugin) and then loads the package once where it can (see Behavior), in a sandbox with no route out that plants decoy credentials (for npm and OpenClaw, decoys is false when a run had none in reach), and returns a signed record of what it did. For an npm lockfile or more than five npm packages use kenwea_notary_check_tree. Input: exactly one of package or artifactRef. package is an npm name such as express or express@4.18.2 (an exact version or dist-tag, not a range; no version means latest), a PyPI project as pypi:requests@2.31.0, or an OpenClaw plugin on ClawHub as clawhub:name@version (refused unless ClawHub publishes its SHA-256). artifactRef is a public https URL of one file, npm tarball or Python wheel. Returns: level: nothing_runs (nothing runs at install), quiet (every install step finished, was traced whole and touched nothing watched), network (an install step, or loading the package, tried to reach the network), reads_credentials (one opened a credential file; ours held decoys), sends_credentials (one put a decoy credential into what it sent or started), contains_credential (the bytes carry what looks like a real credential; nothing ran), unfinished (the check could not finish: a step failed, timed out or could not be observed; not a pass). Also summary, one sentence; installSteps (empty means nothing runs); observed (connections, DNS lookups, programs, credentialsRead, credentialsSent, and requests sent to the stand-in network); onLoad (npm, OpenClaw), whether the load ran and what it did; for npm, sincePrevious (install step changes since the previous version; not signed); verdict, reasonCode, contentSha256 and signedAttestation, an Ed25519 signature over the facts; for a registry package, record.recordUrl, a permanent public page. cached true: a stored record answered and nothing ran. checked false: the URL could not be fetched. Limits: no key or account needed. 20 new checks an hour per network address (an IPv6 /64 is one address) within a ceiling shared by all callers without a key, refused with rate_limited and the reset time; answers from a stored record are free. A Bearer API key skips the shared ceiling and has its own 20 an hour; the address limit still applies. At most four checks run at once; one that gets no slot within 10 seconds comes back with reasonCode runner_busy and nothing run: retry it once, then carry on. Up to 32 MiB; 15 seconds for a file, 55 for a package. A PyPI record covers the wheel this sandbox can import (pure Python, or musllinux for CPython 3.12); pip on another platform may install different bytes, and a package with only a source distribution is refused, because its setup.py is not run. Behavior: no route out (a stand-in network records every lookup and connection), all capabilities dropped, a read-only filesystem, not root. An npm package gets its dependency tree first, each tarball checked against the registry's integrity hash, then the steps npm would run (preinstall, install, postinstall, node-gyp for a binding.gyp). Only a package named from a registry, with its tree in place, is then loaded once: an npm package as an application would require or import it, an OpenClaw plugin as OpenClaw loads it. A wheel is installed with the wheels pip would add for CPython 3.12 on Linux x86_64, its top level packages imported and its first console script run with --help. Keeps no copy of the artifact; a rate counter and a log line keep a short hash of your address. Not for: checking a record you already have (kenwea_notary_verify runs nothing and spends no quota).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "kenwea_notary_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
packageNonpm package name with an optional version or dist-tag, for example express, express@4.18.2 or @types/node@20.0.0; or a PyPI project as pypi:name or pypi:name@version, for example pypi:requests@2.31.0; or an OpenClaw code plugin on ClawHub as clawhub:name or clawhub:name@version. Omit when using artifactRef.
artifactRefNoPublic https URL of the artifact: a single .js, .mjs, .cjs or .py file, a shebang script, an npm tarball (.tgz) or a Python wheel or zip. Omit when using package.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / package / description
      Previous value: -"npm package name with an optional version or dist-tag, for example express, express@4.18.2 or @types/node@20.0.0; or a PyPI project as pypi:name or pypi:name@version, for example pypi:requests@2.31.0. Omit when using artifactRef."New value: +"npm package name with an optional version or dist-tag, for example express, express@4.18.2 or @types/node@20.0.0; or a PyPI project as pypi:name or pypi:name@version, for example pypi:requests@2.31.0; or an OpenClaw code plugin on ClawHub as clawhub:name or clawhub:name@version. Omit when using artifactRef."
  2. Changed1 schema field changed
    • changedInput schema / properties / package / description
      Previous value: -"npm package name with an optional version or dist-tag, for example express, express@4.18.2 or @types/node@20.0.0. Omit when using artifactRef."New value: +"npm package name with an optional version or dist-tag, for example express, express@4.18.2 or @types/node@20.0.0; or a PyPI project as pypi:name or pypi:name@version, for example pypi:requests@2.31.0. Omit when using artifactRef."
  3. Added

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations declare read-only, open-world, non-idempotent, non-destructive, but the description adds far more: the sandbox has no route out, decoy credentials, dropped capabilities, read-only filesystem, non-root, and integrity-hash checks. It also discloses rate limits, timeouts, size caps, and the exact meaning of each result level including unfinished not being a pass. No contradiction with the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loading of the when-to-use is strong and the sections (Input, Returns, Limits, Behavior) are organized. However, the prose is extremely dense and sprawling, with long parentheticals and nested clauses that make it hard to scan; trimming would improve usability without losing much.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description carries the full burden of explaining return values, and it does so thoroughly: every level value, summary, installSteps, observed, onLoad, sincePrevious, verdict, and signedAttestation are described. Combined with sandbox behavior, limits, and alternatives, nothing an agent needs to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, so the baseline is 3. The description still adds useful constraint detail beyond the schema, such as an exact version or dist-tag being required rather than a range, and the no-version defaulting to latest, plus that package and artifactRef are mutually exclusive.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: fetches the package from its registry, runs install steps, loads it once in a sandbox, and returns a signed record. It also explicitly distinguishes itself from siblings, naming kenwea_notary_check_tree for lockfiles or more than five packages and kenwea_notary_verify for records already held.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Front-loads when to use it ('before installing an npm, PyPI or OpenClaw package') and lists the exact commands it protects. It names the alternative tools and their triggering conditions, spells out retry guidance for runner_busy, and explains quota behavior for stored-record answers versus new checks.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.