CodexGuild
io.github.Uppercentile/universal-paper·Search

Universal Paper

Validate, simulate and render GPO, supplier and member agreements. Read-only; holds no keys.

Stars
—
Version
0.1.2
License
—
Review
Partial
Registry update
Nov 24, 2026

Connect

remote + pypi
Terminal
$claude mcp add --transport http universal-paper https://mcp.universalpaper.org/mcp

Headers

Nothing to configure — it works as is.

Security review

Partly reviewed

Reviewed 16h ago. Tool definitions changed on Nov 24, 2026.

tools
13 tools scanned
metadata
scanned
packages
1 checked
  • mediumReviewTool definitions changed after an earlier review

    A server that changes its tool descriptions after being approved ("rug pull") can slip new instructions to agents. Re-check what changed before trusting it.

    changed 2026-11-24

Tools

13
  • validate_bundle

    Check a whole bundle against the axioms: signatures, hashes, chain linkage, Mandate bounds and Term typing, for every agreement and every recorded event. Use it first on any bundle you receive, before trusting what other tools derive from it. Use check_event instead to test one new signed event, simulate_events for unsigned hypothetical events, and derive_state to read what the agreements say. Returns valid true/false, each event as accepted or rejected with the rule and reason, agreement-level issues and forked chains.

  • derive_state

    Read what every agreement in a bundle means at one time: each chain's status (e.g. proposed, active, expired, terminated), term window, the tier each member attested, contract prices per item, and obligations with due dates and status (e.g. overdue). Use it to answer "what is in force on date X, and what is owed". Rejected events are skipped, not reported, so run validate_bundle first on a bundle you did not build. Use render_text instead for the agreement's wording, simulate_events for the state after hypothetical events, and the simulate_* what-if tools for one specific question (price conformity, termination, eligibility, an amendment).

  • check_event

    Dry-run one signed Event, exactly as it would be appended, against the current state of the chain it names, and return whether every evaluator would accept it, with each check (rule, passed, reason) and the resulting state hash. Nothing is written. Use it when you hold a real, signed event (from a party or your own signer) and want to know before publishing whether it is valid. Use simulate_events instead for unsigned or several events, simulate_amendment to try one parameter change, and validate_bundle for events already in the bundle. Needs the bundle holding that chain; the event's `prev` must be the chain's current state hash.

  • simulate_events

    Apply a list of hypothetical, unsigned events in order to a copy of the bundle and return each step (accepted, reason, checks) plus the derived state afterwards. Signatures are not required, but Mandate limits, unanimity and every other rule still apply, so an agent can test a multi-step plan (propose, accept, attest) within its authority before anyone signs. Use check_event instead for one already-signed event, simulate_amendment for a single parameter change under a Mandate, and the simulate_* what-if tools for price conformity, termination or eligibility. Nothing is signed or written.

  • simulate_amendment

    Try one change to an agreement in force: set parameter `param` of clause `clause` to `value`, proposed by an agent under its Mandate, and return whether every evaluator would accept it and, if not, which Mandate bound or rule it breaks. Use it instead of simulate_events when the question is one parameter change, because it builds the proposal for you. Clause and parameter names come from render_text or derive_state on the same bundle; the bundle must contain the Mandate. Hypothetical: nothing is signed or written. Try bundle "example:mandate-cap", clause "price", param "factor", value "1.05".

  • simulate_price_conformity

    Check whether given prices conform to a member's contract prices: for one participation chain at time `at`, compare each price with the contract price in the tier in effect, and return conforms true/false with the reason, and per item the contract price, the difference and the price in every tier. The tier in effect is the one the member attested and the supplier acknowledged (UP:Tier-Selection); it is never derived from volume. Use it instead of derive_state when you have prices to check (an invoice, a quote) rather than just reading the contract prices. Needs a participation chain (find it with derive_state). Try bundle "example:what-if", chain 1.

  • simulate_termination

    Ask what happens if a party gives notice of termination on a chain at time `at`: allowed true/false with the reason, which clause permits it (UP:Termination-Convenience or UP:Termination-Cause, with any cure period), the effective date, duties and fees (such as admin fees) still owed for periods up to then, and participations that stop with it. Use it instead of simulate_events, which would only say whether a notice event is accepted, not its consequences. The chain must hold an executed agreement with a termination clause. Hypothetical: nothing is signed. Try bundle "example:what-if", chain 0.

  • simulate_eligibility

    Ask whether a member is eligible at time `at`: a real, active participant under an aggregator agreement (UP:Participation executed by every party, within its term, parent agreement in force), so that agreement's terms and contract prices apply to it. Returns eligible true/false with the reason for each participation found. Use it instead of derive_state when the question is about one member, and before simulate_price_conformity when you are not sure the member is covered. Try bundle "example:what-if".

  • render_text

    Render agreements as the human-readable text fixed by their hash: parties and roles, every clause in words, and the agreement hash. Use it to read or quote what an agreement says, or to find clause and parameter names for simulate_amendment. It does not check anything: use validate_bundle to check validity, derive_state for status, tiers, prices and obligations at a time, and hash_object to compute a hash. With `hashes_only`, it shows what an outsider sees of sealed (confidential) values.

  • hash_object

    Compute the content hash of any JSON value: RFC 8785 canonical JSON (JCS), then SHA-256, with signatures (`sigs`) stripped, returned as "sha256:<hex>". Use it to get the hash that identifies an agreement, Term, Mandate or event, e.g. to fill an event's `prev`, `chain`, `target` or `supersedes`, or to check that two parties hold the same text. It does not validate: use validate_bundle or check_event for that.

  • list_terms

    List the standard Universal Paper Term library: each Term's id (e.g. "UP:Admin-Fee"), title and parameter names. Use it to discover which clauses an agreement can contain; then call explain_term for one Term's full definition. Needs no bundle. To see the Terms a given agreement actually uses, call render_text on its bundle.

  • explain_term

    Explain one standard Term: its parameters with types, the claims it allows, its rendering template, provenance, content hash and spec page URL. Use it after list_terms, or when a clause in render_text or a Mandate scope names a Term you need to understand before proposing values. Needs no bundle.

  • get_example

    Load a worked example bundle (hypothetical parties and values, CC0) to try the other tools on. Use it when you have no bundle yet (use list_terms instead to browse Terms without one). Instead of passing the returned object on, you can pass the string "example:<name>" as `bundle` to any tool. conventional: a signed GPO agreement; generative: agent actions, two rejected by their Mandate; confidential: sealed prices; overlay: an existing paper contract referenced by hash; mandate-cap: an agent's price factor bounded by its Mandate; what-if: participations for the simulate_* what-if tools.

More in Search

Listing from the official MCP Registry.