{
  "notice": "bxzxxr MCP archive: a record of what public MCP servers declared when we listed them (we never call their tools). It is data, not a rating: nothing here says a server is safe, secure, verified or trustworthy, and a server can change after we looked. Secrets we detected are redacted; redacted tool lists are withheld and only their hash is shown.",
  "infrastructure": {
    "host": "www.memostem.com",
    "site": "memostem.com",
    "addresses": [
      {
        "address": "172.67.194.123",
        "endpoints": 2,
        "shared_infrastructure": false,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "172.67.192.0/20",
          "country": "US"
        }
      },
      {
        "address": "104.21.20.215",
        "endpoints": 2,
        "shared_infrastructure": false,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "104.21.0.0/19",
          "country": "US"
        }
      },
      {
        "address": "2606:4700:3030::ac43:c27b",
        "endpoints": 2,
        "shared_infrastructure": false,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "2606:4700:3030::/48",
          "country": "US"
        }
      },
      {
        "address": "2606:4700:3032::6815:14d7",
        "endpoints": 2,
        "shared_infrastructure": false,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "2606:4700:3032::/48",
          "country": "US"
        }
      }
    ],
    "addresses_recorded": true,
    "address_history": [
      {
        "addresses": [
          "172.67.194.123",
          "104.21.20.215",
          "2606:4700:3030::ac43:c27b",
          "2606:4700:3032::6815:14d7"
        ],
        "first_seen": "2026-11-22T19:53:03.040Z",
        "last_seen": "2026-11-22T19:53:03.040Z",
        "checks": 1
      },
      {
        "addresses": [
          "104.21.20.215",
          "172.67.194.123",
          "2606:4700:3030::ac43:c27b",
          "2606:4700:3032::6815:14d7"
        ],
        "first_seen": "2026-11-21T15:37:03.362Z",
        "last_seen": "2026-11-21T15:37:03.362Z",
        "checks": 1
      }
    ],
    "hosting": [
      {
        "value": "Cloudflare",
        "evidence": "Server header \"cloudflare\""
      }
    ],
    "software": [],
    "server_info": {
      "name": "memostem-knowledge-drafts",
      "version": "1.0.0",
      "protocol_version": "2025-06-18"
    },
    "headers": {
      "server": "cloudflare",
      "strict-transport-security": "max-age=63072000; includeSubDomains; preload",
      "access-control-allow-origin": "*"
    },
    "auth": null
  },
  "related": {
    "same_address": {
      "total": 1,
      "sample": [
        {
          "id": "45783",
          "url": "https://ndisprovider.review/mcp",
          "server_name": "review.ndisprovider/find-an-ndis-provider",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T22:41:03.525Z"
        }
      ]
    },
    "same_site": {
      "total": 0,
      "sample": []
    },
    "same_tool_list": {
      "total": 0,
      "sample": []
    },
    "same_publisher": {
      "publisher": "io.github.girapphe",
      "total": 0,
      "sample": []
    },
    "same_repository": {
      "repository_url": "https://github.com/girapphe/memostem-plugins",
      "total": 0,
      "sample": []
    },
    "note": "Shared addresses on big platforms (Cloudflare, Vercel and the like) put unrelated servers together; those are marked shared_infrastructure. A match is a pivot, not a link between operators."
  },
  "endpoint": {
    "id": "29886",
    "server_name": "io.github.girapphe/memostem",
    "url": "https://www.memostem.com/api/mcp",
    "host": "www.memostem.com",
    "transport": "streamable-http",
    "last_checked_at": "2026-11-22T19:53:03.040Z",
    "last_state": "listed",
    "last_detail": null,
    "consecutive_failures": 0,
    "current_sha": "4c781f744c018519abf254b5a4f344915ed902458d79856214a5a267bb194a5b",
    "first_listed_at": "2026-11-21T15:37:03.362Z",
    "created_at": "2026-11-21T09:50:12.195Z",
    "resolved_addresses": [
      "172.67.194.123",
      "104.21.20.215",
      "2606:4700:3030::ac43:c27b",
      "2606:4700:3032::6815:14d7"
    ]
  },
  "server": {
    "name": "io.github.girapphe/memostem",
    "title": "MemoStem",
    "description": "Your reviewed knowledge, across AI conversations.",
    "version": "0.6.4",
    "registry_status": "active",
    "repository_url": "https://github.com/girapphe/memostem-plugins",
    "website_url": null,
    "published_at": "2026-11-16T08:15:02.850Z",
    "updated_at": "2026-11-16T08:15:02.850Z",
    "first_seen": "2026-11-21T09:50:11.619Z"
  },
  "other_endpoints": [],
  "intel": {
    "capabilities": [
      "controls-browser"
    ],
    "evm_addresses": [],
    "chains": [],
    "tokens": [],
    "computed_at": "2026-11-22T15:35:14.959Z"
  },
  "operator": {
    "key": "memostem.com",
    "name": "memostem.com",
    "platform": false
  },
  "needs_sign_in": false,
  "reachability": {
    "window_days": 30,
    "checks": 2,
    "answered": 2,
    "answered_percent": 100,
    "avg_listing_latency_ms": 2044,
    "first_check_in_window": "2026-11-21T15:37:03.362Z",
    "consecutive_failures_now": 0,
    "days": [
      {
        "day": "2026-11-21",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      },
      {
        "day": "2026-11-22",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      }
    ]
  },
  "tool_list": {
    "sha256": "4c781f744c018519abf254b5a4f344915ed902458d79856214a5a267bb194a5b",
    "tools": 13,
    "resources": 4,
    "prompts": 0,
    "first_seen": "2026-11-21T15:37:06.006Z",
    "tool_names": [
      "start_memostem",
      "connect_memostem",
      "get_card_neighborhood",
      "search_card_browser",
      "browse_memostem_cards",
      "validate_knowledge_bundle",
      "save_guest_knowledge_bundles",
      "refresh_guest_knowledge_shelf_link",
      "claim_guest_knowledge_workspace",
      "preview_knowledge_bundle",
      "check_memostem_connection",
      "create_card_drafts",
      "create_knowledge_bundle_drafts"
    ],
    "declared": {
      "tools": [
        {
          "name": "start_memostem",
          "title": "Start MemoStem",
          "description": "Start MemoStem when no topic is named. Show a localized welcome App before login, or the connected owner's topic labels and empty-state guidance. Pass the conversation language as locale when known. No drafts are created.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "cursor": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 512,
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "locale": {
                "type": "string",
                "maxLength": 64
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "status",
              "locale",
              "topics",
              "next_cursor"
            ],
            "properties": {
              "locale": {
                "enum": [
                  "ko",
                  "en"
                ],
                "type": "string"
              },
              "status": {
                "enum": [
                  "connection_required",
                  "permission_required",
                  "topics",
                  "empty"
                ],
                "type": "string"
              },
              "topics": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "name"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 20
              },
              "next_cursor": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Start MemoStem",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "connect_memostem",
          "title": "Connect MemoStem and show topics",
          "description": "Connect or grant knowledge read permission through the host OAuth flow, then show a page of the authenticated owner's topic labels. Never creates knowledge.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "cursor": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 512,
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "locale": {
                "type": "string",
                "maxLength": 64
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "status",
              "locale",
              "topics",
              "next_cursor"
            ],
            "properties": {
              "locale": {
                "enum": [
                  "ko",
                  "en"
                ],
                "type": "string"
              },
              "status": {
                "enum": [
                  "connection_required",
                  "permission_required",
                  "topics",
                  "empty"
                ],
                "type": "string"
              },
              "topics": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "name"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 20
              },
              "next_cursor": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Connect MemoStem and show topics",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_card_neighborhood",
          "title": "Explore card relationships",
          "description": "Read a page of the selected owner card’s confirmed private relationships and inferred shared-tag connections. Results are bounded and read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "item_id"
            ],
            "properties": {
              "cursor": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 512
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null
              },
              "item_id": {
                "type": "string",
                "pattern": "^[A-Za-z0-9._:-]+$",
                "maxLength": 160,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "center_item_id",
              "nodes",
              "edges",
              "truncated",
              "next_cursor"
            ],
            "properties": {
              "edges": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "source",
                    "target",
                    "type"
                  ],
                  "properties": {
                    "tags": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "type": {
                      "type": "string"
                    },
                    "source": {
                      "type": "string"
                    },
                    "target": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                }
              },
              "nodes": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "item_id",
                    "title",
                    "summary"
                  ],
                  "properties": {
                    "title": {
                      "type": "string"
                    },
                    "item_id": {
                      "type": "string"
                    },
                    "summary": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                }
              },
              "truncated": {
                "type": "boolean"
              },
              "next_cursor": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "center_item_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Explore card relationships",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "search_card_browser",
          "title": "Search MemoStem cards",
          "description": "Search or page through active approved cards without reopening the browser.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "query": {
                "type": "string",
                "default": "",
                "maxLength": 500
              },
              "cursor": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 512,
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "results",
              "next_cursor"
            ],
            "properties": {
              "results": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "item_id",
                    "title",
                    "summary",
                    "topic",
                    "tags",
                    "knowledge_type",
                    "version",
                    "match_reason",
                    "updated_at"
                  ],
                  "properties": {
                    "tags": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id",
                          "name"
                        ],
                        "properties": {
                          "id": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "name": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "title": {
                      "type": "string"
                    },
                    "topic": {
                      "type": "object",
                      "required": [
                        "id",
                        "name"
                      ],
                      "properties": {
                        "id": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "name": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    },
                    "item_id": {
                      "type": "string"
                    },
                    "summary": {
                      "type": "string"
                    },
                    "version": {
                      "type": "integer",
                      "maximum": 9007199254740991,
                      "exclusiveMinimum": 0
                    },
                    "updated_at": {
                      "type": "string"
                    },
                    "match_reason": {
                      "enum": [
                        "exact",
                        "alias",
                        "keyword"
                      ],
                      "type": "string"
                    },
                    "knowledge_type": {
                      "anyOf": [
                        {
                          "enum": [
                            "concept",
                            "procedure",
                            "comparison",
                            "mechanism",
                            "structure",
                            "claim_evidence",
                            "question",
                            "decision",
                            "event",
                            "expression"
                          ],
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "additionalProperties": false
                }
              },
              "next_cursor": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Search MemoStem cards",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "browse_memostem_cards",
          "title": "Browse MemoStem cards",
          "description": "Browse or search the connected owner’s active approved knowledge cards. Open a card for its details. This does not create or change knowledge.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "query": {
                "type": "string",
                "default": "",
                "maxLength": 500
              },
              "cursor": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 512,
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "results",
              "next_cursor"
            ],
            "properties": {
              "results": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "item_id",
                    "title",
                    "summary",
                    "topic",
                    "tags",
                    "knowledge_type",
                    "version",
                    "match_reason",
                    "updated_at"
                  ],
                  "properties": {
                    "tags": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id",
                          "name"
                        ],
                        "properties": {
                          "id": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "name": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "title": {
                      "type": "string"
                    },
                    "topic": {
                      "type": "object",
                      "required": [
                        "id",
                        "name"
                      ],
                      "properties": {
                        "id": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "name": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    },
                    "item_id": {
                      "type": "string"
                    },
                    "summary": {
                      "type": "string"
                    },
                    "version": {
                      "type": "integer",
                      "maximum": 9007199254740991,
                      "exclusiveMinimum": 0
                    },
                    "updated_at": {
                      "type": "string"
                    },
                    "match_reason": {
                      "enum": [
                        "exact",
                        "alias",
                        "keyword"
                      ],
                      "type": "string"
                    },
                    "knowledge_type": {
                      "anyOf": [
                        {
                          "enum": [
                            "concept",
                            "procedure",
                            "comparison",
                            "mechanism",
                            "structure",
                            "claim_evidence",
                            "question",
                            "decision",
                            "event",
                            "expression"
                          ],
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "additionalProperties": false
                }
              },
              "next_cursor": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Browse MemoStem cards",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "validate_knowledge_bundle",
          "title": "Validate one knowledge bundle",
          "description": "Validate exactly one user-selected, independently teachable general-knowledge bundle without an account and without saving it. Call only at the person's direct request or after clear acceptance of a specific preview proposal. The strict input rejects transcripts, conversation histories, and unsupported knowledge types; phrases that may be personal or organization-specific are returned as review_flags.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "provider",
              "request_id",
              "provenance",
              "bundles"
            ],
            "properties": {
              "bundles": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "knowledge_scope",
                    "title",
                    "central_question",
                    "knowledge_type",
                    "summary",
                    "structured_content",
                    "bundle_schema_version",
                    "topic",
                    "tags"
                  ],
                  "properties": {
                    "tags": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "maxLength": 48,
                        "minLength": 1
                      },
                      "maxItems": 12
                    },
                    "title": {
                      "type": "string",
                      "maxLength": 120,
                      "minLength": 1
                    },
                    "topic": {
                      "type": "string",
                      "maxLength": 48,
                      "minLength": 1
                    },
                    "summary": {
                      "type": "string",
                      "maxLength": 500,
                      "minLength": 1
                    },
                    "tag_ids": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[A-Za-z0-9._:-]+$",
                        "maxLength": 160,
                        "minLength": 1
                      },
                      "maxItems": 12
                    },
                    "topic_id": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9._:-]+$",
                      "maxLength": 160,
                      "minLength": 1
                    },
                    "relations": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "target_kind",
                          "target_id",
                          "type"
                        ],
                        "properties": {
                          "type": {
                            "enum": [
                              "related",
                              "prerequisite",
                              "generalizes",
                              "derived_from",
                              "equivalent_to",
                              "supersedes",
                              "answers",
                              "supports",
                              "contradicts",
                              "causes",
                              "contributes_to",
                              "enables",
                              "inhibits"
                            ],
                            "type": "string",
                            "description": "Relationship type. supersedes is rejected: propose a replacement with resolution_proposal (merge or update) instead."
                          },
                          "weight": {
                            "type": "number",
                            "maximum": 1,
                            "exclusiveMinimum": 0
                          },
                          "direction": {
                            "enum": [
                              "outgoing",
                              "incoming"
                            ],
                            "type": "string"
                          },
                          "target_id": {
                            "type": "string",
                            "pattern": "^[A-Za-z0-9._:-]+$",
                            "maxLength": 160,
                            "minLength": 1
                          },
                          "target_kind": {
                            "enum": [
                              "private",
                              "draft"
                            ],
                            "type": "string",
                            "description": "Minimal-core drafts may relate only to the owner's private knowledge or another draft; public graph targets are unavailable."
                          },
                          "evidence_selector_indexes": {
                            "type": "array",
                            "items": {
                              "type": "integer",
                              "maximum": 23,
                              "minimum": 0
                            },
                            "maxItems": 24
                          }
                        },
                        "additionalProperties": false
                      },
                      "maxItems": 12
                    },
                    "knowledge_type": {
                      "enum": [
                        "concept",
                        "procedure",
                        "comparison",
                        "mechanism",
                        "structure",
                        "claim_evidence",
                        "question",
                        "event",
                        "expression"
                      ],
                      "type": "string"
                    },
                    "knowledge_scope": {
                      "type": "string",
                      "const": "general_knowledge",
                      "description": "Required assertion that this bundle teaches reusable knowledge independent of a person, company, product, preference, plan, task, or decision."
                    },
                    "central_question": {
                      "type": "string",
                      "maxLength": 500,
                      "minLength": 1
                    },
                    "client_bundle_id": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9._:-]+$",
                      "maxLength": 160,
                      "minLength": 1
                    },
                    "evidence_selectors": {
                      "type": "array",
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "required": [
                              "selector_type",
                              "message_ref"
                            ],
                            "properties": {
                              "quality": {
                                "enum": [
                                  "unknown",
                                  "low",
                                  "medium",
                                  "high"
                                ],
                                "type": "string",
                                "default": "unknown"
                              },
                              "polarity": {
                                "enum": [
                                  "supports",
                                  "contradicts"
                                ],
                                "type": "string",
                                "default": "supports"
                              },
                              "message_ref": {
                                "type": "string",
                                "pattern": "^[A-Za-z0-9._:-]+$",
                                "maxLength": 240,
                                "minLength": 1
                              },
                              "selector_type": {
                                "type": "string",
                                "const": "message"
                              },
                              "relation_origin": {
                                "enum": [
                                  "explicit_user",
                                  "extracted_from_source",
                                  "model_inferred"
                                ],
                                "type": "string",
                                "default": "model_inferred"
                              }
                            },
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "required": [
                              "selector_type",
                              "source_ref"
                            ],
                            "properties": {
                              "quality": {
                                "enum": [
                                  "unknown",
                                  "low",
                                  "medium",
                                  "high"
                                ],
                                "type": "string",
                                "default": "unknown"
                              },
                              "polarity": {
                                "enum": [
                                  "supports",
                                  "contradicts"
                                ],
                                "type": "string",
                                "default": "supports"
                              },
                              "source_ref": {
                                "type": "string",
                                "maxLength": 2048,
                                "minLength": 1
                              },
                              "selector_type": {
                                "type": "string",
                                "const": "external_ref"
                              },
                              "relation_origin": {
                                "enum": [
                                  "explicit_user",
                                  "extracted_from_source",
                                  "model_inferred"
                                ],
                                "type": "string",
                                "default": "model_inferred"
                              }
                            },
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "required": [
                              "selector_type",
                              "start",
                              "end"
                            ],
                            "properties": {
                              "end": {
                                "type": "integer",
                                "maximum": 10000000,
                                "minimum": 1
                              },
                              "start": {
                                "type": "integer",
                                "maximum": 9999999,
                                "minimum": 0
                              },
                              "quality": {
                                "enum": [
                                  "unknown",
                                  "low",
                                  "medium",
                                  "high"
                                ],
                                "type": "string",
                                "default": "unknown"
                              },
                              "polarity": {
                                "enum": [
                                  "supports",
                                  "contradicts"
                                ],
                                "type": "string",
                                "default": "supports"
                              },
                              "selector_type": {
                                "type": "string",
                                "const": "text_position"
                              },
                              "relation_origin": {
                                "enum": [
                                  "explicit_user",
                                  "extracted_from_source",
                                  "model_inferred"
                                ],
                                "type": "string",
                                "default": "model_inferred"
                              }
                            },
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "required": [
                              "selector_type",
                              "line_start",
                              "line_end"
                            ],
                            "properties": {
                              "quality": {
                                "enum": [
                                  "unknown",
                                  "low",
                                  "medium",
                                  "high"
                                ],
                                "type": "string",
                                "default": "unknown"
                              },
                              "line_end": {
                                "type": "integer",
                                "maximum": 1000000,
                                "minimum": 1
                              },
                              "polarity": {
                                "enum": [
                                  "supports",
                                  "contradicts"
                                ],
                                "type": "string",
                                "default": "supports"
                              },
                              "line_start": {
                                "type": "integer",
                                "maximum": 1000000,
                                "minimum": 1
                              },
                              "selector_type": {
                                "type": "string",
                                "const": "line_range"
                              },
                              "relation_origin": {
                                "enum": [
                                  "explicit_user",
                                  "extracted_from_source",
                                  "model_inferred"
                                ],
                                "type": "string",
                                "default": "model_inferred"
                              }
                            },
                            "additionalProperties": false
                          }
                        ]
                      },
                      "maxItems": 24
                    },
                    "structured_content": {
                      "oneOf": [
                        {
                          "type": "object",
                          "required": [
                            "type"
                          ],
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "concept"
                            },
                            "examples": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "maxItems": 24,
                              "description": "Concrete instances of this concept; explain why each fits. Prefer one concise example supported by the selected material when useful; otherwise use an empty array."
                            },
                            "definition": {
                              "type": "string",
                              "default": "",
                              "maxLength": 4000
                            },
                            "key_points": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 6000,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "non_examples": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "maxItems": 24,
                              "description": "Nearby cases that do not meet the definition; explain the distinguishing boundary. Include only when supported by the selected material and useful; otherwise use an empty array."
                            },
                            "misconceptions": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "claim",
                                  "correction"
                                ],
                                "properties": {
                                  "claim": {
                                    "type": "string",
                                    "maxLength": 500,
                                    "minLength": 1
                                  },
                                  "correction": {
                                    "type": "string",
                                    "maxLength": 4000,
                                    "minLength": 1
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 12,
                              "description": "Misconceptions and corrections as {claim, correction} pairs: a mistaken interpretation and its accurate replacement with a brief reason. Include only when supported by the selected material; otherwise use an empty array. Never attribute a misconception to the user or fabricate evidence."
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "required": [
                            "type"
                          ],
                          "properties": {
                            "goal": {
                              "type": "string",
                              "default": "",
                              "maxLength": 4000
                            },
                            "type": {
                              "type": "string",
                              "const": "procedure"
                            },
                            "steps": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "title"
                                ],
                                "properties": {
                                  "title": {
                                    "type": "string",
                                    "maxLength": 500,
                                    "minLength": 1
                                  },
                                  "detail": {
                                    "type": "string",
                                    "default": "",
                                    "maxLength": 4000
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 30
                            },
                            "branches": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "condition",
                                  "action"
                                ],
                                "properties": {
                                  "action": {
                                    "type": "string",
                                    "maxLength": 4000,
                                    "minLength": 1
                                  },
                                  "condition": {
                                    "type": "string",
                                    "maxLength": 500,
                                    "minLength": 1
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 16
                            },
                            "done_when": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "failure_modes": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "symptom",
                                  "response"
                                ],
                                "properties": {
                                  "symptom": {
                                    "type": "string",
                                    "maxLength": 500,
                                    "minLength": 1
                                  },
                                  "response": {
                                    "type": "string",
                                    "maxLength": 4000,
                                    "minLength": 1
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 16
                            },
                            "prerequisites": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "maxItems": 24
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "required": [
                            "type"
                          ],
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "comparison"
                            },
                            "targets": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "maxItems": 8
                            },
                            "criteria": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "name",
                                  "values"
                                ],
                                "properties": {
                                  "name": {
                                    "type": "string",
                                    "maxLength": 500,
                                    "minLength": 1
                                  },
                                  "values": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "maxLength": 4000,
                                      "minLength": 1
                                    },
                                    "maxItems": 8
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 20
                            },
                            "differences": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "choice_guide": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "condition",
                                  "recommendation"
                                ],
                                "properties": {
                                  "condition": {
                                    "type": "string",
                                    "maxLength": 500,
                                    "minLength": 1
                                  },
                                  "recommendation": {
                                    "type": "string",
                                    "maxLength": 4000,
                                    "minLength": 1
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 16
                            },
                            "commonalities": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "maxItems": 24
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "required": [
                            "type"
                          ],
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "mechanism"
                            },
                            "causes": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "stages": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "title"
                                ],
                                "properties": {
                                  "title": {
                                    "type": "string",
                                    "maxLength": 500,
                                    "minLength": 1
                                  },
                                  "detail": {
                                    "type": "string",
                                    "default": "",
                                    "maxLength": 4000
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 30
                            },
                            "results": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "conditions": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "exceptions": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "maxItems": 24
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "required": [
                            "type"
                          ],
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "structure"
                            },
                            "purpose": {
                              "type": "string",
                              "default": "",
                              "maxLength": 4000
                            },
                            "relations": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "source_id",
                                  "target_id",
                                  "label"
                                ],
                                "properties": {
                                  "label": {
                                    "type": "string",
                                    "maxLength": 500,
                                    "minLength": 1
                                  },
                                  "source_id": {
                                    "type": "string",
                                    "maxLength": 80,
                                    "minLength": 1
                                  },
                                  "target_id": {
                                    "type": "string",
                                    "maxLength": 80,
                                    "minLength": 1
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 60
                            },
                            "boundaries": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "components": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "id",
                                  "label"
                                ],
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "pattern": "^[A-Za-z0-9._:-]+$",
                                    "maxLength": 80,
                                    "minLength": 1
                                  },
                                  "role": {
                                    "type": "string",
                                    "default": "",
                                    "maxLength": 4000
                                  },
                                  "label": {
                                    "type": "string",
                                    "maxLength": 500,
                                    "minLength": 1
                                  },
                                  "parent_id": {
                                    "type": "string",
                                    "pattern": "^[A-Za-z0-9._:-]+$",
                                    "maxLength": 80,
                                    "minLength": 1
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 40
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "required": [
                            "type"
                          ],
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "claim_evidence"
                            },
                            "claim": {
                              "type": "string",
                              "default": "",
                              "maxLength": 4000
                            },
                            "scope": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "evidence": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "statement"
                                ],
                                "properties": {
                                  "source": {
                                    "type": "string",
                                    "maxLength": 1000,
                                    "minLength": 1
                                  },
                                  "statement": {
                                    "type": "string",
                                    "maxLength": 4000,
                                    "minLength": 1
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 24
                            },
                            "confidence": {
                              "enum": [
                                "low",
                                "medium",
                                "high"
                              ],
                              "type": "string"
                            },
                            "limitations": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "counterevidence": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "maxItems": 24
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "required": [
                            "type"
                          ],
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "question"
                            },
                            "status": {
                              "enum": [
                                "open",
                                "answered"
                              ],
                              "type": "string",
                              "default": "open"
                            },
                            "context": {
                              "type": "string",
                              "default": "",
                              "maxLength": 4000
                            },
                            "question": {
                              "type": "string",
                              "default": "",
                              "maxLength": 4000
                            },
                            "hypotheses": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 6000,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "next_steps": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 6000,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "known_facts": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 6000,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "answer_summary": {
                              "type": "string",
                              "default": "",
                              "maxLength": 4000
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "required": [
                            "type"
                          ],
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "decision"
                            },
                            "context": {
                              "type": "string",
                              "default": "",
                              "maxLength": 4000
                            },
                            "options": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "name"
                                ],
                                "properties": {
                                  "name": {
                                    "type": "string",
                                    "maxLength": 500,
                                    "minLength": 1
                                  },
                                  "tradeoffs": {
                                    "type": "string",
                                    "default": "",
                                    "maxLength": 4000
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 24
                            },
                            "outcome": {
                              "type": "string",
                              "default": "",
                              "maxLength": 4000
                            },
                            "criteria": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 6000,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "decision": {
                              "type": "string",
                              "default": "",
                              "maxLength": 4000
                            },
                            "rationale": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 6000,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "reconsider_when": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 6000,
                                "minLength": 1
                              },
                              "maxItems": 24
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "required": [
                            "type"
                          ],
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "event"
                            },
                            "event": {
                              "type": "string",
                              "default": "",
                              "maxLength": 4000
                            },
                            "causes": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 6000,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "changes": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 6000,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "context": {
                              "type": "string",
                              "default": "",
                              "maxLength": 4000
                            },
                            "chronology": {
                              "type": "object",
                              "required": [
                                "start",
                                "precision"
                              ],
                              "properties": {
                                "end": {
                                  "type": "object",
                                  "required": [
                                    "year",
                                    "era"
                                  ],
                                  "properties": {
                                    "day": {
                                      "type": "integer",
                                      "maximum": 31,
                                      "minimum": 1
                                    },
                                    "era": {
                                      "enum": [
                                        "bce",
                                        "ce"
                                      ],
                                      "type": "string"
                                    },
                                    "year": {
                                      "type": "integer",
                                      "maximum": 999999,
                                      "minimum": 1
                                    },
                                    "month": {
                                      "type": "integer",
                                      "maximum": 12,
                                      "minimum": 1
                                    }
                                  },
                                  "additionalProperties": false
                                },
                                "start": {
                                  "type": "object",
                                  "required": [
                                    "year",
                                    "era"
                                  ],
                                  "properties": {
                                    "day": {
                                      "type": "integer",
                                      "maximum": 31,
                                      "minimum": 1
                                    },
                                    "era": {
                                      "enum": [
                                        "bce",
                                        "ce"
                                      ],
                                      "type": "string"
                                    },
                                    "year": {
                                      "type": "integer",
                                      "maximum": 999999,
                                      "minimum": 1
                                    },
                                    "month": {
                                      "type": "integer",
                                      "maximum": 12,
                                      "minimum": 1
                                    }
                                  },
                                  "additionalProperties": false
                                },
                                "precision": {
                                  "enum": [
                                    "exact",
                                    "day",
                                    "month",
                                    "year",
                                    "decade",
                                    "century",
                                    "approximate",
                                    "range"
                                  ],
                                  "type": "string"
                                }
                              },
                              "additionalProperties": false
                            },
                            "occurred_at": {
                              "type": "string",
                              "default": "",
                              "maxLength": 500
                            },
                            "consequences": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 6000,
                                "minLength": 1
                              },
                              "maxItems": 24
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "required": [
                            "type",
                            "language"
                          ],
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "expression"
                            },
                            "nuance": {
                              "type": "string",
                              "default": "",
                              "maxLength": 4000
                            },
                            "examples": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "text"
                                ],
                                "properties": {
                                  "note": {
                                    "type": "string",
                                    "maxLength": 4000,
                                    "minLength": 1
                                  },
                                  "text": {
                                    "type": "string",
                                    "maxLength": 4000,
                                    "minLength": 1
                                  },
                                  "translation": {
                                    "type": "string",
                                    "maxLength": 4000,
                                    "minLength": 1
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 24
                            },
                            "language": {
                              "type": "string",
                              "maxLength": 255,
                              "minLength": 2
                            },
                            "meanings": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 6000,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "register": {
                              "type": "string",
                              "default": "",
                              "maxLength": 500
                            },
                            "contrasts": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "expression",
                                  "difference"
                                ],
                                "properties": {
                                  "difference": {
                                    "type": "string",
                                    "maxLength": 4000,
                                    "minLength": 1
                                  },
                                  "expression": {
                                    "type": "string",
                                    "maxLength": 500,
                                    "minLength": 1
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 24
                            },
                            "expression": {
                              "type": "string",
                              "default": "",
                              "maxLength": 4000
                            },
                            "translations": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "language",
                                  "text"
                                ],
                                "properties": {
                                  "text": {
                                    "type": "string",
                                    "maxLength": 4000,
                                    "minLength": 1
                                  },
                                  "language": {
                                    "type": "string",
                                    "maxLength": 255,
                                    "minLength": 2
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 24
                            },
                            "pronunciation": {
                              "type": "string",
                              "default": "",
                              "maxLength": 500
                            },
                            "usage_contexts": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 6000,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "common_mistakes": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "incorrect",
                                  "correction"
                                ],
                                "properties": {
                                  "incorrect": {
                                    "type": "string",
                                    "maxLength": 500,
                                    "minLength": 1
                                  },
                                  "correction": {
                                    "type": "string",
                                    "maxLength": 4000,
                                    "minLength": 1
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 24
                            }
                          },
                          "additionalProperties": false
                        }
                      ]
                    },
                    "resolution_proposal": {
                      "type": "object",
                      "required": [
                        "action",
                        "source_item_ids",
                        "change_summary",
                        "reason"
                      ],
                      "properties": {
                        "action": {
                          "enum": [
                            "save_new",
                            "merge",
                            "update"
                          ],
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "maxLength": 1000,
                          "minLength": 1
                        },
                        "change_summary": {
                          "type": "object",
                          "properties": {
                            "added": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "default": [],
                              "maxItems": 50
                            },
                            "changed": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "default": [],
                              "maxItems": 50
                            },
                            "conflicts": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "default": [],
                              "maxItems": 50
                            },
                            "preserved": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "default": [],
                              "maxItems": 50
                            }
                          },
                          "additionalProperties": false
                        },
                        "target_item_id": {
                          "type": "string",
                          "pattern": "^[A-Za-z0-9._:-]+$",
                          "maxLength": 160,
                          "minLength": 1
                        },
                        "source_item_ids": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^[A-Za-z0-9._:-]+$",
                            "maxLength": 160,
                            "minLength": 1
                          },
                          "maxItems": 50,
                          "minItems": 1
                        },
                        "expected_target_version": {
                          "type": "integer",
                          "maximum": 9007199254740991,
                          "minimum": 1
                        }
                      },
                      "additionalProperties": false
                    },
                    "bundle_schema_version": {
                      "type": "number",
                      "const": 1
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 50,
                "minItems": 1
              },
              "provider": {
                "enum": [
                  "chatgpt",
                  "claude",
                  "gemini",
                  "other"
                ],
                "type": "string"
              },
              "provenance": {
                "type": "object",
                "required": [
                  "type",
                  "conversation_ref"
                ],
                "properties": {
                  "type": {
                    "type": "string",
                    "const": "current_conversation"
                  },
                  "source_url": {
                    "type": "string",
                    "format": "uri",
                    "maxLength": 2048
                  },
                  "discussed_at": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  },
                  "client_version": {
                    "type": "string",
                    "maxLength": 160,
                    "minLength": 1
                  },
                  "reported_agent": {
                    "type": "string",
                    "maxLength": 160,
                    "minLength": 1
                  },
                  "reported_model": {
                    "type": "string",
                    "maxLength": 160,
                    "minLength": 1
                  },
                  "conversation_ref": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9._:-]+$",
                    "maxLength": 240,
                    "minLength": 1
                  }
                },
                "additionalProperties": false
              },
              "request_id": {
                "type": "string",
                "pattern": "^[A-Za-z0-9._:-]+$",
                "maxLength": 160,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "status",
              "persisted",
              "bundle_count",
              "knowledge_type",
              "title",
              "review_flags"
            ],
            "properties": {
              "title": {
                "type": "string",
                "maxLength": 120,
                "minLength": 1
              },
              "status": {
                "enum": [
                  "valid",
                  "preview"
                ],
                "type": "string"
              },
              "persisted": {
                "type": "boolean",
                "const": false
              },
              "bundle_count": {
                "type": "number",
                "const": 1
              },
              "review_flags": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "client_id",
                    "code",
                    "field",
                    "match",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "enum": [
                        "possible_autobiographical",
                        "possible_organization_specific",
                        "possible_choice_rationale",
                        "possible_task_or_meeting",
                        "possible_project_status"
                      ],
                      "type": "string"
                    },
                    "field": {
                      "type": "string",
                      "maxLength": 240
                    },
                    "match": {
                      "type": "string",
                      "maxLength": 80
                    },
                    "message": {
                      "type": "string",
                      "maxLength": 240
                    },
                    "client_id": {
                      "type": "string",
                      "maxLength": 160,
                      "minLength": 1
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 600
              },
              "knowledge_type": {
                "enum": [
                  "concept",
                  "procedure",
                  "comparison",
                  "mechanism",
                  "structure",
                  "claim_evidence",
                  "question",
                  "event",
                  "expression"
                ],
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Validate one knowledge bundle",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "save_guest_knowledge_bundles",
          "title": "Save knowledge to a temporary guest shelf",
          "description": "Store one to 10 specifically selected, independently teachable general-knowledge bundles from the current conversation in a private temporary MemoStem guest shelf. Call only after a direct request or clear acceptance of a specific proposal. Reuse workspace_token to continue the same shelf, but never reveal that credential to the person. The shelf is read-only in MemoStem, expires after 90 days, and requires account connection at 10 cards.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "provider",
              "request_id",
              "provenance",
              "bundles"
            ],
            "properties": {
              "bundles": {
                "type": "array",
                "items": {},
                "maxItems": 10,
                "minItems": 1
              },
              "provider": {
                "enum": [
                  "chatgpt",
                  "claude",
                  "gemini",
                  "other"
                ],
                "type": "string"
              },
              "provenance": {
                "type": "object",
                "required": [
                  "type",
                  "conversation_ref"
                ],
                "properties": {
                  "type": {
                    "type": "string",
                    "const": "current_conversation"
                  },
                  "source_url": {
                    "type": "string",
                    "format": "uri",
                    "maxLength": 2048
                  },
                  "discussed_at": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  },
                  "conversation_ref": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9._:-]+$",
                    "maxLength": 240,
                    "minLength": 1
                  }
                },
                "additionalProperties": false
              },
              "request_id": {
                "type": "string",
                "pattern": "^[A-Za-z0-9._:-]+$",
                "maxLength": 160,
                "minLength": 1
              },
              "workspace_token": {
                "type": "string",
                "pattern": "^mgw_[A-Za-z0-9_-]{43}$"
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "status",
              "persisted",
              "workspace_token",
              "accepted_bundle_count",
              "card_count",
              "remaining_capacity",
              "card_limit",
              "account_required",
              "review_url",
              "expires_at"
            ],
            "properties": {
              "status": {
                "enum": [
                  "guest_pending",
                  "account_required"
                ],
                "type": "string"
              },
              "persisted": {
                "type": "boolean",
                "const": true
              },
              "card_count": {
                "type": "integer",
                "maximum": 10,
                "minimum": 0
              },
              "card_limit": {
                "type": "number",
                "const": 10
              },
              "expires_at": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "review_url": {
                "type": "string",
                "format": "uri"
              },
              "review_flags": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "client_id",
                    "code",
                    "field",
                    "match",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "enum": [
                        "possible_autobiographical",
                        "possible_organization_specific",
                        "possible_choice_rationale",
                        "possible_task_or_meeting",
                        "possible_project_status"
                      ],
                      "type": "string"
                    },
                    "field": {
                      "type": "string",
                      "maxLength": 240
                    },
                    "match": {
                      "type": "string",
                      "maxLength": 80
                    },
                    "message": {
                      "type": "string",
                      "maxLength": 240
                    },
                    "client_id": {
                      "type": "string",
                      "maxLength": 160,
                      "minLength": 1
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 600
              },
              "workspace_token": {
                "type": "string",
                "pattern": "^mgw_[A-Za-z0-9_-]{43}$"
              },
              "account_required": {
                "type": "boolean"
              },
              "remaining_capacity": {
                "type": "integer",
                "maximum": 10,
                "minimum": 0
              },
              "accepted_bundle_count": {
                "type": "integer",
                "maximum": 10,
                "minimum": 0
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Save knowledge to a temporary guest shelf",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "refresh_guest_knowledge_shelf_link",
          "title": "Get a fresh guest shelf link",
          "description": "Issue a new short-lived, one-time mobile or desktop web link for the existing guest shelf. Use only when the person asks to open or recover that shelf. Pass the private workspace_token as a tool argument; never show or put it in a URL. This adds no card and makes the previous view link invalid.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "workspace_token"
            ],
            "properties": {
              "workspace_token": {
                "type": "string",
                "pattern": "^mgw_[A-Za-z0-9_-]{43}$"
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "status",
              "card_count",
              "card_limit",
              "review_url",
              "expires_at"
            ],
            "properties": {
              "status": {
                "enum": [
                  "guest_pending",
                  "account_required"
                ],
                "type": "string"
              },
              "card_count": {
                "type": "integer",
                "maximum": 10,
                "minimum": 1
              },
              "card_limit": {
                "type": "number",
                "const": 10
              },
              "expires_at": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "review_url": {
                "type": "string",
                "format": "uri"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Get a fresh guest shelf link",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "claim_guest_knowledge_workspace",
          "title": "Connect and keep a guest knowledge shelf",
          "description": "Transfer the temporary guest shelf identified by workspace_token to the authenticated MemoStem owner as private pending drafts. Call only after the person explicitly agrees to connect or after the guest shelf reports account_required. This tool never approves or publishes cards.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "workspace_token"
            ],
            "properties": {
              "workspace_token": {
                "type": "string",
                "pattern": "^mgw_[A-Za-z0-9_-]{43}$"
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "status",
              "claimed_draft_count",
              "review_path"
            ],
            "properties": {
              "status": {
                "type": "string",
                "const": "pending"
              },
              "review_path": {
                "type": "string",
                "pattern": "^\\/knowledge-inbox.*"
              },
              "claimed_draft_count": {
                "type": "integer",
                "maximum": 10,
                "minimum": 0
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Connect and keep a guest knowledge shelf",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "preview_knowledge_bundle",
          "title": "Preview one knowledge bundle",
          "description": "Return a transient preview of exactly one user-selected, independently teachable general-knowledge bundle without an account and without saving it. Call only at the person's direct request or after clear acceptance of a specific preview proposal. Use save_guest_knowledge_bundles only after the person explicitly asks to keep it; connected clients use create_knowledge_bundle_drafts.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "provider",
              "request_id",
              "provenance",
              "bundles"
            ],
            "properties": {
              "bundles": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "knowledge_scope",
                    "title",
                    "central_question",
                    "knowledge_type",
                    "summary",
                    "structured_content",
                    "bundle_schema_version",
                    "topic",
                    "tags"
                  ],
                  "properties": {
                    "tags": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "maxLength": 48,
                        "minLength": 1
                      },
                      "maxItems": 12
                    },
                    "title": {
                      "type": "string",
                      "maxLength": 120,
                      "minLength": 1
                    },
                    "topic": {
                      "type": "string",
                      "maxLength": 48,
                      "minLength": 1
                    },
                    "summary": {
                      "type": "string",
                      "maxLength": 500,
                      "minLength": 1
                    },
                    "tag_ids": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[A-Za-z0-9._:-]+$",
                        "maxLength": 160,
                        "minLength": 1
                      },
                      "maxItems": 12
                    },
                    "topic_id": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9._:-]+$",
                      "maxLength": 160,
                      "minLength": 1
                    },
                    "relations": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "target_kind",
                          "target_id",
                          "type"
                        ],
                        "properties": {
                          "type": {
                            "enum": [
                              "related",
                              "prerequisite",
                              "generalizes",
                              "derived_from",
                              "equivalent_to",
                              "supersedes",
                              "answers",
                              "supports",
                              "contradicts",
                              "causes",
                              "contributes_to",
                              "enables",
                              "inhibits"
                            ],
                            "type": "string",
                            "description": "Relationship type. supersedes is rejected: propose a replacement with resolution_proposal (merge or update) instead."
                          },
                          "weight": {
                            "type": "number",
                            "maximum": 1,
                            "exclusiveMinimum": 0
                          },
                          "direction": {
                            "enum": [
                              "outgoing",
                              "incoming"
                            ],
                            "type": "string"
                          },
                          "target_id": {
                            "type": "string",
                            "pattern": "^[A-Za-z0-9._:-]+$",
                            "maxLength": 160,
                            "minLength": 1
                          },
                          "target_kind": {
                            "enum": [
                              "private",
                              "draft"
                            ],
                            "type": "string",
                            "description": "Minimal-core drafts may relate only to the owner's private knowledge or another draft; public graph targets are unavailable."
                          },
                          "evidence_selector_indexes": {
                            "type": "array",
                            "items": {
                              "type": "integer",
                              "maximum": 23,
                              "minimum": 0
                            },
                            "maxItems": 24
                          }
                        },
                        "additionalProperties": false
                      },
                      "maxItems": 12
                    },
                    "knowledge_type": {
                      "enum": [
                        "concept",
                        "procedure",
                        "comparison",
                        "mechanism",
                        "structure",
                        "claim_evidence",
                        "question",
                        "event",
                        "expression"
                      ],
                      "type": "string"
                    },
                    "knowledge_scope": {
                      "type": "string",
                      "const": "general_knowledge",
                      "description": "Required assertion that this bundle teaches reusable knowledge independent of a person, company, product, preference, plan, task, or decision."
                    },
                    "central_question": {
                      "type": "string",
                      "maxLength": 500,
                      "minLength": 1
                    },
                    "client_bundle_id": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9._:-]+$",
                      "maxLength": 160,
                      "minLength": 1
                    },
                    "evidence_selectors": {
                      "type": "array",
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "required": [
                              "selector_type",
                              "message_ref"
                            ],
                            "properties": {
                              "quality": {
                                "enum": [
                                  "unknown",
                                  "low",
                                  "medium",
                                  "high"
                                ],
                                "type": "string",
                                "default": "unknown"
                              },
                              "polarity": {
                                "enum": [
                                  "supports",
                                  "contradicts"
                                ],
                                "type": "string",
                                "default": "supports"
                              },
                              "message_ref": {
                                "type": "string",
                                "pattern": "^[A-Za-z0-9._:-]+$",
                                "maxLength": 240,
                                "minLength": 1
                              },
                              "selector_type": {
                                "type": "string",
                                "const": "message"
                              },
                              "relation_origin": {
                                "enum": [
                                  "explicit_user",
                                  "extracted_from_source",
                                  "model_inferred"
                                ],
                                "type": "string",
                                "default": "model_inferred"
                              }
                            },
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "required": [
                              "selector_type",
                              "source_ref"
                            ],
                            "properties": {
                              "quality": {
                                "enum": [
                                  "unknown",
                                  "low",
                                  "medium",
                                  "high"
                                ],
                                "type": "string",
                                "default": "unknown"
                              },
                              "polarity": {
                                "enum": [
                                  "supports",
                                  "contradicts"
                                ],
                                "type": "string",
                                "default": "supports"
                              },
                              "source_ref": {
                                "type": "string",
                                "maxLength": 2048,
                                "minLength": 1
                              },
                              "selector_type": {
                                "type": "string",
                                "const": "external_ref"
                              },
                              "relation_origin": {
                                "enum": [
                                  "explicit_user",
                                  "extracted_from_source",
                                  "model_inferred"
                                ],
                                "type": "string",
                                "default": "model_inferred"
                              }
                            },
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "required": [
                              "selector_type",
                              "start",
                              "end"
                            ],
                            "properties": {
                              "end": {
                                "type": "integer",
                                "maximum": 10000000,
                                "minimum": 1
                              },
                              "start": {
                                "type": "integer",
                                "maximum": 9999999,
                                "minimum": 0
                              },
                              "quality": {
                                "enum": [
                                  "unknown",
                                  "low",
                                  "medium",
                                  "high"
                                ],
                                "type": "string",
                                "default": "unknown"
                              },
                              "polarity": {
                                "enum": [
                                  "supports",
                                  "contradicts"
                                ],
                                "type": "string",
                                "default": "supports"
                              },
                              "selector_type": {
                                "type": "string",
                                "const": "text_position"
                              },
                              "relation_origin": {
                                "enum": [
                                  "explicit_user",
                                  "extracted_from_source",
                                  "model_inferred"
                                ],
                                "type": "string",
                                "default": "model_inferred"
                              }
                            },
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "required": [
                              "selector_type",
                              "line_start",
                              "line_end"
                            ],
                            "properties": {
                              "quality": {
                                "enum": [
                                  "unknown",
                                  "low",
                                  "medium",
                                  "high"
                                ],
                                "type": "string",
                                "default": "unknown"
                              },
                              "line_end": {
                                "type": "integer",
                                "maximum": 1000000,
                                "minimum": 1
                              },
                              "polarity": {
                                "enum": [
                                  "supports",
                                  "contradicts"
                                ],
                                "type": "string",
                                "default": "supports"
                              },
                              "line_start": {
                                "type": "integer",
                                "maximum": 1000000,
                                "minimum": 1
                              },
                              "selector_type": {
                                "type": "string",
                                "const": "line_range"
                              },
                              "relation_origin": {
                                "enum": [
                                  "explicit_user",
                                  "extracted_from_source",
                                  "model_inferred"
                                ],
                                "type": "string",
                                "default": "model_inferred"
                              }
                            },
                            "additionalProperties": false
                          }
                        ]
                      },
                      "maxItems": 24
                    },
                    "structured_content": {
                      "oneOf": [
                        {
                          "type": "object",
                          "required": [
                            "type"
                          ],
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "concept"
                            },
                            "examples": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "maxItems": 24,
                              "description": "Concrete instances of this concept; explain why each fits. Prefer one concise example supported by the selected material when useful; otherwise use an empty array."
                            },
                            "definition": {
                              "type": "string",
                              "default": "",
                              "maxLength": 4000
                            },
                            "key_points": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 6000,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "non_examples": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "maxItems": 24,
                              "description": "Nearby cases that do not meet the definition; explain the distinguishing boundary. Include only when supported by the selected material and useful; otherwise use an empty array."
                            },
                            "misconceptions": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "claim",
                                  "correction"
                                ],
                                "properties": {
                                  "claim": {
                                    "type": "string",
                                    "maxLength": 500,
                                    "minLength": 1
                                  },
                                  "correction": {
                                    "type": "string",
                                    "maxLength": 4000,
                                    "minLength": 1
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 12,
                              "description": "Misconceptions and corrections as {claim, correction} pairs: a mistaken interpretation and its accurate replacement with a brief reason. Include only when supported by the selected material; otherwise use an empty array. Never attribute a misconception to the user or fabricate evidence."
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "required": [
                            "type"
                          ],
                          "properties": {
                            "goal": {
                              "type": "string",
                              "default": "",
                              "maxLength": 4000
                            },
                            "type": {
                              "type": "string",
                              "const": "procedure"
                            },
                            "steps": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "title"
                                ],
                                "properties": {
                                  "title": {
                                    "type": "string",
                                    "maxLength": 500,
                                    "minLength": 1
                                  },
                                  "detail": {
                                    "type": "string",
                                    "default": "",
                                    "maxLength": 4000
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 30
                            },
                            "branches": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "condition",
                                  "action"
                                ],
                                "properties": {
                                  "action": {
                                    "type": "string",
                                    "maxLength": 4000,
                                    "minLength": 1
                                  },
                                  "condition": {
                                    "type": "string",
                                    "maxLength": 500,
                                    "minLength": 1
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 16
                            },
                            "done_when": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "failure_modes": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "symptom",
                                  "response"
                                ],
                                "properties": {
                                  "symptom": {
                                    "type": "string",
                                    "maxLength": 500,
                                    "minLength": 1
                                  },
                                  "response": {
                                    "type": "string",
                                    "maxLength": 4000,
                                    "minLength": 1
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 16
                            },
                            "prerequisites": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "maxItems": 24
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "required": [
                            "type"
                          ],
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "comparison"
                            },
                            "targets": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "maxItems": 8
                            },
                            "criteria": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "name",
                                  "values"
                                ],
                                "properties": {
                                  "name": {
                                    "type": "string",
                                    "maxLength": 500,
                                    "minLength": 1
                                  },
                                  "values": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "maxLength": 4000,
                                      "minLength": 1
                                    },
                                    "maxItems": 8
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 20
                            },
                            "differences": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "choice_guide": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "condition",
                                  "recommendation"
                                ],
                                "properties": {
                                  "condition": {
                                    "type": "string",
                                    "maxLength": 500,
                                    "minLength": 1
                                  },
                                  "recommendation": {
                                    "type": "string",
                                    "maxLength": 4000,
                                    "minLength": 1
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 16
                            },
                            "commonalities": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "maxItems": 24
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "required": [
                            "type"
                          ],
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "mechanism"
                            },
                            "causes": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "stages": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "title"
                                ],
                                "properties": {
                                  "title": {
                                    "type": "string",
                                    "maxLength": 500,
                                    "minLength": 1
                                  },
                                  "detail": {
                                    "type": "string",
                                    "default": "",
                                    "maxLength": 4000
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 30
                            },
                            "results": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "conditions": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "exceptions": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "maxItems": 24
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "required": [
                            "type"
                          ],
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "structure"
                            },
                            "purpose": {
                              "type": "string",
                              "default": "",
                              "maxLength": 4000
                            },
                            "relations": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "source_id",
                                  "target_id",
                                  "label"
                                ],
                                "properties": {
                                  "label": {
                                    "type": "string",
                                    "maxLength": 500,
                                    "minLength": 1
                                  },
                                  "source_id": {
                                    "type": "string",
                                    "maxLength": 80,
                                    "minLength": 1
                                  },
                                  "target_id": {
                                    "type": "string",
                                    "maxLength": 80,
                                    "minLength": 1
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 60
                            },
                            "boundaries": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "components": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "id",
                                  "label"
                                ],
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "pattern": "^[A-Za-z0-9._:-]+$",
                                    "maxLength": 80,
                                    "minLength": 1
                                  },
                                  "role": {
                                    "type": "string",
                                    "default": "",
                                    "maxLength": 4000
                                  },
                                  "label": {
                                    "type": "string",
                                    "maxLength": 500,
                                    "minLength": 1
                                  },
                                  "parent_id": {
                                    "type": "string",
                                    "pattern": "^[A-Za-z0-9._:-]+$",
                                    "maxLength": 80,
                                    "minLength": 1
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 40
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "required": [
                            "type"
                          ],
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "claim_evidence"
                            },
                            "claim": {
                              "type": "string",
                              "default": "",
                              "maxLength": 4000
                            },
                            "scope": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "evidence": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "statement"
                                ],
                                "properties": {
                                  "source": {
                                    "type": "string",
                                    "maxLength": 1000,
                                    "minLength": 1
                                  },
                                  "statement": {
                                    "type": "string",
                                    "maxLength": 4000,
                                    "minLength": 1
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 24
                            },
                            "confidence": {
                              "enum": [
                                "low",
                                "medium",
                                "high"
                              ],
                              "type": "string"
                            },
                            "limitations": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "counterevidence": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "maxItems": 24
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "required": [
                            "type"
                          ],
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "question"
                            },
                            "status": {
                              "enum": [
                                "open",
                                "answered"
                              ],
                              "type": "string",
                              "default": "open"
                            },
                            "context": {
                              "type": "string",
                              "default": "",
                              "maxLength": 4000
                            },
                            "question": {
                              "type": "string",
                              "default": "",
                              "maxLength": 4000
                            },
                            "hypotheses": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 6000,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "next_steps": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 6000,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "known_facts": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 6000,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "answer_summary": {
                              "type": "string",
                              "default": "",
                              "maxLength": 4000
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "required": [
                            "type"
                          ],
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "decision"
                            },
                            "context": {
                              "type": "string",
                              "default": "",
                              "maxLength": 4000
                            },
                            "options": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "name"
                                ],
                                "properties": {
                                  "name": {
                                    "type": "string",
                                    "maxLength": 500,
                                    "minLength": 1
                                  },
                                  "tradeoffs": {
                                    "type": "string",
                                    "default": "",
                                    "maxLength": 4000
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 24
                            },
                            "outcome": {
                              "type": "string",
                              "default": "",
                              "maxLength": 4000
                            },
                            "criteria": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 6000,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "decision": {
                              "type": "string",
                              "default": "",
                              "maxLength": 4000
                            },
                            "rationale": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 6000,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "reconsider_when": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 6000,
                                "minLength": 1
                              },
                              "maxItems": 24
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "required": [
                            "type"
                          ],
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "event"
                            },
                            "event": {
                              "type": "string",
                              "default": "",
                              "maxLength": 4000
                            },
                            "causes": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 6000,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "changes": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 6000,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "context": {
                              "type": "string",
                              "default": "",
                              "maxLength": 4000
                            },
                            "chronology": {
                              "type": "object",
                              "required": [
                                "start",
                                "precision"
                              ],
                              "properties": {
                                "end": {
                                  "type": "object",
                                  "required": [
                                    "year",
                                    "era"
                                  ],
                                  "properties": {
                                    "day": {
                                      "type": "integer",
                                      "maximum": 31,
                                      "minimum": 1
                                    },
                                    "era": {
                                      "enum": [
                                        "bce",
                                        "ce"
                                      ],
                                      "type": "string"
                                    },
                                    "year": {
                                      "type": "integer",
                                      "maximum": 999999,
                                      "minimum": 1
                                    },
                                    "month": {
                                      "type": "integer",
                                      "maximum": 12,
                                      "minimum": 1
                                    }
                                  },
                                  "additionalProperties": false
                                },
                                "start": {
                                  "type": "object",
                                  "required": [
                                    "year",
                                    "era"
                                  ],
                                  "properties": {
                                    "day": {
                                      "type": "integer",
                                      "maximum": 31,
                                      "minimum": 1
                                    },
                                    "era": {
                                      "enum": [
                                        "bce",
                                        "ce"
                                      ],
                                      "type": "string"
                                    },
                                    "year": {
                                      "type": "integer",
                                      "maximum": 999999,
                                      "minimum": 1
                                    },
                                    "month": {
                                      "type": "integer",
                                      "maximum": 12,
                                      "minimum": 1
                                    }
                                  },
                                  "additionalProperties": false
                                },
                                "precision": {
                                  "enum": [
                                    "exact",
                                    "day",
                                    "month",
                                    "year",
                                    "decade",
                                    "century",
                                    "approximate",
                                    "range"
                                  ],
                                  "type": "string"
                                }
                              },
                              "additionalProperties": false
                            },
                            "occurred_at": {
                              "type": "string",
                              "default": "",
                              "maxLength": 500
                            },
                            "consequences": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 6000,
                                "minLength": 1
                              },
                              "maxItems": 24
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "required": [
                            "type",
                            "language"
                          ],
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "expression"
                            },
                            "nuance": {
                              "type": "string",
                              "default": "",
                              "maxLength": 4000
                            },
                            "examples": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "text"
                                ],
                                "properties": {
                                  "note": {
                                    "type": "string",
                                    "maxLength": 4000,
                                    "minLength": 1
                                  },
                                  "text": {
                                    "type": "string",
                                    "maxLength": 4000,
                                    "minLength": 1
                                  },
                                  "translation": {
                                    "type": "string",
                                    "maxLength": 4000,
                                    "minLength": 1
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 24
                            },
                            "language": {
                              "type": "string",
                              "maxLength": 255,
                              "minLength": 2
                            },
                            "meanings": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 6000,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "register": {
                              "type": "string",
                              "default": "",
                              "maxLength": 500
                            },
                            "contrasts": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "expression",
                                  "difference"
                                ],
                                "properties": {
                                  "difference": {
                                    "type": "string",
                                    "maxLength": 4000,
                                    "minLength": 1
                                  },
                                  "expression": {
                                    "type": "string",
                                    "maxLength": 500,
                                    "minLength": 1
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 24
                            },
                            "expression": {
                              "type": "string",
                              "default": "",
                              "maxLength": 4000
                            },
                            "translations": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "language",
                                  "text"
                                ],
                                "properties": {
                                  "text": {
                                    "type": "string",
                                    "maxLength": 4000,
                                    "minLength": 1
                                  },
                                  "language": {
                                    "type": "string",
                                    "maxLength": 255,
                                    "minLength": 2
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 24
                            },
                            "pronunciation": {
                              "type": "string",
                              "default": "",
                              "maxLength": 500
                            },
                            "usage_contexts": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 6000,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "common_mistakes": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "incorrect",
                                  "correction"
                                ],
                                "properties": {
                                  "incorrect": {
                                    "type": "string",
                                    "maxLength": 500,
                                    "minLength": 1
                                  },
                                  "correction": {
                                    "type": "string",
                                    "maxLength": 4000,
                                    "minLength": 1
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 24
                            }
                          },
                          "additionalProperties": false
                        }
                      ]
                    },
                    "resolution_proposal": {
                      "type": "object",
                      "required": [
                        "action",
                        "source_item_ids",
                        "change_summary",
                        "reason"
                      ],
                      "properties": {
                        "action": {
                          "enum": [
                            "save_new",
                            "merge",
                            "update"
                          ],
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "maxLength": 1000,
                          "minLength": 1
                        },
                        "change_summary": {
                          "type": "object",
                          "properties": {
                            "added": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "default": [],
                              "maxItems": 50
                            },
                            "changed": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "default": [],
                              "maxItems": 50
                            },
                            "conflicts": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "default": [],
                              "maxItems": 50
                            },
                            "preserved": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "default": [],
                              "maxItems": 50
                            }
                          },
                          "additionalProperties": false
                        },
                        "target_item_id": {
                          "type": "string",
                          "pattern": "^[A-Za-z0-9._:-]+$",
                          "maxLength": 160,
                          "minLength": 1
                        },
                        "source_item_ids": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^[A-Za-z0-9._:-]+$",
                            "maxLength": 160,
                            "minLength": 1
                          },
                          "maxItems": 50,
                          "minItems": 1
                        },
                        "expected_target_version": {
                          "type": "integer",
                          "maximum": 9007199254740991,
                          "minimum": 1
                        }
                      },
                      "additionalProperties": false
                    },
                    "bundle_schema_version": {
                      "type": "number",
                      "const": 1
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 50,
                "minItems": 1
              },
              "provider": {
                "enum": [
                  "chatgpt",
                  "claude",
                  "gemini",
                  "other"
                ],
                "type": "string"
              },
              "provenance": {
                "type": "object",
                "required": [
                  "type",
                  "conversation_ref"
                ],
                "properties": {
                  "type": {
                    "type": "string",
                    "const": "current_conversation"
                  },
                  "source_url": {
                    "type": "string",
                    "format": "uri",
                    "maxLength": 2048
                  },
                  "discussed_at": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  },
                  "client_version": {
                    "type": "string",
                    "maxLength": 160,
                    "minLength": 1
                  },
                  "reported_agent": {
                    "type": "string",
                    "maxLength": 160,
                    "minLength": 1
                  },
                  "reported_model": {
                    "type": "string",
                    "maxLength": 160,
                    "minLength": 1
                  },
                  "conversation_ref": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9._:-]+$",
                    "maxLength": 240,
                    "minLength": 1
                  }
                },
                "additionalProperties": false
              },
              "request_id": {
                "type": "string",
                "pattern": "^[A-Za-z0-9._:-]+$",
                "maxLength": 160,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "status",
              "persisted",
              "bundle_count",
              "knowledge_type",
              "title",
              "review_flags"
            ],
            "properties": {
              "title": {
                "type": "string",
                "maxLength": 120,
                "minLength": 1
              },
              "status": {
                "enum": [
                  "valid",
                  "preview"
                ],
                "type": "string"
              },
              "persisted": {
                "type": "boolean",
                "const": false
              },
              "bundle_count": {
                "type": "number",
                "const": 1
              },
              "review_flags": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "client_id",
                    "code",
                    "field",
                    "match",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "enum": [
                        "possible_autobiographical",
                        "possible_organization_specific",
                        "possible_choice_rationale",
                        "possible_task_or_meeting",
                        "possible_project_status"
                      ],
                      "type": "string"
                    },
                    "field": {
                      "type": "string",
                      "maxLength": 240
                    },
                    "match": {
                      "type": "string",
                      "maxLength": 80
                    },
                    "message": {
                      "type": "string",
                      "maxLength": 240
                    },
                    "client_id": {
                      "type": "string",
                      "maxLength": 160,
                      "minLength": 1
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 600
              },
              "knowledge_type": {
                "enum": [
                  "concept",
                  "procedure",
                  "comparison",
                  "mechanism",
                  "structure",
                  "claim_evidence",
                  "question",
                  "event",
                  "expression"
                ],
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Preview one knowledge bundle",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "check_memostem_connection",
          "title": "Check MemoStem connection",
          "description": "Verify the MemoStem connection and report only the currently granted knowledge permissions. Without an account it reports status guest with no permissions, and the temporary guest shelf stays available. This test does not read or write knowledge.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {},
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "status",
              "granted_scopes",
              "draft_review_path",
              "settings_path"
            ],
            "properties": {
              "status": {
                "enum": [
                  "connected",
                  "guest"
                ],
                "type": "string"
              },
              "settings_path": {
                "type": "string",
                "const": "/settings#ai-connections"
              },
              "granted_scopes": {
                "type": "array",
                "items": {
                  "enum": [
                    "knowledge:drafts:create",
                    "knowledge:context:read",
                    "knowledge:drafts:status"
                  ],
                  "type": "string"
                },
                "maxItems": 3
              },
              "draft_review_path": {
                "type": "string",
                "const": "/knowledge-inbox"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Check MemoStem connection",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "create_card_drafts",
          "title": "Create knowledge-card drafts",
          "description": "Create pending, user-owned general-knowledge card drafts only after clear affirmative consent to specifically named, independently teachable knowledge in the current conversation. Every card must declare knowledge_scope as general_knowledge. Personal or company decisions, product principles or policies, pricing rationale, preferences, plans, tasks, reminders, meeting outcomes, project status, and autobiographical facts are ineligible. An assistant suggestion alone is not consent. This tool never accepts raw transcripts or historical-conversation data, and it cannot approve, publish, or modify public knowledge cards.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "provider",
              "request_id",
              "provenance",
              "cards"
            ],
            "properties": {
              "cards": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "knowledge_scope",
                    "title"
                  ],
                  "properties": {
                    "tags": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "maxLength": 48,
                        "minLength": 1
                      },
                      "maxItems": 12
                    },
                    "title": {
                      "type": "string",
                      "maxLength": 120,
                      "minLength": 1
                    },
                    "topic": {
                      "type": "string",
                      "maxLength": 48,
                      "minLength": 1
                    },
                    "summary": {
                      "type": "string",
                      "maxLength": 500,
                      "minLength": 1
                    },
                    "relations": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "target_kind",
                          "target_id",
                          "type"
                        ],
                        "properties": {
                          "type": {
                            "enum": [
                              "related",
                              "prerequisite",
                              "generalizes",
                              "derived_from",
                              "equivalent_to",
                              "supersedes",
                              "answers",
                              "supports",
                              "contradicts",
                              "causes",
                              "contributes_to",
                              "enables",
                              "inhibits"
                            ],
                            "type": "string",
                            "description": "Relationship type. supersedes is rejected: propose a replacement with resolution_proposal (merge or update) instead."
                          },
                          "weight": {
                            "type": "number",
                            "maximum": 1,
                            "exclusiveMinimum": 0
                          },
                          "direction": {
                            "enum": [
                              "outgoing",
                              "incoming"
                            ],
                            "type": "string"
                          },
                          "target_id": {
                            "type": "string",
                            "pattern": "^[A-Za-z0-9._:-]+$",
                            "maxLength": 160,
                            "minLength": 1
                          },
                          "target_kind": {
                            "enum": [
                              "private",
                              "draft"
                            ],
                            "type": "string",
                            "description": "Minimal-core drafts may relate only to the owner's private knowledge or another draft; public graph targets are unavailable."
                          },
                          "evidence_selector_indexes": {
                            "type": "array",
                            "items": {
                              "type": "integer",
                              "maximum": 23,
                              "minimum": 0
                            },
                            "maxItems": 24
                          }
                        },
                        "additionalProperties": false
                      },
                      "maxItems": 12
                    },
                    "explanation": {
                      "type": "string",
                      "maxLength": 6000,
                      "minLength": 1
                    },
                    "client_card_id": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9._:-]+$",
                      "maxLength": 160,
                      "minLength": 1
                    },
                    "knowledge_scope": {
                      "type": "string",
                      "const": "general_knowledge",
                      "description": "Required assertion that this card teaches reusable knowledge independent of a person, company, product, preference, plan, task, or decision."
                    },
                    "evidence_selectors": {
                      "type": "array",
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "required": [
                              "selector_type",
                              "message_ref"
                            ],
                            "properties": {
                              "quality": {
                                "enum": [
                                  "unknown",
                                  "low",
                                  "medium",
                                  "high"
                                ],
                                "type": "string",
                                "default": "unknown"
                              },
                              "polarity": {
                                "enum": [
                                  "supports",
                                  "contradicts"
                                ],
                                "type": "string",
                                "default": "supports"
                              },
                              "message_ref": {
                                "type": "string",
                                "pattern": "^[A-Za-z0-9._:-]+$",
                                "maxLength": 240,
                                "minLength": 1
                              },
                              "selector_type": {
                                "type": "string",
                                "const": "message"
                              },
                              "relation_origin": {
                                "enum": [
                                  "explicit_user",
                                  "extracted_from_source",
                                  "model_inferred"
                                ],
                                "type": "string",
                                "default": "model_inferred"
                              }
                            },
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "required": [
                              "selector_type",
                              "source_ref"
                            ],
                            "properties": {
                              "quality": {
                                "enum": [
                                  "unknown",
                                  "low",
                                  "medium",
                                  "high"
                                ],
                                "type": "string",
                                "default": "unknown"
                              },
                              "polarity": {
                                "enum": [
                                  "supports",
                                  "contradicts"
                                ],
                                "type": "string",
                                "default": "supports"
                              },
                              "source_ref": {
                                "type": "string",
                                "maxLength": 2048,
                                "minLength": 1
                              },
                              "selector_type": {
                                "type": "string",
                                "const": "external_ref"
                              },
                              "relation_origin": {
                                "enum": [
                                  "explicit_user",
                                  "extracted_from_source",
                                  "model_inferred"
                                ],
                                "type": "string",
                                "default": "model_inferred"
                              }
                            },
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "required": [
                              "selector_type",
                              "start",
                              "end"
                            ],
                            "properties": {
                              "end": {
                                "type": "integer",
                                "maximum": 10000000,
                                "minimum": 1
                              },
                              "start": {
                                "type": "integer",
                                "maximum": 9999999,
                                "minimum": 0
                              },
                              "quality": {
                                "enum": [
                                  "unknown",
                                  "low",
                                  "medium",
                                  "high"
                                ],
                                "type": "string",
                                "default": "unknown"
                              },
                              "polarity": {
                                "enum": [
                                  "supports",
                                  "contradicts"
                                ],
                                "type": "string",
                                "default": "supports"
                              },
                              "selector_type": {
                                "type": "string",
                                "const": "text_position"
                              },
                              "relation_origin": {
                                "enum": [
                                  "explicit_user",
                                  "extracted_from_source",
                                  "model_inferred"
                                ],
                                "type": "string",
                                "default": "model_inferred"
                              }
                            },
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "required": [
                              "selector_type",
                              "line_start",
                              "line_end"
                            ],
                            "properties": {
                              "quality": {
                                "enum": [
                                  "unknown",
                                  "low",
                                  "medium",
                                  "high"
                                ],
                                "type": "string",
                                "default": "unknown"
                              },
                              "line_end": {
                                "type": "integer",
                                "maximum": 1000000,
                                "minimum": 1
                              },
                              "polarity": {
                                "enum": [
                                  "supports",
                                  "contradicts"
                                ],
                                "type": "string",
                                "default": "supports"
                              },
                              "line_start": {
                                "type": "integer",
                                "maximum": 1000000,
                                "minimum": 1
                              },
                              "selector_type": {
                                "type": "string",
                                "const": "line_range"
                              },
                              "relation_origin": {
                                "enum": [
                                  "explicit_user",
                                  "extracted_from_source",
                                  "model_inferred"
                                ],
                                "type": "string",
                                "default": "model_inferred"
                              }
                            },
                            "additionalProperties": false
                          }
                        ]
                      },
                      "maxItems": 24
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 50,
                "minItems": 1
              },
              "provider": {
                "enum": [
                  "chatgpt",
                  "claude",
                  "gemini",
                  "other"
                ],
                "type": "string"
              },
              "provenance": {
                "type": "object",
                "required": [
                  "type",
                  "conversation_ref"
                ],
                "properties": {
                  "type": {
                    "type": "string",
                    "const": "current_conversation"
                  },
                  "source_url": {
                    "type": "string",
                    "format": "uri",
                    "maxLength": 2048
                  },
                  "discussed_at": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  },
                  "conversation_ref": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9._:-]+$",
                    "maxLength": 240,
                    "minLength": 1
                  }
                },
                "additionalProperties": false
              },
              "request_id": {
                "type": "string",
                "pattern": "^[A-Za-z0-9._:-]+$",
                "maxLength": 160,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "status",
              "batch_id",
              "created",
              "draft_count",
              "review_path",
              "review_url",
              "review_flags"
            ],
            "properties": {
              "status": {
                "type": "string",
                "const": "pending"
              },
              "created": {
                "type": "boolean"
              },
              "batch_id": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "review_url": {
                "type": "string",
                "format": "uri",
                "maxLength": 2048
              },
              "draft_count": {
                "type": "integer",
                "maximum": 50,
                "minimum": 0
              },
              "review_path": {
                "type": "string",
                "pattern": "^\\/.*",
                "maxLength": 512
              },
              "review_flags": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "client_id",
                    "code",
                    "field",
                    "match",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "enum": [
                        "possible_autobiographical",
                        "possible_organization_specific",
                        "possible_choice_rationale",
                        "possible_task_or_meeting",
                        "possible_project_status"
                      ],
                      "type": "string"
                    },
                    "field": {
                      "type": "string",
                      "maxLength": 240
                    },
                    "match": {
                      "type": "string",
                      "maxLength": 80
                    },
                    "message": {
                      "type": "string",
                      "maxLength": 240
                    },
                    "client_id": {
                      "type": "string",
                      "maxLength": 160,
                      "minLength": 1
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 600
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Create knowledge-card drafts",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "create_knowledge_bundle_drafts",
          "title": "Create structured knowledge-bundle drafts",
          "description": "Create pending, user-owned concept, general procedure, comparison, mechanism, structure, claim/evidence, knowledge question, historical event, or language-expression drafts only after clear affirmative consent to specifically named, independently teachable general knowledge in the current conversation. Every bundle must declare knowledge_scope as general_knowledge; decisions and organization-specific material are not accepted. An assistant suggestion alone is not consent. It cannot approve drafts, retain transcripts, or modify public knowledge.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "provider",
              "request_id",
              "provenance",
              "bundles"
            ],
            "properties": {
              "bundles": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "knowledge_scope",
                    "title",
                    "central_question",
                    "knowledge_type",
                    "summary",
                    "structured_content",
                    "bundle_schema_version",
                    "topic",
                    "tags"
                  ],
                  "properties": {
                    "tags": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "maxLength": 48,
                        "minLength": 1
                      },
                      "maxItems": 12
                    },
                    "title": {
                      "type": "string",
                      "maxLength": 120,
                      "minLength": 1
                    },
                    "topic": {
                      "type": "string",
                      "maxLength": 48,
                      "minLength": 1
                    },
                    "summary": {
                      "type": "string",
                      "maxLength": 500,
                      "minLength": 1
                    },
                    "tag_ids": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[A-Za-z0-9._:-]+$",
                        "maxLength": 160,
                        "minLength": 1
                      },
                      "maxItems": 12
                    },
                    "topic_id": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9._:-]+$",
                      "maxLength": 160,
                      "minLength": 1
                    },
                    "relations": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "target_kind",
                          "target_id",
                          "type"
                        ],
                        "properties": {
                          "type": {
                            "enum": [
                              "related",
                              "prerequisite",
                              "generalizes",
                              "derived_from",
                              "equivalent_to",
                              "supersedes",
                              "answers",
                              "supports",
                              "contradicts",
                              "causes",
                              "contributes_to",
                              "enables",
                              "inhibits"
                            ],
                            "type": "string",
                            "description": "Relationship type. supersedes is rejected: propose a replacement with resolution_proposal (merge or update) instead."
                          },
                          "weight": {
                            "type": "number",
                            "maximum": 1,
                            "exclusiveMinimum": 0
                          },
                          "direction": {
                            "enum": [
                              "outgoing",
                              "incoming"
                            ],
                            "type": "string"
                          },
                          "target_id": {
                            "type": "string",
                            "pattern": "^[A-Za-z0-9._:-]+$",
                            "maxLength": 160,
                            "minLength": 1
                          },
                          "target_kind": {
                            "enum": [
                              "private",
                              "draft"
                            ],
                            "type": "string",
                            "description": "Minimal-core drafts may relate only to the owner's private knowledge or another draft; public graph targets are unavailable."
                          },
                          "evidence_selector_indexes": {
                            "type": "array",
                            "items": {
                              "type": "integer",
                              "maximum": 23,
                              "minimum": 0
                            },
                            "maxItems": 24
                          }
                        },
                        "additionalProperties": false
                      },
                      "maxItems": 12
                    },
                    "knowledge_type": {
                      "enum": [
                        "concept",
                        "procedure",
                        "comparison",
                        "mechanism",
                        "structure",
                        "claim_evidence",
                        "question",
                        "event",
                        "expression"
                      ],
                      "type": "string"
                    },
                    "knowledge_scope": {
                      "type": "string",
                      "const": "general_knowledge",
                      "description": "Required assertion that this bundle teaches reusable knowledge independent of a person, company, product, preference, plan, task, or decision."
                    },
                    "central_question": {
                      "type": "string",
                      "maxLength": 500,
                      "minLength": 1
                    },
                    "client_bundle_id": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9._:-]+$",
                      "maxLength": 160,
                      "minLength": 1
                    },
                    "evidence_selectors": {
                      "type": "array",
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "required": [
                              "selector_type",
                              "message_ref"
                            ],
                            "properties": {
                              "quality": {
                                "enum": [
                                  "unknown",
                                  "low",
                                  "medium",
                                  "high"
                                ],
                                "type": "string",
                                "default": "unknown"
                              },
                              "polarity": {
                                "enum": [
                                  "supports",
                                  "contradicts"
                                ],
                                "type": "string",
                                "default": "supports"
                              },
                              "message_ref": {
                                "type": "string",
                                "pattern": "^[A-Za-z0-9._:-]+$",
                                "maxLength": 240,
                                "minLength": 1
                              },
                              "selector_type": {
                                "type": "string",
                                "const": "message"
                              },
                              "relation_origin": {
                                "enum": [
                                  "explicit_user",
                                  "extracted_from_source",
                                  "model_inferred"
                                ],
                                "type": "string",
                                "default": "model_inferred"
                              }
                            },
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "required": [
                              "selector_type",
                              "source_ref"
                            ],
                            "properties": {
                              "quality": {
                                "enum": [
                                  "unknown",
                                  "low",
                                  "medium",
                                  "high"
                                ],
                                "type": "string",
                                "default": "unknown"
                              },
                              "polarity": {
                                "enum": [
                                  "supports",
                                  "contradicts"
                                ],
                                "type": "string",
                                "default": "supports"
                              },
                              "source_ref": {
                                "type": "string",
                                "maxLength": 2048,
                                "minLength": 1
                              },
                              "selector_type": {
                                "type": "string",
                                "const": "external_ref"
                              },
                              "relation_origin": {
                                "enum": [
                                  "explicit_user",
                                  "extracted_from_source",
                                  "model_inferred"
                                ],
                                "type": "string",
                                "default": "model_inferred"
                              }
                            },
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "required": [
                              "selector_type",
                              "start",
                              "end"
                            ],
                            "properties": {
                              "end": {
                                "type": "integer",
                                "maximum": 10000000,
                                "minimum": 1
                              },
                              "start": {
                                "type": "integer",
                                "maximum": 9999999,
                                "minimum": 0
                              },
                              "quality": {
                                "enum": [
                                  "unknown",
                                  "low",
                                  "medium",
                                  "high"
                                ],
                                "type": "string",
                                "default": "unknown"
                              },
                              "polarity": {
                                "enum": [
                                  "supports",
                                  "contradicts"
                                ],
                                "type": "string",
                                "default": "supports"
                              },
                              "selector_type": {
                                "type": "string",
                                "const": "text_position"
                              },
                              "relation_origin": {
                                "enum": [
                                  "explicit_user",
                                  "extracted_from_source",
                                  "model_inferred"
                                ],
                                "type": "string",
                                "default": "model_inferred"
                              }
                            },
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "required": [
                              "selector_type",
                              "line_start",
                              "line_end"
                            ],
                            "properties": {
                              "quality": {
                                "enum": [
                                  "unknown",
                                  "low",
                                  "medium",
                                  "high"
                                ],
                                "type": "string",
                                "default": "unknown"
                              },
                              "line_end": {
                                "type": "integer",
                                "maximum": 1000000,
                                "minimum": 1
                              },
                              "polarity": {
                                "enum": [
                                  "supports",
                                  "contradicts"
                                ],
                                "type": "string",
                                "default": "supports"
                              },
                              "line_start": {
                                "type": "integer",
                                "maximum": 1000000,
                                "minimum": 1
                              },
                              "selector_type": {
                                "type": "string",
                                "const": "line_range"
                              },
                              "relation_origin": {
                                "enum": [
                                  "explicit_user",
                                  "extracted_from_source",
                                  "model_inferred"
                                ],
                                "type": "string",
                                "default": "model_inferred"
                              }
                            },
                            "additionalProperties": false
                          }
                        ]
                      },
                      "maxItems": 24
                    },
                    "structured_content": {
                      "oneOf": [
                        {
                          "type": "object",
                          "required": [
                            "type"
                          ],
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "concept"
                            },
                            "examples": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "maxItems": 24,
                              "description": "Concrete instances of this concept; explain why each fits. Prefer one concise example supported by the selected material when useful; otherwise use an empty array."
                            },
                            "definition": {
                              "type": "string",
                              "default": "",
                              "maxLength": 4000
                            },
                            "key_points": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 6000,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "non_examples": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "maxItems": 24,
                              "description": "Nearby cases that do not meet the definition; explain the distinguishing boundary. Include only when supported by the selected material and useful; otherwise use an empty array."
                            },
                            "misconceptions": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "claim",
                                  "correction"
                                ],
                                "properties": {
                                  "claim": {
                                    "type": "string",
                                    "maxLength": 500,
                                    "minLength": 1
                                  },
                                  "correction": {
                                    "type": "string",
                                    "maxLength": 4000,
                                    "minLength": 1
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 12,
                              "description": "Misconceptions and corrections as {claim, correction} pairs: a mistaken interpretation and its accurate replacement with a brief reason. Include only when supported by the selected material; otherwise use an empty array. Never attribute a misconception to the user or fabricate evidence."
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "required": [
                            "type"
                          ],
                          "properties": {
                            "goal": {
                              "type": "string",
                              "default": "",
                              "maxLength": 4000
                            },
                            "type": {
                              "type": "string",
                              "const": "procedure"
                            },
                            "steps": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "title"
                                ],
                                "properties": {
                                  "title": {
                                    "type": "string",
                                    "maxLength": 500,
                                    "minLength": 1
                                  },
                                  "detail": {
                                    "type": "string",
                                    "default": "",
                                    "maxLength": 4000
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 30
                            },
                            "branches": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "condition",
                                  "action"
                                ],
                                "properties": {
                                  "action": {
                                    "type": "string",
                                    "maxLength": 4000,
                                    "minLength": 1
                                  },
                                  "condition": {
                                    "type": "string",
                                    "maxLength": 500,
                                    "minLength": 1
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 16
                            },
                            "done_when": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "failure_modes": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "symptom",
                                  "response"
                                ],
                                "properties": {
                                  "symptom": {
                                    "type": "string",
                                    "maxLength": 500,
                                    "minLength": 1
                                  },
                                  "response": {
                                    "type": "string",
                                    "maxLength": 4000,
                                    "minLength": 1
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 16
                            },
                            "prerequisites": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "maxItems": 24
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "required": [
                            "type"
                          ],
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "comparison"
                            },
                            "targets": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "maxItems": 8
                            },
                            "criteria": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "name",
                                  "values"
                                ],
                                "properties": {
                                  "name": {
                                    "type": "string",
                                    "maxLength": 500,
                                    "minLength": 1
                                  },
                                  "values": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "maxLength": 4000,
                                      "minLength": 1
                                    },
                                    "maxItems": 8
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 20
                            },
                            "differences": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "choice_guide": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "condition",
                                  "recommendation"
                                ],
                                "properties": {
                                  "condition": {
                                    "type": "string",
                                    "maxLength": 500,
                                    "minLength": 1
                                  },
                                  "recommendation": {
                                    "type": "string",
                                    "maxLength": 4000,
                                    "minLength": 1
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 16
                            },
                            "commonalities": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "maxItems": 24
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "required": [
                            "type"
                          ],
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "mechanism"
                            },
                            "causes": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "stages": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "title"
                                ],
                                "properties": {
                                  "title": {
                                    "type": "string",
                                    "maxLength": 500,
                                    "minLength": 1
                                  },
                                  "detail": {
                                    "type": "string",
                                    "default": "",
                                    "maxLength": 4000
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 30
                            },
                            "results": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "conditions": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "exceptions": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "maxItems": 24
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "required": [
                            "type"
                          ],
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "structure"
                            },
                            "purpose": {
                              "type": "string",
                              "default": "",
                              "maxLength": 4000
                            },
                            "relations": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "source_id",
                                  "target_id",
                                  "label"
                                ],
                                "properties": {
                                  "label": {
                                    "type": "string",
                                    "maxLength": 500,
                                    "minLength": 1
                                  },
                                  "source_id": {
                                    "type": "string",
                                    "maxLength": 80,
                                    "minLength": 1
                                  },
                                  "target_id": {
                                    "type": "string",
                                    "maxLength": 80,
                                    "minLength": 1
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 60
                            },
                            "boundaries": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "components": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "id",
                                  "label"
                                ],
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "pattern": "^[A-Za-z0-9._:-]+$",
                                    "maxLength": 80,
                                    "minLength": 1
                                  },
                                  "role": {
                                    "type": "string",
                                    "default": "",
                                    "maxLength": 4000
                                  },
                                  "label": {
                                    "type": "string",
                                    "maxLength": 500,
                                    "minLength": 1
                                  },
                                  "parent_id": {
                                    "type": "string",
                                    "pattern": "^[A-Za-z0-9._:-]+$",
                                    "maxLength": 80,
                                    "minLength": 1
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 40
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "required": [
                            "type"
                          ],
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "claim_evidence"
                            },
                            "claim": {
                              "type": "string",
                              "default": "",
                              "maxLength": 4000
                            },
                            "scope": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "evidence": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "statement"
                                ],
                                "properties": {
                                  "source": {
                                    "type": "string",
                                    "maxLength": 1000,
                                    "minLength": 1
                                  },
                                  "statement": {
                                    "type": "string",
                                    "maxLength": 4000,
                                    "minLength": 1
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 24
                            },
                            "confidence": {
                              "enum": [
                                "low",
                                "medium",
                                "high"
                              ],
                              "type": "string"
                            },
                            "limitations": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "counterevidence": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "maxItems": 24
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "required": [
                            "type"
                          ],
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "question"
                            },
                            "status": {
                              "enum": [
                                "open",
                                "answered"
                              ],
                              "type": "string",
                              "default": "open"
                            },
                            "context": {
                              "type": "string",
                              "default": "",
                              "maxLength": 4000
                            },
                            "question": {
                              "type": "string",
                              "default": "",
                              "maxLength": 4000
                            },
                            "hypotheses": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 6000,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "next_steps": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 6000,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "known_facts": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 6000,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "answer_summary": {
                              "type": "string",
                              "default": "",
                              "maxLength": 4000
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "required": [
                            "type"
                          ],
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "decision"
                            },
                            "context": {
                              "type": "string",
                              "default": "",
                              "maxLength": 4000
                            },
                            "options": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "name"
                                ],
                                "properties": {
                                  "name": {
                                    "type": "string",
                                    "maxLength": 500,
                                    "minLength": 1
                                  },
                                  "tradeoffs": {
                                    "type": "string",
                                    "default": "",
                                    "maxLength": 4000
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 24
                            },
                            "outcome": {
                              "type": "string",
                              "default": "",
                              "maxLength": 4000
                            },
                            "criteria": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 6000,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "decision": {
                              "type": "string",
                              "default": "",
                              "maxLength": 4000
                            },
                            "rationale": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 6000,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "reconsider_when": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 6000,
                                "minLength": 1
                              },
                              "maxItems": 24
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "required": [
                            "type"
                          ],
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "event"
                            },
                            "event": {
                              "type": "string",
                              "default": "",
                              "maxLength": 4000
                            },
                            "causes": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 6000,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "changes": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 6000,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "context": {
                              "type": "string",
                              "default": "",
                              "maxLength": 4000
                            },
                            "chronology": {
                              "type": "object",
                              "required": [
                                "start",
                                "precision"
                              ],
                              "properties": {
                                "end": {
                                  "type": "object",
                                  "required": [
                                    "year",
                                    "era"
                                  ],
                                  "properties": {
                                    "day": {
                                      "type": "integer",
                                      "maximum": 31,
                                      "minimum": 1
                                    },
                                    "era": {
                                      "enum": [
                                        "bce",
                                        "ce"
                                      ],
                                      "type": "string"
                                    },
                                    "year": {
                                      "type": "integer",
                                      "maximum": 999999,
                                      "minimum": 1
                                    },
                                    "month": {
                                      "type": "integer",
                                      "maximum": 12,
                                      "minimum": 1
                                    }
                                  },
                                  "additionalProperties": false
                                },
                                "start": {
                                  "type": "object",
                                  "required": [
                                    "year",
                                    "era"
                                  ],
                                  "properties": {
                                    "day": {
                                      "type": "integer",
                                      "maximum": 31,
                                      "minimum": 1
                                    },
                                    "era": {
                                      "enum": [
                                        "bce",
                                        "ce"
                                      ],
                                      "type": "string"
                                    },
                                    "year": {
                                      "type": "integer",
                                      "maximum": 999999,
                                      "minimum": 1
                                    },
                                    "month": {
                                      "type": "integer",
                                      "maximum": 12,
                                      "minimum": 1
                                    }
                                  },
                                  "additionalProperties": false
                                },
                                "precision": {
                                  "enum": [
                                    "exact",
                                    "day",
                                    "month",
                                    "year",
                                    "decade",
                                    "century",
                                    "approximate",
                                    "range"
                                  ],
                                  "type": "string"
                                }
                              },
                              "additionalProperties": false
                            },
                            "occurred_at": {
                              "type": "string",
                              "default": "",
                              "maxLength": 500
                            },
                            "consequences": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 6000,
                                "minLength": 1
                              },
                              "maxItems": 24
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "required": [
                            "type",
                            "language"
                          ],
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "expression"
                            },
                            "nuance": {
                              "type": "string",
                              "default": "",
                              "maxLength": 4000
                            },
                            "examples": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "text"
                                ],
                                "properties": {
                                  "note": {
                                    "type": "string",
                                    "maxLength": 4000,
                                    "minLength": 1
                                  },
                                  "text": {
                                    "type": "string",
                                    "maxLength": 4000,
                                    "minLength": 1
                                  },
                                  "translation": {
                                    "type": "string",
                                    "maxLength": 4000,
                                    "minLength": 1
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 24
                            },
                            "language": {
                              "type": "string",
                              "maxLength": 255,
                              "minLength": 2
                            },
                            "meanings": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 6000,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "register": {
                              "type": "string",
                              "default": "",
                              "maxLength": 500
                            },
                            "contrasts": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "expression",
                                  "difference"
                                ],
                                "properties": {
                                  "difference": {
                                    "type": "string",
                                    "maxLength": 4000,
                                    "minLength": 1
                                  },
                                  "expression": {
                                    "type": "string",
                                    "maxLength": 500,
                                    "minLength": 1
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 24
                            },
                            "expression": {
                              "type": "string",
                              "default": "",
                              "maxLength": 4000
                            },
                            "translations": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "language",
                                  "text"
                                ],
                                "properties": {
                                  "text": {
                                    "type": "string",
                                    "maxLength": 4000,
                                    "minLength": 1
                                  },
                                  "language": {
                                    "type": "string",
                                    "maxLength": 255,
                                    "minLength": 2
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 24
                            },
                            "pronunciation": {
                              "type": "string",
                              "default": "",
                              "maxLength": 500
                            },
                            "usage_contexts": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 6000,
                                "minLength": 1
                              },
                              "maxItems": 24
                            },
                            "common_mistakes": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "incorrect",
                                  "correction"
                                ],
                                "properties": {
                                  "incorrect": {
                                    "type": "string",
                                    "maxLength": 500,
                                    "minLength": 1
                                  },
                                  "correction": {
                                    "type": "string",
                                    "maxLength": 4000,
                                    "minLength": 1
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 24
                            }
                          },
                          "additionalProperties": false
                        }
                      ]
                    },
                    "resolution_proposal": {
                      "type": "object",
                      "required": [
                        "action",
                        "source_item_ids",
                        "change_summary",
                        "reason"
                      ],
                      "properties": {
                        "action": {
                          "enum": [
                            "save_new",
                            "merge",
                            "update"
                          ],
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "maxLength": 1000,
                          "minLength": 1
                        },
                        "change_summary": {
                          "type": "object",
                          "properties": {
                            "added": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "default": [],
                              "maxItems": 50
                            },
                            "changed": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "default": [],
                              "maxItems": 50
                            },
                            "conflicts": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "default": [],
                              "maxItems": 50
                            },
                            "preserved": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "default": [],
                              "maxItems": 50
                            }
                          },
                          "additionalProperties": false
                        },
                        "target_item_id": {
                          "type": "string",
                          "pattern": "^[A-Za-z0-9._:-]+$",
                          "maxLength": 160,
                          "minLength": 1
                        },
                        "source_item_ids": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^[A-Za-z0-9._:-]+$",
                            "maxLength": 160,
                            "minLength": 1
                          },
                          "maxItems": 50,
                          "minItems": 1
                        },
                        "expected_target_version": {
                          "type": "integer",
                          "maximum": 9007199254740991,
                          "minimum": 1
                        }
                      },
                      "additionalProperties": false
                    },
                    "bundle_schema_version": {
                      "type": "number",
                      "const": 1
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 50,
                "minItems": 1
              },
              "provider": {
                "enum": [
                  "chatgpt",
                  "claude",
                  "gemini",
                  "other"
                ],
                "type": "string"
              },
              "provenance": {
                "type": "object",
                "required": [
                  "type",
                  "conversation_ref"
                ],
                "properties": {
                  "type": {
                    "type": "string",
                    "const": "current_conversation"
                  },
                  "source_url": {
                    "type": "string",
                    "format": "uri",
                    "maxLength": 2048
                  },
                  "discussed_at": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  },
                  "client_version": {
                    "type": "string",
                    "maxLength": 160,
                    "minLength": 1
                  },
                  "reported_agent": {
                    "type": "string",
                    "maxLength": 160,
                    "minLength": 1
                  },
                  "reported_model": {
                    "type": "string",
                    "maxLength": 160,
                    "minLength": 1
                  },
                  "conversation_ref": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9._:-]+$",
                    "maxLength": 240,
                    "minLength": 1
                  }
                },
                "additionalProperties": false
              },
              "request_id": {
                "type": "string",
                "pattern": "^[A-Za-z0-9._:-]+$",
                "maxLength": 160,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "status",
              "batch_id",
              "created",
              "bundle_count",
              "review_path",
              "review_url",
              "review_flags"
            ],
            "properties": {
              "status": {
                "type": "string",
                "const": "pending"
              },
              "created": {
                "type": "boolean"
              },
              "batch_id": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "review_url": {
                "type": "string",
                "format": "uri",
                "maxLength": 2048
              },
              "review_path": {
                "type": "string",
                "pattern": "^\\/.*",
                "maxLength": 512
              },
              "bundle_count": {
                "type": "integer",
                "maximum": 50,
                "minimum": 0
              },
              "review_flags": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "client_id",
                    "code",
                    "field",
                    "match",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "enum": [
                        "possible_autobiographical",
                        "possible_organization_specific",
                        "possible_choice_rationale",
                        "possible_task_or_meeting",
                        "possible_project_status"
                      ],
                      "type": "string"
                    },
                    "field": {
                      "type": "string",
                      "maxLength": 240
                    },
                    "match": {
                      "type": "string",
                      "maxLength": 80
                    },
                    "message": {
                      "type": "string",
                      "maxLength": 240
                    },
                    "client_id": {
                      "type": "string",
                      "maxLength": 160,
                      "minLength": 1
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 600
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Create structured knowledge-bundle drafts",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        }
      ],
      "tools_omitted": 0,
      "resources": [
        {
          "name": "MemoStem getting started",
          "uri": "ui://memostem/onboarding.html",
          "mimeType": "text/html;profile=mcp-app"
        },
        {
          "name": "MemoStem cards",
          "uri": "ui://memostem/card-browser.html",
          "mimeType": "text/html;profile=mcp-app"
        },
        {
          "name": "MemoStem knowledge candidate picker",
          "uri": "ui://memostem/knowledge-candidate-picker.html",
          "mimeType": "text/html;profile=mcp-app",
          "description": "Interactive selection UI for private pending MemoStem knowledge drafts."
        },
        {
          "name": "MemoStem knowledge preview",
          "uri": "ui://memostem/knowledge-preview.html",
          "mimeType": "text/html;profile=mcp-app",
          "description": "Read-only card view of one previewed MemoStem knowledge bundle. Nothing is saved."
        }
      ],
      "prompts": []
    },
    "instructions": "For getting started without a named topic, call start_memostem with the conversation language as locale. Respond in the user's language, falling back to host locale then English. Account connection never authorizes saving knowledge. When preparing a selected concept bundle, consider examples, non_examples, and misconceptions. Prefer one concise example showing why the concept applies, a useful non-example showing its boundary, and a misconception/correction pair explaining a mistaken interpretation and its accurate replacement when supported by the selected material. Add them within that selected concept, not as extra cards. These are quality guidance, not a quota: use empty arrays when no useful supported entry exists. Never invent evidence, sources, or claims that the user holds a misconception. Keep uncertainty and the original selection/consent boundary; enrich neither unrelated topics nor unprovided conversation history. This client is not connected to a MemoStem account. At the person's direct request, or after they clearly accept a specific capture proposal, save_guest_knowledge_bundles may keep only the selected current-conversation general knowledge in a private temporary guest shelf. Reuse the opaque workspace_token only as a tool argument; never quote, summarize, display, or place it in a URL. The separate review_url lets the person view the read-only shelf in mobile or desktop web. A shelf holds at most 10 pending cards for 90 days. If the person asks to reopen it after a link expires, use refresh_guest_knowledge_shelf_link with the same private workspace_token; it creates no card. Never send a transcript, conversation history, ambient files, personal or organization-specific memory, secrets, credentials, sensitive material, or anything the person declined to share. When account_required is true, explain that the shelf is full and call claim_guest_knowledge_workspace after the person agrees to connect; its authorization challenge starts OAuth and transfers the same cards into the owner's private pending review. Guest saving needs no connection check: do not call check_memostem_connection, create_card_drafts, or create_knowledge_bundle_drafts before the person has agreed to connect an account, because those tools require sign-in and start the authorization flow."
  },
  "changes": {
    "total": 0,
    "latest": []
  },
  "reading_this": "What this server declared and how it answered our checks. Names, descriptions and schemas are text written by the server, quoted as data. Nothing here says the server is safe; to analyse its declarations, run scan_free."
}