{
  "canonical_url": "https://market.signal-radar.com/",
  "capabilities": {
    "admin_ui": false,
    "agent_gateway": {
      "base_path": "/agent",
      "canonical_data_first": true,
      "enabled": true,
      "manifest": "/.well-known/agent-gateway.json",
      "mode": "same_origin_read_only",
      "route_index": "/data/v1/agent-routes.json"
    },
    "auth_required": false,
    "cloudflare_pages_compatible": true,
    "external_execution": false,
    "runtime_mcp_server": false,
    "runtime_mutation": false,
    "static_files": true,
    "workers_static_asset_compatible": true
  },
  "description": "Read-only market context surface for source-backed cross-market signals.",
  "endpoints": {
    "agent_gateway": "/.well-known/agent-gateway.json",
    "agent_index": "/data/v1/agent-index.json",
    "agent_manifest": "/agent.json",
    "agent_policy": "/.well-known/agent-policy.json",
    "agent_routes": "/data/v1/agent-routes.json",
    "canonical_envelope_index": "/data/v1/proof/canonical-envelope-index.json",
    "daily_archive_index": "/data/v1/archive/index.json",
    "diff_latest": "/data/v1/diff/latest.json",
    "history_index": "/data/v1/history/index.json",
    "latest": "/data/v1/latest.json",
    "legacy_tactical_agent": "/data/agent.json",
    "llms_txt": "/llms.txt",
    "market_archive_index": "/data/market/archive/index.json",
    "market_handoff_index": "/data/v1/market-handoff/index.json",
    "market_signal_ledger": "/data/v1/attestations/market-signal-ledger.json",
    "market_tool_runtime": "/assets/market-tools.mjs",
    "priority_queue": "/data/v1/priority-queue.json",
    "proof_latest": "/data/v1/proof/latest.json",
    "public_safety": "/data/v1/public-safety.json",
    "signal_graph": "/data/v1/graph/latest.jsonld",
    "signal_graph_well_known": "/.well-known/signal-graph.jsonld",
    "signal_item_schema": "/data/v1/schema/signal-item.schema.json",
    "signal_radar_well_known": "/.well-known/signal-radar.json",
    "source_health": "/data/v1/source-health.json",
    "trust_manifest": "/.well-known/rirastafab-trust.json"
  },
  "extensions": {
    "existing_files": [
      {
        "include_in_trust_digest": false,
        "key": "legacy_tactical_agent",
        "managed": false,
        "media_type": "application/json",
        "path": "/data/agent.json",
        "purpose": "Legacy tactical agent payload",
        "required": true
      },
      {
        "include_in_trust_digest": true,
        "key": "latest",
        "managed": false,
        "media_type": "application/json",
        "path": "/data/v1/latest.json",
        "purpose": "Canonical Market Signal Item snapshot",
        "required": true
      },
      {
        "include_in_trust_digest": true,
        "key": "priority_queue",
        "managed": false,
        "media_type": "application/json",
        "path": "/data/v1/priority-queue.json",
        "purpose": "Ranked Market signal review queue",
        "required": true
      },
      {
        "include_in_trust_digest": true,
        "key": "diff_latest",
        "managed": false,
        "media_type": "application/json",
        "path": "/data/v1/diff/latest.json",
        "purpose": "Latest Market snapshot diff",
        "required": true
      },
      {
        "include_in_trust_digest": true,
        "key": "source_health",
        "managed": false,
        "media_type": "application/json",
        "path": "/data/v1/source-health.json",
        "purpose": "Market source freshness and coverage",
        "required": true
      },
      {
        "include_in_trust_digest": true,
        "key": "daily_archive_index",
        "managed": false,
        "media_type": "application/json",
        "path": "/data/v1/archive/index.json",
        "purpose": "Daily snapshot archive index",
        "required": true
      },
      {
        "include_in_trust_digest": true,
        "key": "market_archive_index",
        "managed": false,
        "media_type": "application/json",
        "path": "/data/market/archive/index.json",
        "purpose": "Market signal timeline index",
        "required": true
      },
      {
        "include_in_trust_digest": true,
        "key": "history_index",
        "managed": false,
        "media_type": "application/json",
        "path": "/data/v1/history/index.json",
        "purpose": "Verified compact monthly history index",
        "required": true
      },
      {
        "include_in_trust_digest": true,
        "key": "market_tool_runtime",
        "managed": false,
        "media_type": "text/javascript",
        "path": "/assets/market-tools.mjs",
        "purpose": "Same-origin executable Market Agent Tool runtime",
        "required": true
      },
      {
        "include_in_trust_digest": true,
        "key": "market_handoff_index",
        "managed": false,
        "media_type": "application/json",
        "path": "/data/v1/market-handoff/index.json",
        "purpose": "Static Market Context Handoff Pack index",
        "required": true
      },
      {
        "include_in_trust_digest": false,
        "key": "signal_item_schema",
        "managed": false,
        "media_type": "application/json",
        "path": "/data/v1/schema/signal-item.schema.json",
        "purpose": "Market Signal Item schema",
        "required": true
      },
      {
        "include_in_trust_digest": false,
        "key": "trust_manifest",
        "managed": false,
        "media_type": "application/json",
        "path": "/.well-known/rirastafab-trust.json",
        "purpose": "Market Trust profile and proof endpoint manifest",
        "required": true
      },
      {
        "include_in_trust_digest": false,
        "key": "signal_graph_well_known",
        "managed": false,
        "media_type": "application/ld+json",
        "path": "/.well-known/signal-graph.jsonld",
        "purpose": "Well-known Market signal relationship graph",
        "required": true
      },
      {
        "include_in_trust_digest": false,
        "key": "signal_graph",
        "managed": false,
        "media_type": "application/ld+json",
        "path": "/data/v1/graph/latest.jsonld",
        "purpose": "Latest Market signal relationship graph",
        "required": true
      },
      {
        "include_in_trust_digest": false,
        "key": "proof_latest",
        "managed": false,
        "media_type": "application/json",
        "path": "/data/v1/proof/latest.json",
        "purpose": "Latest hash-only Market proof summary",
        "required": true
      },
      {
        "include_in_trust_digest": false,
        "key": "canonical_envelope_index",
        "managed": false,
        "media_type": "application/json",
        "path": "/data/v1/proof/canonical-envelope-index.json",
        "purpose": "Canonical Trust envelope index",
        "required": true
      },
      {
        "include_in_trust_digest": false,
        "key": "market_signal_ledger",
        "managed": false,
        "media_type": "application/json",
        "path": "/data/v1/attestations/market-signal-ledger.json",
        "purpose": "Generic Market signal attestation ledger",
        "required": true
      }
    ],
    "metadata": {
      "bounded_discovery_ref": "/data/v1/latest.json#/universe/discovery",
      "history_index_ref": "/data/v1/history/index.json",
      "legacy_tactical_agent": "/data/agent.json",
      "market_archives_ref": "/data/market/archive/index.json",
      "market_handoff_ref": "/data/v1/market-handoff/index.json",
      "run_context_ref": "/data/v1/latest.json#/run_context"
    }
  },
  "generated_at": "2026-08-18T21:42:09.000Z",
  "locale": "en",
  "metadata": {
    "bounded_discovery_ref": "/data/v1/latest.json#/universe/discovery",
    "history_index_ref": "/data/v1/history/index.json",
    "legacy_tactical_agent": "/data/agent.json",
    "market_archives_ref": "/data/market/archive/index.json",
    "market_handoff_ref": "/data/v1/market-handoff/index.json",
    "run_context_ref": "/data/v1/latest.json#/run_context"
  },
  "name": "Market Signal Radar",
  "noindex": false,
  "profile": {
    "description": "Read-only market context surface for source-backed cross-market signals.",
    "display_name": "Market Signal Radar",
    "key": "market",
    "variant": "market"
  },
  "public_safety": {
    "content_guard": {
      "blocked_patterns": [
        "\\byou should buy\\b",
        "\\byou should sell\\b",
        "\\bexecute (a )?trade\\b",
        "\\bplace (a )?(market|limit) order\\b",
        "\\bfor your portfolio\\b",
        "\\bguaranteed returns?\\b",
        "自動売買",
        "売買推奨",
        "価格目標"
      ],
      "summary": "Blocks personalized trade instruction wording from public agent feeds.",
      "validation_scope": "generated public files"
    },
    "endpoint": "/data/v1/public-safety.json",
    "public_safe": true,
    "read_only": true
  },
  "publisher": null,
  "read_only": true,
  "recommended_flow": [
    "Read /agent.json for the complete read-only contract.",
    "Read /data/v1/latest.json for the canonical Market snapshot.",
    "Read /.well-known/rirastafab-trust.json for hash-only proof metadata.",
    "Use /data/v1/priority-queue.json and /data/v1/source-health.json for focused review.",
    "Use /data/v1/market-handoff/index.json only as static human or Codex review context."
  ],
  "repository": null,
  "schema_version": "rirastafab-agent-manifest-v0.2",
  "site_id": "market-signal-radar",
  "trust_layer": {
    "canonicalization_profile": "json-sort-keys-no-whitespace-v0",
    "digest_api": "rirastafab-agent-surface-kit#createTrustLayerDigest",
    "digest_profile": "market-static-agent-surface-v0.2",
    "proof_index_url": "https://market.signal-radar.com/data/v1/proof/canonical-envelope-index.json",
    "trust_layer_manifest_url": "https://market.signal-radar.com/.well-known/rirastafab-trust.json"
  },
  "visibility": "public",
  "webmcp": {
    "enabled": true,
    "tools": [
      {
        "annotations": {
          "destructive_hint": false,
          "idempotent_hint": true,
          "open_world_hint": false,
          "read_only_hint": true
        },
        "description": "Search compact signals in the latest or an allowlisted rich daily snapshot.",
        "execution": "client_webmcp",
        "handler": {
          "export": "registerMarketSignalTools",
          "id": "searchSignals",
          "module": "/assets/market-tools.mjs"
        },
        "input_schema": {
          "additionalProperties": false,
          "properties": {
            "cursor": {
              "maxLength": 160,
              "type": "string"
            },
            "date": {
              "pattern": "^(latest|[0-9]{4}-[0-9]{2}-[0-9]{2})$",
              "type": "string"
            },
            "discovered": {
              "type": "boolean"
            },
            "lanes": {
              "items": {
                "enum": [
                  "change",
                  "pressure",
                  "event",
                  "cross_market",
                  "intraday"
                ]
              },
              "type": "array",
              "uniqueItems": true
            },
            "limit": {
              "maximum": 50,
              "minimum": 1,
              "type": "integer"
            },
            "markets": {
              "items": {
                "maxLength": 40,
                "minLength": 1,
                "type": "string"
              },
              "type": "array",
              "uniqueItems": true
            },
            "min_confidence": {
              "maximum": 1,
              "minimum": 0,
              "type": "number"
            },
            "min_signal_strength": {
              "maximum": 1,
              "minimum": 0,
              "type": "number"
            },
            "query": {
              "maxLength": 120,
              "type": "string"
            }
          },
          "type": "object"
        },
        "name": "market_signal_search",
        "read_only": true,
        "result_schema": {
          "$defs": {
            "failure": {
              "additionalProperties": false,
              "properties": {
                "error": {
                  "additionalProperties": false,
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "retryable": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "code",
                    "message",
                    "retryable"
                  ],
                  "type": "object"
                },
                "generated_at": {
                  "type": "string"
                },
                "ok": {
                  "const": false
                },
                "schema_version": {
                  "const": "market-tool-result-v1"
                },
                "tool": {
                  "const": "market_signal_search"
                }
              },
              "required": [
                "schema_version",
                "tool",
                "ok",
                "generated_at",
                "error"
              ],
              "type": "object"
            },
            "meta": {
              "additionalProperties": false,
              "properties": {
                "next_cursor": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "returned": {
                  "type": "integer"
                },
                "total": {
                  "type": "integer"
                }
              },
              "required": [
                "returned",
                "total",
                "next_cursor"
              ],
              "type": "object"
            },
            "source": {
              "additionalProperties": false,
              "properties": {
                "path": {
                  "type": "string"
                },
                "sha256": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "snapshot_date": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "path",
                "snapshot_date",
                "sha256"
              ],
              "type": "object"
            },
            "success": {
              "additionalProperties": false,
              "properties": {
                "data": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "additionalProperties": true,
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                },
                "generated_at": {
                  "type": "string"
                },
                "meta": {
                  "$ref": "#/$defs/meta"
                },
                "ok": {
                  "const": true
                },
                "schema_version": {
                  "const": "market-tool-result-v1"
                },
                "source": {
                  "$ref": "#/$defs/source"
                },
                "tool": {
                  "const": "market_signal_search"
                }
              },
              "required": [
                "schema_version",
                "tool",
                "ok",
                "generated_at",
                "source",
                "meta",
                "data"
              ],
              "type": "object"
            }
          },
          "oneOf": [
            {
              "$ref": "#/$defs/success"
            },
            {
              "$ref": "#/$defs/failure"
            }
          ]
        },
        "version": "1.0.0"
      },
      {
        "annotations": {
          "destructive_hint": false,
          "idempotent_hint": true,
          "open_world_hint": false,
          "read_only_hint": true
        },
        "description": "Get one signal by exact id from the latest or an allowlisted rich daily snapshot.",
        "execution": "client_webmcp",
        "handler": {
          "export": "registerMarketSignalTools",
          "id": "getSignalItem",
          "module": "/assets/market-tools.mjs"
        },
        "input_schema": {
          "additionalProperties": false,
          "properties": {
            "date": {
              "pattern": "^(latest|[0-9]{4}-[0-9]{2}-[0-9]{2})$",
              "type": "string"
            },
            "include_timeline_summary": {
              "type": "boolean"
            },
            "signal_id": {
              "maxLength": 160,
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "signal_id"
          ],
          "type": "object"
        },
        "name": "market_signal_get_item",
        "read_only": true,
        "result_schema": {
          "$defs": {
            "failure": {
              "additionalProperties": false,
              "properties": {
                "error": {
                  "additionalProperties": false,
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "retryable": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "code",
                    "message",
                    "retryable"
                  ],
                  "type": "object"
                },
                "generated_at": {
                  "type": "string"
                },
                "ok": {
                  "const": false
                },
                "schema_version": {
                  "const": "market-tool-result-v1"
                },
                "tool": {
                  "const": "market_signal_get_item"
                }
              },
              "required": [
                "schema_version",
                "tool",
                "ok",
                "generated_at",
                "error"
              ],
              "type": "object"
            },
            "meta": {
              "additionalProperties": false,
              "properties": {
                "next_cursor": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "returned": {
                  "type": "integer"
                },
                "total": {
                  "type": "integer"
                }
              },
              "required": [
                "returned",
                "total",
                "next_cursor"
              ],
              "type": "object"
            },
            "source": {
              "additionalProperties": false,
              "properties": {
                "path": {
                  "type": "string"
                },
                "sha256": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "snapshot_date": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "path",
                "snapshot_date",
                "sha256"
              ],
              "type": "object"
            },
            "success": {
              "additionalProperties": false,
              "properties": {
                "data": {
                  "additionalProperties": false,
                  "properties": {
                    "item": {
                      "additionalProperties": true,
                      "type": "object"
                    },
                    "timeline_summary": {
                      "additionalProperties": true,
                      "type": [
                        "object",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "item",
                    "timeline_summary"
                  ],
                  "type": "object"
                },
                "generated_at": {
                  "type": "string"
                },
                "meta": {
                  "$ref": "#/$defs/meta"
                },
                "ok": {
                  "const": true
                },
                "schema_version": {
                  "const": "market-tool-result-v1"
                },
                "source": {
                  "$ref": "#/$defs/source"
                },
                "tool": {
                  "const": "market_signal_get_item"
                }
              },
              "required": [
                "schema_version",
                "tool",
                "ok",
                "generated_at",
                "source",
                "meta",
                "data"
              ],
              "type": "object"
            }
          },
          "oneOf": [
            {
              "$ref": "#/$defs/success"
            },
            {
              "$ref": "#/$defs/failure"
            }
          ]
        },
        "version": "1.0.0"
      },
      {
        "annotations": {
          "destructive_hint": false,
          "idempotent_hint": true,
          "open_world_hint": false,
          "read_only_hint": true
        },
        "description": "List the preserved Priority Queue for the latest or an allowlisted rich date.",
        "execution": "client_webmcp",
        "handler": {
          "export": "registerMarketSignalTools",
          "id": "listPriority",
          "module": "/assets/market-tools.mjs"
        },
        "input_schema": {
          "additionalProperties": false,
          "properties": {
            "cursor": {
              "maxLength": 160,
              "type": "string"
            },
            "date": {
              "pattern": "^(latest|[0-9]{4}-[0-9]{2}-[0-9]{2})$",
              "type": "string"
            },
            "lane": {
              "enum": [
                "change",
                "pressure",
                "event",
                "cross_market",
                "intraday"
              ]
            },
            "limit": {
              "maximum": 20,
              "minimum": 1,
              "type": "integer"
            }
          },
          "type": "object"
        },
        "name": "market_signal_list_priority",
        "read_only": true,
        "result_schema": {
          "$defs": {
            "failure": {
              "additionalProperties": false,
              "properties": {
                "error": {
                  "additionalProperties": false,
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "retryable": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "code",
                    "message",
                    "retryable"
                  ],
                  "type": "object"
                },
                "generated_at": {
                  "type": "string"
                },
                "ok": {
                  "const": false
                },
                "schema_version": {
                  "const": "market-tool-result-v1"
                },
                "tool": {
                  "const": "market_signal_list_priority"
                }
              },
              "required": [
                "schema_version",
                "tool",
                "ok",
                "generated_at",
                "error"
              ],
              "type": "object"
            },
            "meta": {
              "additionalProperties": false,
              "properties": {
                "next_cursor": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "returned": {
                  "type": "integer"
                },
                "total": {
                  "type": "integer"
                }
              },
              "required": [
                "returned",
                "total",
                "next_cursor"
              ],
              "type": "object"
            },
            "source": {
              "additionalProperties": false,
              "properties": {
                "path": {
                  "type": "string"
                },
                "sha256": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "snapshot_date": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "path",
                "snapshot_date",
                "sha256"
              ],
              "type": "object"
            },
            "success": {
              "additionalProperties": false,
              "properties": {
                "data": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "additionalProperties": true,
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                },
                "generated_at": {
                  "type": "string"
                },
                "meta": {
                  "$ref": "#/$defs/meta"
                },
                "ok": {
                  "const": true
                },
                "schema_version": {
                  "const": "market-tool-result-v1"
                },
                "source": {
                  "$ref": "#/$defs/source"
                },
                "tool": {
                  "const": "market_signal_list_priority"
                }
              },
              "required": [
                "schema_version",
                "tool",
                "ok",
                "generated_at",
                "source",
                "meta",
                "data"
              ],
              "type": "object"
            }
          },
          "oneOf": [
            {
              "$ref": "#/$defs/success"
            },
            {
              "$ref": "#/$defs/failure"
            }
          ]
        },
        "version": "1.0.0"
      },
      {
        "annotations": {
          "destructive_hint": false,
          "idempotent_hint": true,
          "open_world_hint": false,
          "read_only_hint": true
        },
        "description": "Read and integrity-check the diff that produced the latest or an allowlisted rich snapshot.",
        "execution": "client_webmcp",
        "handler": {
          "export": "registerMarketSignalTools",
          "id": "getDiff",
          "module": "/assets/market-tools.mjs"
        },
        "input_schema": {
          "additionalProperties": false,
          "properties": {
            "cursor": {
              "maxLength": 160,
              "type": "string"
            },
            "date": {
              "pattern": "^(latest|[0-9]{4}-[0-9]{2}-[0-9]{2})$",
              "type": "string"
            },
            "limit": {
              "maximum": 50,
              "minimum": 1,
              "type": "integer"
            },
            "signal_id": {
              "maxLength": 160,
              "minLength": 1,
              "type": "string"
            }
          },
          "type": "object"
        },
        "name": "market_signal_get_diff",
        "read_only": true,
        "result_schema": {
          "$defs": {
            "failure": {
              "additionalProperties": false,
              "properties": {
                "error": {
                  "additionalProperties": false,
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "retryable": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "code",
                    "message",
                    "retryable"
                  ],
                  "type": "object"
                },
                "generated_at": {
                  "type": "string"
                },
                "ok": {
                  "const": false
                },
                "schema_version": {
                  "const": "market-tool-result-v1"
                },
                "tool": {
                  "const": "market_signal_get_diff"
                }
              },
              "required": [
                "schema_version",
                "tool",
                "ok",
                "generated_at",
                "error"
              ],
              "type": "object"
            },
            "meta": {
              "additionalProperties": false,
              "properties": {
                "next_cursor": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "returned": {
                  "type": "integer"
                },
                "total": {
                  "type": "integer"
                }
              },
              "required": [
                "returned",
                "total",
                "next_cursor"
              ],
              "type": "object"
            },
            "source": {
              "additionalProperties": false,
              "properties": {
                "path": {
                  "type": "string"
                },
                "sha256": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "snapshot_date": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "path",
                "snapshot_date",
                "sha256"
              ],
              "type": "object"
            },
            "success": {
              "additionalProperties": false,
              "properties": {
                "data": {
                  "additionalProperties": false,
                  "properties": {
                    "added": {
                      "type": "array"
                    },
                    "changed": {
                      "type": "array"
                    },
                    "removed": {
                      "type": "array"
                    }
                  },
                  "required": [
                    "added",
                    "changed",
                    "removed"
                  ],
                  "type": "object"
                },
                "generated_at": {
                  "type": "string"
                },
                "meta": {
                  "$ref": "#/$defs/meta"
                },
                "ok": {
                  "const": true
                },
                "schema_version": {
                  "const": "market-tool-result-v1"
                },
                "source": {
                  "$ref": "#/$defs/source"
                },
                "tool": {
                  "const": "market_signal_get_diff"
                }
              },
              "required": [
                "schema_version",
                "tool",
                "ok",
                "generated_at",
                "source",
                "meta",
                "data"
              ],
              "type": "object"
            }
          },
          "oneOf": [
            {
              "$ref": "#/$defs/success"
            },
            {
              "$ref": "#/$defs/failure"
            }
          ]
        },
        "version": "1.0.0"
      },
      {
        "annotations": {
          "destructive_hint": false,
          "idempotent_hint": true,
          "open_world_hint": false,
          "read_only_hint": true
        },
        "description": "Read one latest-only Handoff after checking its index SHA-256.",
        "execution": "client_webmcp",
        "handler": {
          "export": "registerMarketSignalTools",
          "id": "getHandoff",
          "module": "/assets/market-tools.mjs"
        },
        "input_schema": {
          "additionalProperties": false,
          "oneOf": [
            {
              "properties": {
                "signal_id": true
              },
              "required": [
                "signal_id"
              ]
            },
            {
              "properties": {
                "rank": true
              },
              "required": [
                "rank"
              ]
            }
          ],
          "properties": {
            "rank": {
              "maximum": 5,
              "minimum": 1,
              "type": "integer"
            },
            "signal_id": {
              "maxLength": 160,
              "minLength": 1,
              "type": "string"
            }
          },
          "type": "object"
        },
        "name": "market_signal_get_handoff",
        "read_only": true,
        "result_schema": {
          "$defs": {
            "failure": {
              "additionalProperties": false,
              "properties": {
                "error": {
                  "additionalProperties": false,
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "retryable": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "code",
                    "message",
                    "retryable"
                  ],
                  "type": "object"
                },
                "generated_at": {
                  "type": "string"
                },
                "ok": {
                  "const": false
                },
                "schema_version": {
                  "const": "market-tool-result-v1"
                },
                "tool": {
                  "const": "market_signal_get_handoff"
                }
              },
              "required": [
                "schema_version",
                "tool",
                "ok",
                "generated_at",
                "error"
              ],
              "type": "object"
            },
            "meta": {
              "additionalProperties": false,
              "properties": {
                "next_cursor": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "returned": {
                  "type": "integer"
                },
                "total": {
                  "type": "integer"
                }
              },
              "required": [
                "returned",
                "total",
                "next_cursor"
              ],
              "type": "object"
            },
            "source": {
              "additionalProperties": false,
              "properties": {
                "path": {
                  "type": "string"
                },
                "sha256": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "snapshot_date": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "path",
                "snapshot_date",
                "sha256"
              ],
              "type": "object"
            },
            "success": {
              "additionalProperties": false,
              "properties": {
                "data": {
                  "additionalProperties": false,
                  "properties": {
                    "handoff": {
                      "additionalProperties": true,
                      "type": "object"
                    }
                  },
                  "required": [
                    "handoff"
                  ],
                  "type": "object"
                },
                "generated_at": {
                  "type": "string"
                },
                "meta": {
                  "$ref": "#/$defs/meta"
                },
                "ok": {
                  "const": true
                },
                "schema_version": {
                  "const": "market-tool-result-v1"
                },
                "source": {
                  "$ref": "#/$defs/source"
                },
                "tool": {
                  "const": "market_signal_get_handoff"
                }
              },
              "required": [
                "schema_version",
                "tool",
                "ok",
                "generated_at",
                "source",
                "meta",
                "data"
              ],
              "type": "object"
            }
          },
          "oneOf": [
            {
              "$ref": "#/$defs/success"
            },
            {
              "$ref": "#/$defs/failure"
            }
          ]
        },
        "version": "1.0.0"
      },
      {
        "annotations": {
          "destructive_hint": false,
          "idempotent_hint": true,
          "open_world_hint": false,
          "read_only_hint": true
        },
        "description": "List rich or compact snapshots and query compact signal observations from verified monthly segments.",
        "execution": "client_webmcp",
        "handler": {
          "export": "registerMarketSignalTools",
          "id": "queryHistory",
          "module": "/assets/market-tools.mjs"
        },
        "input_schema": {
          "oneOf": [
            {
              "additionalProperties": false,
              "properties": {
                "cursor": {
                  "maxLength": 160,
                  "type": "string"
                },
                "detail_level": {
                  "enum": [
                    "all",
                    "rich",
                    "compact"
                  ]
                },
                "from_date": {
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
                  "type": "string"
                },
                "limit": {
                  "maximum": 120,
                  "minimum": 1,
                  "type": "integer"
                },
                "mode": {
                  "const": "list_snapshots"
                },
                "to_date": {
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
                  "type": "string"
                }
              },
              "required": [
                "mode"
              ],
              "type": "object"
            },
            {
              "additionalProperties": false,
              "properties": {
                "cursor": {
                  "maxLength": 160,
                  "type": "string"
                },
                "from_date": {
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
                  "type": "string"
                },
                "limit": {
                  "maximum": 120,
                  "minimum": 1,
                  "type": "integer"
                },
                "mode": {
                  "const": "signal_observations"
                },
                "signal_id": {
                  "maxLength": 160,
                  "minLength": 1,
                  "type": "string"
                },
                "to_date": {
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
                  "type": "string"
                }
              },
              "required": [
                "mode",
                "signal_id"
              ],
              "type": "object"
            }
          ]
        },
        "name": "market_history_query",
        "read_only": true,
        "result_schema": {
          "$defs": {
            "failure": {
              "additionalProperties": false,
              "properties": {
                "error": {
                  "additionalProperties": false,
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "retryable": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "code",
                    "message",
                    "retryable"
                  ],
                  "type": "object"
                },
                "generated_at": {
                  "type": "string"
                },
                "ok": {
                  "const": false
                },
                "schema_version": {
                  "const": "market-tool-result-v1"
                },
                "tool": {
                  "const": "market_history_query"
                }
              },
              "required": [
                "schema_version",
                "tool",
                "ok",
                "generated_at",
                "error"
              ],
              "type": "object"
            },
            "meta": {
              "additionalProperties": false,
              "properties": {
                "next_cursor": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "returned": {
                  "type": "integer"
                },
                "total": {
                  "type": "integer"
                }
              },
              "required": [
                "returned",
                "total",
                "next_cursor"
              ],
              "type": "object"
            },
            "source": {
              "additionalProperties": false,
              "properties": {
                "path": {
                  "type": "string"
                },
                "sha256": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "snapshot_date": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "path",
                "snapshot_date",
                "sha256"
              ],
              "type": "object"
            },
            "success": {
              "additionalProperties": false,
              "properties": {
                "data": {
                  "additionalProperties": false,
                  "properties": {
                    "mode": {
                      "enum": [
                        "list_snapshots",
                        "signal_observations"
                      ]
                    },
                    "observations": {
                      "items": {
                        "additionalProperties": true,
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "snapshots": {
                      "items": {
                        "additionalProperties": true,
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "mode",
                    "snapshots",
                    "observations"
                  ],
                  "type": "object"
                },
                "generated_at": {
                  "type": "string"
                },
                "meta": {
                  "$ref": "#/$defs/meta"
                },
                "ok": {
                  "const": true
                },
                "schema_version": {
                  "const": "market-tool-result-v1"
                },
                "source": {
                  "$ref": "#/$defs/source"
                },
                "tool": {
                  "const": "market_history_query"
                }
              },
              "required": [
                "schema_version",
                "tool",
                "ok",
                "generated_at",
                "source",
                "meta",
                "data"
              ],
              "type": "object"
            }
          },
          "oneOf": [
            {
              "$ref": "#/$defs/success"
            },
            {
              "$ref": "#/$defs/failure"
            }
          ]
        },
        "version": "1.0.0"
      }
    ]
  }
}
