{
  "canonical_url": "https://market.signal-radar.com/",
  "endpoints": [
    {
      "key": "agent_gateway",
      "managed": true,
      "media_type": "application/json",
      "path": "/.well-known/agent-gateway.json",
      "purpose": "Same-origin read-only Agent Web Gateway manifest.",
      "required": true,
      "schema": "agent-gateway.schema.json",
      "url": "https://market.signal-radar.com/.well-known/agent-gateway.json"
    },
    {
      "key": "agent_policy",
      "managed": true,
      "media_type": "application/json",
      "path": "/.well-known/agent-policy.json",
      "purpose": "Read-only policy and runtime boundaries.",
      "required": true,
      "schema": "agent-policy.schema.json",
      "url": "https://market.signal-radar.com/.well-known/agent-policy.json"
    },
    {
      "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,
      "schema": null,
      "url": "https://market.signal-radar.com/.well-known/rirastafab-trust.json"
    },
    {
      "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,
      "schema": null,
      "url": "https://market.signal-radar.com/.well-known/signal-graph.jsonld"
    },
    {
      "key": "signal_radar_well_known",
      "managed": true,
      "media_type": "application/json",
      "path": "/.well-known/signal-radar.json",
      "purpose": "Signal Radar well-known discovery metadata.",
      "required": true,
      "schema": "signal-radar-well-known.schema.json",
      "url": "https://market.signal-radar.com/.well-known/signal-radar.json"
    },
    {
      "key": "agent_manifest",
      "managed": true,
      "media_type": "application/json",
      "path": "/agent.json",
      "purpose": "Top-level agent-readable manifest and endpoint map.",
      "required": true,
      "schema": "agent-manifest.schema.json",
      "url": "https://market.signal-radar.com/agent.json"
    },
    {
      "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,
      "schema": null,
      "url": "https://market.signal-radar.com/assets/market-tools.mjs"
    },
    {
      "key": "legacy_tactical_agent",
      "managed": false,
      "media_type": "application/json",
      "path": "/data/agent.json",
      "purpose": "Legacy tactical agent payload",
      "required": true,
      "schema": null,
      "url": "https://market.signal-radar.com/data/agent.json"
    },
    {
      "key": "market_archive_index",
      "managed": false,
      "media_type": "application/json",
      "path": "/data/market/archive/index.json",
      "purpose": "Market signal timeline index",
      "required": true,
      "schema": null,
      "url": "https://market.signal-radar.com/data/market/archive/index.json"
    },
    {
      "key": "agent_index",
      "managed": true,
      "media_type": "application/json",
      "path": "/data/v1/agent-index.json",
      "purpose": "Machine-readable endpoint index.",
      "required": true,
      "schema": "agent-index.schema.json",
      "url": "https://market.signal-radar.com/data/v1/agent-index.json"
    },
    {
      "key": "agent_routes",
      "managed": true,
      "media_type": "application/json",
      "path": "/data/v1/agent-routes.json",
      "purpose": "Agent-readable page route index for Agent Web Gateway.",
      "required": true,
      "schema": "agent-routes.schema.json",
      "url": "https://market.signal-radar.com/data/v1/agent-routes.json"
    },
    {
      "key": "daily_archive_index",
      "managed": false,
      "media_type": "application/json",
      "path": "/data/v1/archive/index.json",
      "purpose": "Daily snapshot archive index",
      "required": true,
      "schema": null,
      "url": "https://market.signal-radar.com/data/v1/archive/index.json"
    },
    {
      "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,
      "schema": null,
      "url": "https://market.signal-radar.com/data/v1/attestations/market-signal-ledger.json"
    },
    {
      "key": "diff_latest",
      "managed": false,
      "media_type": "application/json",
      "path": "/data/v1/diff/latest.json",
      "purpose": "Latest Market snapshot diff",
      "required": true,
      "schema": "diff-latest.schema.json",
      "url": "https://market.signal-radar.com/data/v1/diff/latest.json"
    },
    {
      "key": "signal_graph",
      "managed": false,
      "media_type": "application/ld+json",
      "path": "/data/v1/graph/latest.jsonld",
      "purpose": "Latest Market signal relationship graph",
      "required": true,
      "schema": null,
      "url": "https://market.signal-radar.com/data/v1/graph/latest.jsonld"
    },
    {
      "key": "history_index",
      "managed": false,
      "media_type": "application/json",
      "path": "/data/v1/history/index.json",
      "purpose": "Verified compact monthly history index",
      "required": true,
      "schema": null,
      "url": "https://market.signal-radar.com/data/v1/history/index.json"
    },
    {
      "key": "latest",
      "managed": false,
      "media_type": "application/json",
      "path": "/data/v1/latest.json",
      "purpose": "Canonical Market Signal Item snapshot",
      "required": true,
      "schema": null,
      "url": "https://market.signal-radar.com/data/v1/latest.json"
    },
    {
      "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,
      "schema": null,
      "url": "https://market.signal-radar.com/data/v1/market-handoff/index.json"
    },
    {
      "key": "priority_queue",
      "managed": false,
      "media_type": "application/json",
      "path": "/data/v1/priority-queue.json",
      "purpose": "Ranked Market signal review queue",
      "required": true,
      "schema": "priority-queue.schema.json",
      "url": "https://market.signal-radar.com/data/v1/priority-queue.json"
    },
    {
      "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,
      "schema": null,
      "url": "https://market.signal-radar.com/data/v1/proof/canonical-envelope-index.json"
    },
    {
      "key": "proof_latest",
      "managed": false,
      "media_type": "application/json",
      "path": "/data/v1/proof/latest.json",
      "purpose": "Latest hash-only Market proof summary",
      "required": true,
      "schema": null,
      "url": "https://market.signal-radar.com/data/v1/proof/latest.json"
    },
    {
      "key": "public_safety",
      "managed": true,
      "media_type": "application/json",
      "path": "/data/v1/public-safety.json",
      "purpose": "Public-safe use and content guard metadata.",
      "required": true,
      "schema": "public-safety.schema.json",
      "url": "https://market.signal-radar.com/data/v1/public-safety.json"
    },
    {
      "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,
      "schema": null,
      "url": "https://market.signal-radar.com/data/v1/schema/signal-item.schema.json"
    },
    {
      "key": "source_health",
      "managed": false,
      "media_type": "application/json",
      "path": "/data/v1/source-health.json",
      "purpose": "Market source freshness and coverage",
      "required": true,
      "schema": "source-health.schema.json",
      "url": "https://market.signal-radar.com/data/v1/source-health.json"
    },
    {
      "key": "llms_txt",
      "managed": true,
      "media_type": "text/plain",
      "path": "/llms.txt",
      "purpose": "Plain text discovery summary for AI crawlers and humans.",
      "required": true,
      "schema": null,
      "url": "https://market.signal-radar.com/llms.txt"
    }
  ],
  "first_read": "/.well-known/signal-radar.json",
  "gateway": {
    "canonical_data_first": true,
    "manifest": "/.well-known/agent-gateway.json",
    "route_index": "/data/v1/agent-routes.json"
  },
  "generated_at": "2026-08-18T21:42:09.000Z",
  "name": "Market Signal Radar",
  "profile": "market",
  "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."
  ],
  "schema_version": "rirastafab-agent-index-v0.1",
  "site_id": "market-signal-radar",
  "tool_hints": [
    {
      "endpoint": "/assets/market-tools.mjs",
      "name": "market_signal_search",
      "purpose": "Search compact signals in the latest or an allowlisted rich daily snapshot.",
      "read_only": true
    },
    {
      "endpoint": "/assets/market-tools.mjs",
      "name": "market_signal_get_item",
      "purpose": "Get one signal by exact id from the latest or an allowlisted rich daily snapshot.",
      "read_only": true
    },
    {
      "endpoint": "/assets/market-tools.mjs",
      "name": "market_signal_list_priority",
      "purpose": "List the preserved Priority Queue for the latest or an allowlisted rich date.",
      "read_only": true
    },
    {
      "endpoint": "/assets/market-tools.mjs",
      "name": "market_signal_get_diff",
      "purpose": "Read and integrity-check the diff that produced the latest or an allowlisted rich snapshot.",
      "read_only": true
    },
    {
      "endpoint": "/assets/market-tools.mjs",
      "name": "market_signal_get_handoff",
      "purpose": "Read one latest-only Handoff after checking its index SHA-256.",
      "read_only": true
    },
    {
      "endpoint": "/assets/market-tools.mjs",
      "name": "market_history_query",
      "purpose": "List rich or compact snapshots and query compact signal observations from verified monthly segments.",
      "read_only": 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"
    }
  ]
}
