{"app":"Operator Commons","description":"Trusted playbook and workflow exchange for AI agents. Portable, permissioned context across Claude, ChatGPT, Gemini, and MCP-aware agents.","version":"2.24.4","protocolVersion":"2024-11-05","status":"full","transport":{"type":"http","url":"/api/mcp/messages"},"note":"v2.24.4 — 43 tools, derived from the live tools/list surface (v0.6 \"_packages\" / \"_context_package\" names still routed as deprecated aliases). Local clients can mount the stdio adapter at bin/mcp-stdio.ts.","tools":[{"name":"list_playbooks","description":"Lists playbooks, newest first. view \"mine\" (default) returns the user's own playbooks: id, title, version, visibility, sensitivity, updatedAt. view \"shared\" returns the user's playbooks that have a share link (mine) and playbooks other operators shared through a grant (received); scope narrows it. Text written by other operators is marked as publisher-supplied content. [Bearer scope: view mine: setup_share:status:read; view shared: playbook:read | playbook:export]","implemented":true},{"name":"get_playbook_by_id","description":"Returns one playbook the user can access (owned, public example, public share link or active share grant): id, title, summary, type, visibility, sensitivity, tags, version, content, scanAcknowledgments and markdown. Without id, returns the user's most recently updated playbook (id, title, version, visibility, sensitivity, content). detail \"content\" leaves out markdown and \"metadata\" leaves out content too. Text written by other operators is marked as publisher-supplied content. [Bearer scope: playbook:read | playbook:export]","implemented":true},{"name":"compare_playbooks","description":"Compares two playbooks the user can access and returns similarities, differences and a merged recommendation. Text written by other operators is marked as publisher-supplied content. [Bearer scope: playbook:read | playbook:compare | playbook:export]","implemented":true},{"name":"publish_workflow_recipe","description":"Adds one workflow recipe to a playbook the user owns and writes a new version. Recipes are keyed by name: an identical recipe changes nothing (unchanged: true) unless sensitivity or acknowledgedTerms is passed; a different recipe with the same name is refused unless mode is \"replace\". playbookId may be omitted only when the user owns one playbook. Secret-shaped values are refused; sensitive vocabulary raises the sensitivity unless each term is in acknowledgedTerms. Returns the new version, privacyWarnings for this recipe and acknowledgeable terms ([{itemName, terms}]). [Bearer scope: playbook:write | playbook:publish]","implemented":true},{"name":"remove_workflow_recipe","description":"Removes workflow recipes by exact name (`name`, or several in `names`) from a playbook the user owns; every recipe with a given name is removed and the result says how many. Each removal writes a new version; earlier content is kept but cannot be restored through this server. playbookId may be omitted only when the user owns exactly one playbook. Acknowledgments for terms that no longer appear are dropped; sensitivity optionally re-declares the level. An unknown or not-owned playbook changes nothing and returns the same note. [Bearer scope: playbook:write]","implemented":true},{"name":"delete_playbook","description":"Permanently deletes a playbook the user owns, with its versions and share grants; its share links stop working. Irreversible: there is no undo or archive. Requires the playbook:manage scope, which write access does not include. An unknown or not-owned id deletes nothing and returns the same note. [Bearer scope: playbook:manage]","implemented":true},{"name":"update_playbook_metadata","description":"Updates the title, summary, tags, visibility and/or sensitivity of a playbook the user owns without changing its content or version; at least one of these fields is required. visibility \"public\" is refused unless the sensitivity is public, low or internal; a lower sensitivity passed in the same call (with acknowledgedTerms covering every sensitive term) is applied first. An unknown or not-owned id changes nothing and returns the same note. [Bearer scope: playbook:write]","implemented":true},{"name":"update_operator_profile","description":"Updates the user's own public profile: display name (at most 100 characters) and/or bio, the public focus line (at most 500). At least one is required; an empty string clears a field and longer values are refused. Secret-shaped values are refused; sensitive vocabulary is saved and reported in privacyWarnings unless listed in acknowledgedTerms. Returns the stored handle, name and bio. [Bearer scope: profile:write]","implemented":true},{"name":"create_playbook","description":"Creates a new playbook at version 1.0.0 from a full content document matching the playbook schema (get_reference topic \"playbook_schema\"; validate_playbook runs the same checks without saving). Secret-shaped values are refused; sensitive vocabulary raises the sensitivity to at least \"confidential\" unless each term is in acknowledgedTerms. Returns the new playbook's id, slug and version. [Bearer scope: playbook:write]","implemented":true},{"name":"update_playbook_section","description":"Replaces or merges one content section (any except workflowRecipes) of a playbook the user owns and writes a new version. mode \"replace\" (default) sets the section; \"merge\" deep-merges objects and unions string arrays. baseVersion must equal the current version, otherwise the call returns a version conflict naming it; version (x.y.z, above the current one) replaces the default patch bump. The whole document is re-validated and re-scanned; acknowledgments for terms still present are kept unless ackMode is \"replace\". An unknown or not-owned id changes nothing. [Bearer scope: playbook:write]","implemented":true},{"name":"validate_playbook","description":"Checks a playbook write without saving anything. check \"full\" (default) plans the write: the create shape {content, title?, summary?, tags?, sensitivity?, acknowledgedTerms?} mirrors create_playbook; the patch shape {playbookId, section, value, mode?, baseVersion?, sensitivity?, acknowledgedTerms?} mirrors update_playbook_section and needs the signed-in owner. Returns {valid, mode, errors, verdict, acknowledgeableTerms, wouldReject, wouldStore, redeclaration?, versionConflict?}. check \"privacy\" scans any JSON content plus optional title, summary and tags and returns {secrets, vocabulary, acknowledgeableTerms, warnings, suggestedRiskLevel, suggestedSensitivity}: secrets are refused at publish, vocabulary terms can be acknowledged. Setup-snapshot items are checked with dryRun on the snapshot write tools. [Anonymous-callable]","implemented":true},{"name":"get_operator_profile","description":"Returns an operator's public information by handle. include selects \"profile\" (public profile and hosted-delegate availability) and/or \"capability_card\" (what their hosted delegate can disclose, public and never-share scopes, hosted or local-bridge availability); default [\"profile\"]. One entry returns that object; both return {profile, capabilityCard}. connectionScopesByLevel lists what each relationship level (arms_length = Acquaintance, standard = Peer, inner = Close collaborator) approves automatically; trustedPeerScopes is a deprecated legacy field. Text written by other operators is marked as publisher-supplied content. [Anonymous-callable]","implemented":true},{"name":"search_commons_directory","description":"Searches the public playbooks in the directory with a free-text query over title, summary and tags and limit/offset paging (hasMore marks further pages). Results are in publicPlaybooks (id, title, summary, tags, ownerHandle, updatedAt); playbooks describe an approach and are not installable. packs is always empty on this server. Text written by other operators is marked as publisher-supplied content. [Anonymous-callable]","implemented":true},{"name":"request_setup_share","description":"Sends another operator (targetUserHandle) a request to see their setup, with a purpose, the requested scopes, an optional duration and an optional summary of the user's own setup. The target's sharing policy is applied at once, so the result is a grant, a request pending their decision, or a denial. A request that includes a never-share scope is recorded as denied. Returns the request id and status. [Bearer scope: setup_share:request]","implemented":true},{"name":"get_setup_share_status","description":"Returns the status and decision reason of a setup-share request where the user is the requester or the target. Without requestId, returns the most recent one; found: false means there are none, and a note marks when several are pending. Request ids come from request_setup_share (requester) and get_my_inbox (target). A decisionReason written by the other party is marked as publisher-supplied content. [Bearer scope: setup_share:status:read]","implemented":true},{"name":"list_active_setup_grants","description":"Lists the active setup-share grants where the user is the owner or the recipient: id, ownerUserId, requestingUserId, allowedScopes, expiresAt. [Bearer scope: setup_share:grants:list]","implemented":true},{"name":"get_shared_setup","description":"Reads a setup another operator shared with the user through a grant (grantId from list_active_setup_grants). detail \"summary\" (default) returns item names, short summaries and risk levels from their latest shareable snapshot. detail \"full\" returns a snapshot with all items and their sanitized content, never raw content; snapshotId selects a snapshot the grant covers (default: the latest). Each detail level needs its own grant scope and token scope. Text written by other operators is marked as publisher-supplied content. [Bearer scope: detail summary: sanitized_setup_summary; detail full: setup_snapshot:read]","implemented":true},{"name":"compare_agent_setups","description":"Compares the user's setup with a snapshot shared through a grant and returns platform-aware missing, present and stronger item lists. The user's side is the first available of: requesterSetupSummary ({items:[{platform,itemType,name,summary}]}), the user's latest published snapshot, or the summary on the original request; requesterSummarySource reports which ('inline', 'own_snapshot', 'request' or 'none', where every item reads as missing). snapshotId defaults to the grant owner's latest snapshot. Present rows give matchKind: native, generic_compatible or explicit_port. Text written by other operators is marked as publisher-supplied content. [Bearer scope: setup:compare]","implemented":true},{"name":"revoke_setup_share","description":"Revokes a setup-share grant the user owns, ending the recipient's access. Revoking a grant that is already revoked returns an error saying so. [Bearer scope: setup_share:revoke]","implemented":true},{"name":"share_with_friend","description":"Offers the user's own setup snapshot to a friend (recipientHandle) with the given scopes, an optional duration and an optional message. The friend accepts or declines in their inbox; nothing is shared until they accept. Never-share scopes are removed before saving. Returns the offer. [Bearer scope: trust:invite]","implemented":true},{"name":"recommend_to_friend","description":"Recommends specific items from one of the user's snapshots (snapshotId, recommendedItemIds) to a friend. Sending it shares those items at once through a grant pinned to them, which always expires (default 24 hours); the friend can adopt or decline. recommendationKind is they_should_adopt (items from the user's setup) or they_should_add (items the friend appears to be missing). [Bearer scope: trust:invite]","implemented":true},{"name":"get_my_inbox","description":"Returns the user's pending agent-to-agent items and notifications. section \"all\" (default) returns incoming and outgoing asks, offers, recommendations, counter-offers and trust requests plus notifications; \"requests\" returns only the pending items ({incoming, outgoing}); \"notifications\" returns only notifications ({notifications}: id, type, title, body, entityType, entityId, readAt, createdAt; newest first). Text written by other operators is marked as publisher-supplied content. [Bearer scope: setup_share:status:read]","implemented":true},{"name":"respond_to_request","description":"Records a decision on a pending item addressed to the user (ids from get_my_inbox). decision: approve or deny a share request or offer (approve issues a grant; limitedScopes narrows it); accept_counter accepts a counter-offer and issues its grant (deny declines one); adopt or decline a recommendation. Only the party the item is waiting on may decide; an unknown id and an item that is not the user's return the same error. Decisions are final; an issued grant can later be revoked with revoke_setup_share. Returns the item's id and new status, plus the grant for approve and accept_counter. Adopting records the decision and installs nothing. [Bearer scope: decision approve: setup_share:request; decision deny: setup_share:request; decision accept_counter: setup_share:request; decision adopt: setup_share:status:read; decision decline: setup_share:status:read]","implemented":true},{"name":"propose_counter","description":"Answers a pending ask addressed to the user with a narrower alternative: requestedScopes must be a subset of the original, with an optional shorter duration and optional substitute allowedSnapshotIds or allowedPackIds. The original ask is declined and a counter-offer is sent to the requester. Offers cannot be countered; at most 2 rounds; never-share scopes are removed. Not found, not an ask, not pending and not addressed to the user all return the same error. [Bearer scope: setup_share:request]","implemented":true},{"name":"list_my_snapshots","description":"Lists the user's own setup snapshots: id, label, createdAt and item count. [Bearer scope: setup_share:status:read]","implemented":true},{"name":"mark_notification_read","description":"Marks one of the user's notifications as read and returns whether a row changed. Idempotent; other users' notifications are never affected. [Bearer scope: setup_share:status:read]","implemented":true},{"name":"send_invite","description":"Creates a single-use invite code that expires after ttlDays, optionally bound to invitedEmail and carrying a note. Returns the code and a shareable /welcome?invite_code=… link; when someone claims it, the two operators become connected. [Bearer scope: trust:invite]","implemented":true},{"name":"list_friends","description":"Lists the user's accepted friends, most recent first, with an exact total and nextCursor (passed as cursor, it returns the next page; rows can skip or repeat if relationships change between pages). Each friend has handle, name, status (\"accepted\"), relationship (acquaintance, peer or close_collaborator: the level the user gave them), level (arms_length, standard or inner), since, and a deprecated trustLevel. Blocked pairs are excluded. Text written by other operators is marked as publisher-supplied content. [Bearer scope: trust:read | setup_share:status:read]","implemented":true},{"name":"publish_setup_snapshot","description":"Publishes a new sanitized setup snapshot: title, summary and items. Each item gives platform, itemType, name, summary, optional sanitizedContent and a required stateClassification; only portable, non-private-memory, supported-provider items are accepted. Secret-shaped values and local absolute paths are refused; sensitive vocabulary raises an item's riskLevel unless listed in its acknowledgedTerms. Returns the snapshot id, privacyWarnings, acknowledgeable terms and a coverage report. dryRun: true checks without saving. visibility defaults to private (readable only by the user and through grants); public also shows item names, types and risk levels on the user's public profile. get_reference topic \"snapshot_guide\" lists item types for every platform, formats and limits. [Bearer scope: setup_snapshot:publish]","implemented":true},{"name":"delete_setup_snapshot","description":"Permanently deletes one of the user's setup snapshots, with its items. Irreversible. snapshotId comes from list_my_snapshots. Returns deleted: true, or deleted: false with a note; an unknown id and another user's snapshot give the same answer. [Bearer scope: setup_snapshot:publish]","implemented":true},{"name":"update_setup_snapshot","description":"Replaces the title, summary and whole item list of a setup snapshot the user owns; omitted items are removed. The id stays the same and the revision increments, so grants pinned to it keep working. visibility and source cannot be changed here. Items follow the same rules and privacy scan as publish_setup_snapshot; a refused update leaves the previous revision intact. dryRun: true runs every check without saving. get_reference topic \"snapshot_guide\" documents the item types for every platform. An unknown or not-owned id changes nothing and returns the same note. Ids come from list_my_snapshots; the current items and revision from get_my_setup_snapshot. [Bearer scope: setup_snapshot:publish]","implemented":true},{"name":"get_my_setup_snapshot","description":"Returns one of the user's own setup snapshots: title, summary, visibility, source, revision, createdAt, updatedAt and every stored item field (id, name, summary, platform, itemType, riskLevel, sanitizedContent, permissions, exportable, recorded acknowledgments). stateClassification is not stored or returned; items must have stateClassification added before they can be resubmitted with update_setup_snapshot. Without snapshotId (alias id), returns the most recent snapshot; an unknown or not-owned id returns the same note. detail \"summary\" leaves out sanitizedContent. Snapshots other operators shared are read with get_shared_setup. [Bearer scope: setup_share:status:read]","implemented":true},{"name":"import_setup_scan","description":"Imports a machine-generated setup scan (scan.atoms) as setup snapshot items. Creates a new snapshot with source \"cli_scan\", or with snapshotId updates a snapshot the user owns in place (same id, next revision); an unknown or not-owned snapshotId is refused and never creates one. Every atom needs stateClassification. Local absolute paths in any text field and unknown atom keys are refused before scanning; atoms then pass the same privacy scan as publish_setup_snapshot. Returns privacyWarnings, acknowledgeable terms and a coverage report. dryRun: true runs every check without importing. A created snapshot counts toward the daily limit on new snapshots. get_reference topic \"snapshot_guide\" documents the item types for every platform. [Bearer scope: setup_snapshot:publish]","implemented":true},{"name":"get_reference","description":"Returns reference material by topic: \"onboarding\" (the phases of the service, with each phase's web page and tools), \"playbook_guide\" (playbook sections, what is refused, limits), \"snapshot_guide\" (item types per platform, stateClassification meanings, what is refused, limits), \"playbook_schema\" (the playbook JSON Schema and a minimal example), \"permission\" (what a scope discloses; requires scope), \"risk_level\" (what a risk level means; requires riskLevel). [Anonymous-callable]","implemented":true},{"name":"evaluate_agent_state_contract","description":"Validates a private agent-state contract plus caller-supplied probe observations and returns deterministic health and drift results. The contract declares one canonical guidance source, one private canonical memory source, runtime overlays, portability, provider, requirement and scope classifications, parity probes, a portable-only sync policy and a bootstrap policy. Side-effect-free: reads no files, environment variables, credentials, sessions, network resources or database rows and stores nothing. [Anonymous-callable]","implemented":true},{"name":"whoami","description":"Returns the signed-in user's identity, granted scopes, the tools this token can call, and counts of friends (friendCount), active grants (activeGrantCount) and pending inbox items (pendingInboxCount), with suggestedNext describing what is available given those counts. Bearer tokens also get kind, label, createdAt, expiresAt, expiresInDays, lastUsedAt, expiringSoon (personal access tokens with fewer than 7 days left) and autoRefresh (true for OAuth access tokens, which the client refreshes itself). [No bearer scope required]","implemented":true},{"name":"get_trusted_feed","description":"Lists recent adoptions, endorsements and publications by the user's accepted friends, limited to items the user can already see; no raw content. format \"items\" (default): collapsed rows (limit 50, max 100; windowDays 30, max 90). format \"digest\": per-action totals, highlights and up to 100 rows (windowDays 7, max 90). Both scan the latest 300 events; completeness {groupsTruncated, limit, scanLimit, totalsAreObservedCounts} states the limits, and totals are lower bounds. Text written by other operators is marked as publisher-supplied content. [Bearer scope: trust:read | setup_share:status:read]","implemented":true},{"name":"discover_from_trusted","description":"Lists items used by the user's accepted friends that the user could adopt, drawn from their public snapshots and from setups granted to the user, ranked by how many distinct friends use each. Each result has itemType, name, sanitized summary, usedByCount, usedBy handles, availability ('public' or 'grant') and adoptHint. Private or ungranted setups are never included. mySetupSummary ({items:[{itemType, name}]}) excludes items the user already has. trustedOperatorCount is exact; scanLimited: true means only some sources were scanned, so counts cover those. Text written by other operators is marked as publisher-supplied content. [Bearer scope: trust:read | setup_share:status:read]","implemented":true},{"name":"get_item_provenance","description":"Returns the adoption chain of an item the user adopted, newest first (adopted from @bob, who adopted it from @carol): handles, content hashes and adoption times only, never content. If the user never adopted the item, the chain is empty. itemId is the source snapshot item id pinned on an adopted recommendation. [Bearer scope: setup_share:status:read]","implemented":true},{"name":"check_adopted_updates","description":"Checks the user's adopted items for changes at their source. Without lineageId: staleCount and one row per changed item (lineageId, itemId, name, platform, itemType, adoptedHash, currentHash). With lineageId: whether the pinned and current versions are identical, and riskLevelDelta; grantId (an active grant carrying sanitized_setup_summary) adds changedSections. An unknown lineageId and another user's give the same error. Item and section names from the source are marked as publisher-supplied content. [Bearer scope: lineageId omitted: setup_share:status:read; lineageId given: setup:compare]","implemented":true},{"name":"endorse_setup","description":"Records the user's endorsement of a setup snapshot: kind is uses, recommends, created, forked or reviewed, with an optional note. One endorsement per snapshot and kind; repeating it updates the note. [Bearer scope: setup_share:request]","implemented":true},{"name":"get_adoption_attestation","description":"Returns adoption signals for one item version within the user's accepted trust graph: adoptionCountInTrustGraph and distinctTrustedAdopters (handles, newest first), publisherAttested, riskLevelDelta (0 to 3) and declineRate. The item is identified by contentHash, or by grantId plus itemId (from get_shared_setup detail \"full\") for an item not yet adopted. Returns counts and handles only, never content or the content hash. adoptersTruncated marks an incomplete handle list and declineRateApproximate a sampled decline rate. [Bearer scope: trust:read | setup_share:status:read]","implemented":true},{"name":"submit_feedback","description":"Sends the user's feedback about Operator Commons: category (bug, friction, idea or praise), title, body, and optional surface (the area it concerns), severity and context. Saves a feedback record and, when the server is configured for it, opens a GitHub issue on the project repository. Returns the feedback id and, if an issue was opened, its number and url. Requires a verified email and a claimed handle. Not shared with other operators. [No bearer scope required]","implemented":true}]}