{
  "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": "mcp.ava.fund",
    "site": "ava.fund",
    "addresses": [
      {
        "address": "142.251.16.121",
        "endpoints": 59,
        "shared_infrastructure": true,
        "network": {
          "asn": 15169,
          "name": "GOOGLE - Google LLC",
          "prefix": "142.251.16.0/24",
          "country": "US"
        }
      },
      {
        "address": "2607:f8b0:4004:c21::79",
        "endpoints": 7,
        "shared_infrastructure": false,
        "network": {
          "asn": 15169,
          "name": "GOOGLE - Google LLC",
          "prefix": "2607:f8b0:4004::/48",
          "country": "US"
        }
      }
    ],
    "addresses_recorded": true,
    "address_history": [
      {
        "addresses": [
          "142.251.16.121",
          "2607:f8b0:4004:c21::79"
        ],
        "first_seen": "2026-11-23T17:56:13.870Z",
        "last_seen": "2026-11-23T17:56:13.870Z",
        "checks": 1
      },
      {
        "addresses": [
          "142.251.16.121",
          "2607:f8b0:4004:c1f::79"
        ],
        "first_seen": "2026-11-22T17:55:04.388Z",
        "last_seen": "2026-11-22T17:55:04.388Z",
        "checks": 1
      },
      {
        "addresses": [
          "172.253.63.121",
          "2607:f8b0:4004:c17::79"
        ],
        "first_seen": "2026-11-21T13:01:02.972Z",
        "last_seen": "2026-11-21T13:01:02.972Z",
        "checks": 1
      }
    ],
    "hosting": [
      {
        "value": "Google Cloud",
        "evidence": "Server header \"Google Frontend\""
      }
    ],
    "software": [],
    "server_info": {
      "name": "ava-advisor",
      "version": "1.30.0",
      "protocol_version": "2025-06-18"
    },
    "headers": {
      "server": "Google Frontend"
    },
    "auth": null
  },
  "related": {
    "same_address": {
      "total": 64,
      "sample": [
        {
          "id": "957",
          "url": "https://auth-token-mcp-traced-service.getvda.ai/mcp",
          "server_name": "ai.getvda/auth-token-mcp-traced-service",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T04:56:00.755Z"
        },
        {
          "id": "958",
          "url": "https://authenticated-llm-agent.getvda.ai/mcp",
          "server_name": "ai.getvda/authenticated-llm-agent",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T04:57:02.232Z"
        },
        {
          "id": "965",
          "url": "https://authenticated-mcp-agent-openai.getvda.ai/mcp",
          "server_name": "ai.getvda/authenticated-mcp-agent-openai",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T05:04:00.643Z"
        },
        {
          "id": "985",
          "url": "https://kafka-minio-redis-stack-generator.getvda.ai/mcp",
          "server_name": "ai.getvda/kafka-minio-redis-stack-generator",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T07:02:01.328Z"
        },
        {
          "id": "992",
          "url": "https://llm-orchestration-agent-2-df5979.getvda.ai/mcp",
          "server_name": "ai.getvda/llm-orchestration-agent-2-df5979",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T07:09:01.909Z"
        },
        {
          "id": "993",
          "url": "https://llm-orchestration-agent-cryptography.getvda.ai/mcp",
          "server_name": "ai.getvda/llm-orchestration-agent-cryptography",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T07:10:09.198Z"
        },
        {
          "id": "994",
          "url": "https://llm-orchestration-agent-d0a1a1.getvda.ai/mcp",
          "server_name": "ai.getvda/llm-orchestration-agent-d0a1a1",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T07:11:01.038Z"
        },
        {
          "id": "1000",
          "url": "https://llm-orchestration-agent-langgraph.getvda.ai/mcp",
          "server_name": "ai.getvda/llm-orchestration-agent-langgraph",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T07:17:01.134Z"
        },
        {
          "id": "1004",
          "url": "https://llm-orchestration-agent-opentelemetry-api.getvda.ai/mcp",
          "server_name": "ai.getvda/llm-orchestration-agent-opentelemetry-api",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T07:21:01.644Z"
        },
        {
          "id": "1011",
          "url": "https://redis-minio-stack-generator-minio-minio.getvda.ai/mcp",
          "server_name": "ai.getvda/minio-and-redis-storage-stack",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T07:28:05.679Z"
        },
        {
          "id": "1013",
          "url": "https://instructor-litellm-6af681.getvda.ai/mcp",
          "server_name": "ai.getvda/multi-provider-schema-output-agent",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T07:30:04.107Z"
        },
        {
          "id": "1015",
          "url": "https://mysql-redis-compose-generator-adminer.getvda.ai/mcp",
          "server_name": "ai.getvda/mysql-redis-compose-generator-adminer",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T07:32:07.279Z"
        },
        {
          "id": "1016",
          "url": "https://mysql-redis-compose-generator-nginx.getvda.ai/mcp",
          "server_name": "ai.getvda/mysql-redis-compose-generator-nginx",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T07:33:00.814Z"
        },
        {
          "id": "1018",
          "url": "https://nginx-redis-stack-generator.getvda.ai/mcp",
          "server_name": "ai.getvda/nginx-redis-stack-generator",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T07:35:02.648Z"
        },
        {
          "id": "1026",
          "url": "https://postgres-minio-stack-generator.getvda.ai/mcp",
          "server_name": "ai.getvda/postgres-minio-stack-generator",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T07:43:02.053Z"
        },
        {
          "id": "1040",
          "url": "https://structured-output-agent-openai.getvda.ai/mcp",
          "server_name": "ai.getvda/structured-output-agent-openai",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T07:57:00.902Z"
        },
        {
          "id": "1042",
          "url": "https://structured-output-mcp-agent-cryptography.getvda.ai/mcp",
          "server_name": "ai.getvda/structured-output-mcp-agent-cryptography",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T07:59:01.223Z"
        },
        {
          "id": "1045",
          "url": "https://structured-output-mcp-traced-agent.getvda.ai/mcp",
          "server_name": "ai.getvda/structured-output-mcp-traced-agent",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T08:02:01.814Z"
        },
        {
          "id": "2726",
          "url": "https://mcp.ulisten.ai/",
          "server_name": "ai.ulisten/podcast-search",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T06:54:02.324Z"
        },
        {
          "id": "3712",
          "url": "https://mcp.offendersearch.app/mcp",
          "server_name": "app.offendersearch/offendersearch",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T07:06:00.918Z"
        }
      ]
    },
    "same_site": {
      "total": 0,
      "sample": []
    },
    "same_tool_list": {
      "total": 0,
      "sample": []
    },
    "same_publisher": {
      "publisher": "fund.ava",
      "total": 0,
      "sample": []
    },
    "same_repository": {
      "repository_url": "https://github.com/ava-fund/ava-advisor-mcp",
      "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": "22026",
    "server_name": "fund.ava/ava-advisor",
    "url": "https://mcp.ava.fund/mcp",
    "host": "mcp.ava.fund",
    "transport": "streamable-http",
    "last_checked_at": "2026-11-23T17:56:13.870Z",
    "last_state": "listed",
    "last_detail": null,
    "consecutive_failures": 0,
    "current_sha": "2145fb4058660f1cd6a582d49589bf2fa248512561cdcb220b2031d9a6e538bb",
    "first_listed_at": "2026-11-21T13:01:02.972Z",
    "created_at": "2026-11-21T07:45:10.353Z",
    "resolved_addresses": [
      "142.251.16.121",
      "2607:f8b0:4004:c21::79"
    ]
  },
  "server": {
    "name": "fund.ava/ava-advisor",
    "title": "Ava Advisor",
    "description": "Your AI watches the markets so you can live your life. Financial intelligence for everybody.",
    "version": "1.0.1",
    "registry_status": "active",
    "repository_url": "https://github.com/ava-fund/ava-advisor-mcp",
    "website_url": "https://ava.fund",
    "published_at": "2026-11-05T16:56:30.428Z",
    "updated_at": "2026-11-05T16:56:30.428Z",
    "first_seen": "2026-11-21T07:45:09.665Z"
  },
  "other_endpoints": [],
  "intel": {
    "capabilities": [],
    "evm_addresses": [],
    "chains": [],
    "tokens": [],
    "computed_at": "2026-11-22T15:20:16.648Z"
  },
  "operator": {
    "key": "ava.fund",
    "name": "ava.fund",
    "platform": false,
    "marketplace": false
  },
  "needs_sign_in": false,
  "reachability": {
    "window_days": 30,
    "checks": 3,
    "answered": 3,
    "answered_percent": 100,
    "avg_listing_latency_ms": 326,
    "first_check_in_window": "2026-11-21T13:01:02.972Z",
    "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"
      },
      {
        "day": "2026-11-23",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      }
    ]
  },
  "tool_list": {
    "sha256": "2145fb4058660f1cd6a582d49589bf2fa248512561cdcb220b2031d9a6e538bb",
    "tools": 37,
    "resources": 6,
    "prompts": 0,
    "first_seen": "2026-11-21T13:01:03.274Z",
    "tool_names": [
      "theme_summary",
      "brief",
      "search_news",
      "news_feed",
      "stock_impact",
      "options_sentiment",
      "options_scan",
      "theme_players",
      "private_movers",
      "relationships",
      "list_themes",
      "list_portfolios",
      "portfolio_context",
      "write_note",
      "query_notes",
      "get_note",
      "list_playlists",
      "create_playlist",
      "add_to_playlist",
      "remove_from_playlist",
      "stock_prices",
      "latest_quote",
      "etf_profile",
      "price_series",
      "stock_prices_batch",
      "positioning",
      "cot_extremes",
      "financials",
      "screen_unified",
      "screen_stocks",
      "screen_dividends",
      "trade",
      "fred_series",
      "wb_series",
      "suggest_cta",
      "edit_screen",
      "pulse"
    ],
    "declared": {
      "tools": [
        {
          "name": "theme_summary",
          "title": "Theme Summary",
          "description": "Pre-composed analyst brief for a megatrend theme: pulse, winners/losers, top entities, aspect\n    heatmap, ripple. `theme` = a theme name or id/slug; `window` = 7d/30d/90d/1y/mtd/qtd/ytd.",
          "inputSchema": {
            "type": "object",
            "title": "theme_summaryArguments",
            "required": [
              "theme"
            ],
            "properties": {
              "theme": {
                "type": "string",
                "title": "Theme",
                "description": "A megatrend theme — name/slug (resolved for you) or node id."
              },
              "window": {
                "type": "string",
                "title": "Window",
                "default": "30d",
                "description": "News-recency window: `7d`/`30d`/`90d`/`180d`/`1y` or `mtd`/`qtd`/`ytd`. Omit → a sensible default. (Price history is unaffected — this only scopes the NEWS lens.)"
              },
              "country": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Country",
                "default": null,
                "description": "Optional market ISO-2 filter."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true
          }
        },
        {
          "name": "brief",
          "title": "Brief",
          "description": "The generalized ANALYST BRIEF — one composed \"how is <scope> doing right now?\" picture (pulse + net direction,\n    top_stories, winners/losers, aspect_heatmap, top_entities, top_assets) for any AND-combination of scopes. ⭐ Use to\n    SUMMARIZE a scope (theme / news category / country / sector / aspect) — NOT a raw article list (that's\n    search_news/news_feed). ⛔ NOT for a single COMPANY or market INDEX (\"how is AAPL / the S&P doing?\" →\n    options_sentiment + stock_impact/news_feed; an index maps to an ETF, not a brief scope). For a sector×region the\n    quickest path is pulse(kind='theme', target='banks', country=…); use brief for one precise GICS cohort or an AND-combo.\n    Scope by ≥1 of (CSV for several) — REQUIRED (never whole-market):\n      • `news_type` — a category; use ONLY these EXACT names: product_tech, ma_partnership, industry_thematic,\n        earnings_results, corporate_action, management_governance, analyst_rating, macro_economic, geopolitics,\n        commodity_supply, regulatory_legal, cybersecurity_digital_trust, digital_finance_tokenization,\n        price_action_technical, crypto_related, forex_related, analyst_forecast. (commodity→commodity_supply;\n        central-bank/rates→macro_economic — there is NO 'monetary_policy'.)\n      • `country` (ISO-2) · `aspect` (impact channel) · `gics` (code or plain English) · `megatrend` (theme name/id).\n    ⚠️ News coverage starts 2026-01-01. `node`+`ripple` appear only when a SINGLE megatrend anchors the brief.",
          "inputSchema": {
            "type": "object",
            "title": "briefArguments",
            "properties": {
              "to": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "To",
                "default": null,
                "description": "Upper time bound, ISO date `YYYY-MM-DD`."
              },
              "gics": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Gics",
                "default": null,
                "description": "A GICS sector/industry — a CODE PREFIX (sector `25` / group `2550` / industry `255010` / sub `25501010`, CSV for several) OR plain English ('banks', 'semiconductors', 'biotech'); the server resolves it. 🔴 ENGLISH (translate the concept first: ธนาคาร→'banks'). So 'European banks' = gics='banks' + country=EU codes."
              },
              "lang": {
                "anyOf": [
                  {
                    "enum": [
                      "en",
                      "th",
                      "ja"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Lang",
                "default": null,
                "description": "Translate title/brief_text: `en`|`th`|`ja`."
              },
              "from_": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "From",
                "default": null,
                "description": "Lower time bound, ISO date `YYYY-MM-DD`. ⚠️ Ava Advisor NEWS coverage starts 2026-01-01 (nothing before)."
              },
              "aspect": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Aspect",
                "default": null,
                "description": "Impact CHANNEL filter (e.g. `demand`, `competition`, `tariff`, `monetary`). Omit → all channels."
              },
              "window": {
                "type": "string",
                "title": "Window",
                "default": "30d",
                "description": "News-recency window: `7d`/`30d`/`90d`/`180d`/`1y` or `mtd`/`qtd`/`ytd`. Omit → a sensible default. (Price history is unaffected — this only scopes the NEWS lens.)"
              },
              "country": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Country",
                "default": null,
                "description": "Market filter — CSV of ISO-2 codes (e.g. `US` or `CN,TW,HK`). 🌍 If the question names a NATIONALITY or REGION ('European','Thai','Chinese','ASEAN'), put it HERE — never leave it inside a concept/`q`/`gics` field. Enumerate a region into its member ISO-2s yourself (Europe→GB,DE,FR,IT,ES,NL,CH,SE; ASEAN→TH,SG,MY,ID,PH,VN)."
              },
              "interval": {
                "anyOf": [
                  {
                    "enum": [
                      "day",
                      "week",
                      "month"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Interval",
                "default": null,
                "description": "Time-bucketing of the pulse series: `day`|`week`|`month`."
              },
              "megatrend": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Megatrend",
                "default": null,
                "description": "A megatrend node — a name/slug (resolved for you, e.g. `foundry`) or an int node id. CSV for several."
              },
              "news_type": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "News Type",
                "default": null,
                "description": "News CATEGORY (exact names only, e.g. `macro_economic`, `commodity_supply`, `earnings_results`)."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true
          }
        },
        {
          "name": "search_news",
          "title": "Search News",
          "description": "SEMANTIC news search across ALL covered asset classes — stocks, FX, crypto, COMMODITIES (metals\n    like copper/gold, energy like oil), and private companies. Articles matched by MEANING, impact-labeled\n    (title, publisher, entities, direction, why). USE THIS for 'copper news', 'metals', 'gold', etc.\n    instead of a web search. `entity_type` keeps only stock/forex/crypto/commodity/private hits. For a\n    FILTERED feed by aspect/direction/country use `news_feed`. `limit` = how many (default 20, max 50).\n    TIME-SCOPE with `from_`/`to` (ISO dates, e.g. '2026-04-01') or a `window` ('90d','qtd','ytd','1y').\n    ⚠️ News coverage starts 2026-01-01 — older ranges return nothing (that's no COVERAGE, not 'no news').\n    Returns {match_quality, top_similarity, note, results}. If match_quality is 'weak'/'none', the corpus\n    has no strongly relevant news — do NOT present these results as evidence; say so and use another route.",
          "inputSchema": {
            "type": "object",
            "title": "search_newsArguments",
            "required": [
              "q"
            ],
            "properties": {
              "q": {
                "type": "string",
                "title": "Q",
                "description": "Free-text SEMANTIC news query — a topic/event/asset in any language ('copper', 'oil shock', 'Fed rate hike', 'ข่าวทองคำ')."
              },
              "to": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "To",
                "default": null,
                "description": "Upper time bound, ISO date `YYYY-MM-DD`."
              },
              "from_": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "From",
                "default": null,
                "description": "Lower time bound, ISO date `YYYY-MM-DD`. ⚠️ Ava Advisor NEWS coverage starts 2026-01-01 (nothing before)."
              },
              "limit": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Limit",
                "default": null,
                "description": "Max rows (default 20, hard cap 50). Keep SMALL + narrow the scope; page/refine rather than dump — heavily-covered assets have hundreds of articles."
              },
              "detail": {
                "anyOf": [
                  {
                    "enum": [
                      "compact",
                      "full"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Detail",
                "default": null,
                "description": "`compact` (default): per story title, date, publisher, types, impact_score, a short brief and the TOP-3 impacted entities (direction + relevance + one-line why) — fits the client's tool-output limit. `full`: every impacted entity with all its aspects (bigger; use with a small `limit`)."
              },
              "format": {
                "anyOf": [
                  {
                    "enum": [
                      "json",
                      "text"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Format",
                "default": null,
                "description": "`json` (default): structured rows. `text`: the same stories as plain readable lines (no JSON keys / quotes / nesting) — about half the size; prefer it when you only need to READ the news to answer."
              },
              "window": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Window",
                "default": null,
                "description": "News-recency window: `7d`/`30d`/`90d`/`180d`/`1y` or `mtd`/`qtd`/`ytd`. Omit → a sensible default. (Price history is unaffected — this only scopes the NEWS lens.)"
              },
              "collapse": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Collapse",
                "default": null,
                "description": "Merge near-duplicate stories (same article from many outlets) into one row + `dup_count`. Default ON; pass `false` for the raw un-deduped feed."
              },
              "entity_type": {
                "anyOf": [
                  {
                    "enum": [
                      "stock",
                      "forex",
                      "crypto",
                      "commodity",
                      "private"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Entity Type",
                "default": null,
                "description": "Keep only hits of one kind: `stock`|`forex`|`crypto`|`commodity`|`private`. Omit → all."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "title": "search_newsOutput",
            "required": [
              "result"
            ],
            "properties": {
              "result": {
                "anyOf": [
                  {
                    "type": "object",
                    "additionalProperties": true
                  },
                  {
                    "type": "string"
                  }
                ],
                "title": "Result"
              }
            }
          },
          "annotations": {
            "readOnlyHint": true
          }
        },
        {
          "name": "news_feed",
          "title": "News Feed",
          "description": "The filtered impact feed — news by megatrend/country/aspect/direction/news_type, across stocks,\n    FX, crypto, COMMODITIES (metals/energy) and private cos. Use for 'negative tariff news on\n    Semiconductors', 'macro news moving European stocks', 'copper / metals news', etc. Near-duplicate\n    stories are MERGED by default (+`dup_count`); `collapse=false` for the raw feed. `limit` = how many\n    (default 20, max 50); narrow the filters rather than paging deep. TIME-SCOPE with `from_`/`to` (ISO)\n    or a `window` ('90d','qtd','ytd','1y'). To COMPARE periods, call once per period and compare the\n    results. ⚠️ News starts 2026-01-01 — older ranges return nothing (no coverage, not 'no news').\n    `megatrend` accepts a plain name/slug/concept ('foundry', 'AI chips') — resolved server-side to node id(s).",
          "inputSchema": {
            "type": "object",
            "title": "news_feedArguments",
            "properties": {
              "to": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "To",
                "default": null,
                "description": "Upper time bound, ISO date `YYYY-MM-DD`."
              },
              "from_": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "From",
                "default": null,
                "description": "Lower time bound, ISO date `YYYY-MM-DD`. ⚠️ Ava Advisor NEWS coverage starts 2026-01-01 (nothing before)."
              },
              "limit": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Limit",
                "default": null,
                "description": "Max rows (default 20, hard cap 50). Keep SMALL + narrow the scope; page/refine rather than dump — heavily-covered assets have hundreds of articles."
              },
              "aspect": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Aspect",
                "default": null,
                "description": "Impact CHANNEL filter (e.g. `demand`, `competition`, `tariff`, `monetary`). Omit → all channels."
              },
              "detail": {
                "anyOf": [
                  {
                    "enum": [
                      "compact",
                      "full"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Detail",
                "default": null,
                "description": "`compact` (default): per story title, date, publisher, types, impact_score, a short brief and the TOP-3 impacted entities (direction + relevance + one-line why) — fits the client's tool-output limit. `full`: every impacted entity with all its aspects (bigger; use with a small `limit`)."
              },
              "format": {
                "anyOf": [
                  {
                    "enum": [
                      "json",
                      "text"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Format",
                "default": null,
                "description": "`json` (default): structured rows. `text`: the same stories as plain readable lines (no JSON keys / quotes / nesting) — about half the size; prefer it when you only need to READ the news to answer."
              },
              "window": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Window",
                "default": null,
                "description": "News-recency window: `7d`/`30d`/`90d`/`180d`/`1y` or `mtd`/`qtd`/`ytd`. Omit → a sensible default. (Price history is unaffected — this only scopes the NEWS lens.)"
              },
              "country": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Country",
                "default": null,
                "description": "Market filter — CSV of ISO-2 codes (e.g. `US` or `CN,TW,HK`). 🌍 If the question names a NATIONALITY or REGION ('European','Thai','Chinese','ASEAN'), put it HERE — never leave it inside a concept/`q`/`gics` field. Enumerate a region into its member ISO-2s yourself (Europe→GB,DE,FR,IT,ES,NL,CH,SE; ASEAN→TH,SG,MY,ID,PH,VN)."
              },
              "collapse": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Collapse",
                "default": null,
                "description": "Merge near-duplicate stories (same article from many outlets) into one row + `dup_count`. Default ON; pass `false` for the raw un-deduped feed."
              },
              "direction": {
                "anyOf": [
                  {
                    "enum": [
                      "pos",
                      "neg",
                      "ambiguous"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Direction",
                "default": null,
                "description": "Filter by impact direction: `pos` | `neg` | `ambiguous`. Omit → all."
              },
              "megatrend": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Megatrend",
                "default": null,
                "description": "A megatrend node — a name/slug (resolved for you, e.g. `foundry`) or an int node id. CSV for several."
              },
              "news_type": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "News Type",
                "default": null,
                "description": "News CATEGORY (exact names only, e.g. `macro_economic`, `commodity_supply`, `earnings_results`)."
              },
              "only_scored": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Only Scored",
                "default": null,
                "description": "Keep only articles carrying a judged per-entity impact. Omit → all gated articles."
              },
              "min_relevance": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Min Relevance",
                "default": null,
                "description": "Minimum impact relevance, 0–1."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "title": "news_feedOutput",
            "required": [
              "result"
            ],
            "properties": {
              "result": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {}
                  },
                  {
                    "type": "string"
                  }
                ],
                "title": "Result"
              }
            }
          },
          "annotations": {
            "readOnlyHint": true
          }
        },
        {
          "name": "stock_impact",
          "title": "Stock Impact",
          "description": "How news moved a specific company/asset (incl commodities like GOLD.COMM) — per-article impact\n    (direction + aspect + why), most recent first. Near-duplicate stories are MERGED by default (each row\n    = one story + `dup_count`); `collapse=false` for the raw feed. `limit` = how many (default 20, max 50). Ordered by how hard each story hits this entity (`relevance`, 1.0 = directly about it; a market wrap that touches it ranks lower), then recency; `companies_in_story` says when it is one of several\n    — heavily-covered assets have HUNDREDS, so keep it small + narrow. TIME-SCOPE with `from_`/`to` (ISO)\n    or `window` ('90d','qtd','1y'); to COMPARE periods, call once per period. ⚠️ News starts 2026-01-01 —\n    older ranges return nothing (no coverage, not 'no news'; price/volatility history goes back decades).\n    🔵 BONDS/RATES: a specific tenor/rate (`US-2Y.GB`, `SOFR.MM`) with no news of its own returns the\n    country's benchmark-10Y macro news tagged `scope:'curve_macro'` + `macro_source` — narrate those as\n    curve-wide central-bank context, not tenor-specific. 📏 MAGNITUDE: for a listed, priced asset each story has\n    `price_move` = close-to-close % of the session it landed in (`day_pct`) and of the next one (`next_day_pct`) —\n    the market's reaction next to the direction. It is the WHOLE day's move (other news counts too), not the story's\n    isolated effect; say so. End-of-day prices: a story from today has no session close yet.",
          "inputSchema": {
            "type": "object",
            "title": "stock_impactArguments",
            "required": [
              "ticker"
            ],
            "properties": {
              "to": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "To",
                "default": null,
                "description": "Upper time bound, ISO date `YYYY-MM-DD`."
              },
              "from_": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "From",
                "default": null,
                "description": "Lower time bound, ISO date `YYYY-MM-DD`. ⚠️ Ava Advisor NEWS coverage starts 2026-01-01 (nothing before)."
              },
              "limit": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Limit",
                "default": null,
                "description": "Max rows (default 20, hard cap 50). Keep SMALL + narrow the scope; page/refine rather than dump — heavily-covered assets have hundreds of articles."
              },
              "ticker": {
                "type": "string",
                "title": "Ticker",
                "description": "A Ava Advisor ticker OR a company/asset NAME — the SERVER resolves it (no lookup step). A COMPANY/proper NAME passes AS-IS in any language (茅台/トヨタ/삼성 resolve natively — never translate a name); a generic COMMODITY/SECTOR concept must be ENGLISH (黄金→'gold', 原油→'crude oil'). Pass the user's full request in `context` to disambiguate ('apple' company vs fruit); if still ambiguous you get a `needs_confirmation` with candidates — resolve from conversation or ask, then re-call. Exact tickers pass through (Ava Advisor suffixes: Korea .KO, Taiwan .TW, commodity .COMM, crypto .CC, FX .FOREX, bond .GB, rate .MM)."
              },
              "window": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Window",
                "default": null,
                "description": "News-recency window: `7d`/`30d`/`90d`/`180d`/`1y` or `mtd`/`qtd`/`ytd`. Omit → a sensible default. (Price history is unaffected — this only scopes the NEWS lens.)"
              },
              "context": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Context",
                "default": null,
                "description": "OPTIONAL but RECOMMENDED — paste the user's FULL request VERBATIM (any language: 'ขอราคาผลไม้ apple', 'compare Apple and Microsoft stock'). The server uses it to disambiguate which candidate each `ticker` entity means (the apple COMPANY vs the fruit COMMODITY; which Samsung). One context per call, shared by all tickers here."
              },
              "country": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Country",
                "default": null,
                "description": "OPTIONAL market disambiguator — pass ONLY when `ticker` is a plain NAME that collides across markets (the Thai vs Korean 'KBANK'); omit for a distinctive name or an exact ticker (an unneeded country silently 0-matches). A country NAME or ISO-2 code ('South Korea'/'KR'); the server normalizes, so pass the NAME when unsure — never GUESS a 2-letter code ('CH' = Switzerland, not China)."
              },
              "collapse": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Collapse",
                "default": null,
                "description": "Merge near-duplicate stories (same article from many outlets) into one row + `dup_count`. Default ON; pass `false` for the raw un-deduped feed."
              },
              "direction": {
                "anyOf": [
                  {
                    "enum": [
                      "pos",
                      "neg",
                      "ambiguous"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Direction",
                "default": null,
                "description": "Filter by impact direction: `pos` | `neg` | `ambiguous`. Omit → all."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true
          }
        },
        {
          "name": "options_sentiment",
          "title": "Options Sentiment",
          "description": "What the US OPTIONS MARKET is saying — the POSITIONING lens (~547 popular US optionable names,\n    stocks + ETFs). Pairs with the news→impact read: for \"how is <X> doing?\" fetch THIS *and*\n    `stock_impact`/`news_feed` and fuse them (news = what's happening + WHY; options = how the market is\n    positioned — direction lean via put/call, fear/greed via skew, IV level, dealer-gamma stability,\n    max-pain pinning, notable expiries). For a name the user HOLDS it shows how the market is hedging that\n    position. Broad-INDEX question → pass the liquid ETF proxy: S&P 500→`SPY`, Nasdaq 100→`QQQ`, Dow→\n    `DIA`, Russell 2000→`IWM`, 20y Treasuries→`TLT`, Gold→`GLD`. Tickers = bare US symbol or `SYMBOL.US`\n    (`NVDA`/`NVDA.US`); US-only. `style` = `plain` (everyday language, default) | `technical`.\n\n    TWO MODES:\n    • SINGLE deep read — pass `ticker=<one>` (+ optional `as_of`). Returns the FULL narrative payload\n      (horizons, buckets, per-signal `read`+`because`, `_guide`). Use for a focused \"how is NVDA doing\".\n    • BATCH / COMPARE — pass `tickers=[...]` and/or `dates=[...]` → ONE call returns a COMPACT grid, one\n      small row per (ticker × date) cell: `spot`, `positioning_score` ([-1,+1], + bullish), per-horizon\n      positioning, and medium-term signal `reads`. THIS is how you answer \"NVDA vs AAPL, last week vs\n      this week\" — do NOT fire the single tool N×M times. `dates=[]` (omit) → a single \"latest\" column.\n\n    📅 HISTORICAL: `as_of`/`dates` = ISO date/timestamp; the snapshot AT-OR-BEFORE that instant. A bare\n    date (`2026-07-15`) is read as END of that day. Every response carries `available_from`/`available_to`\n    (the stored window); a cell whose date predates it comes back `covered:false` with the range — relay\n    THAT honestly (say history only goes back to `available_from`), never invent an older reading.\n    ⚠️ Narrate from `read`+`because` (or the batch `reads`); DON'T recompute, DON'T compare raw O/S or IV\n    across assets, `baseline_pending`/`level` ≠ \"unusual\" (only a `_percentile`/`_rank` read flags\n    unusual), and the VERDICT is YOURS (opana stops at interpretation). Not covered → `{covered:false}`:\n    say options data isn't available and use the news/impact read instead — never fabricate.",
          "inputSchema": {
            "type": "object",
            "title": "options_sentimentArguments",
            "properties": {
              "as_of": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "As Of",
                "default": null,
                "description": "As-of date YYYY-MM-DD (point-in-time positioning)."
              },
              "dates": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Dates",
                "default": null,
                "description": "Specific expiry dates YYYY-MM-DD to focus the read on."
              },
              "style": {
                "type": "string",
                "title": "Style",
                "default": "plain",
                "description": "Narration style: `plain` (layperson, default) | `technical`."
              },
              "ticker": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Ticker",
                "default": null,
                "description": "A US-listed OPTIONABLE ticker OR a plain company name (resolved server-side) — ~547 names — or an index-ETF proxy (S&P→SPY, Nasdaq→QQQ). Non-US / uncovered → `covered:false` (not an error)."
              },
              "context": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Context",
                "default": null,
                "description": "OPTIONAL but RECOMMENDED — paste the user's FULL request VERBATIM (any language: 'ขอราคาผลไม้ apple', 'compare Apple and Microsoft stock'). The server uses it to disambiguate which candidate each `ticker` entity means (the apple COMPANY vs the fruit COMMODITY; which Samsung). One context per call, shared by all tickers here."
              },
              "tickers": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Tickers",
                "default": null,
                "description": "Batch form — several tickers at once (instead of `ticker`)."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true
          }
        },
        {
          "name": "options_scan",
          "title": "Options Scan",
          "description": "Find STOCKS by an options-behaviour pattern (opana lens) across the ~557 US optionable names — returns\n    ranked UNDERLYINGS each with a plain-language `because` + `metrics` (value, and prev→delta for a trend/flip).\n    STOCK scanner only: it does NOT pick option contracts/strikes/expiries (for one named stock's detail use\n    `options_sentiment`). The `pattern` is a key OR plain English (the server resolves it) — its `temporal_mode`\n    decides the read (level = now, rising/falling = ~2-week trend, flip = reversal). A `supported:'no'`/`'future'` pattern returns an empty\n    list + an honest note (say so, don't substitute). US-capped — state that in the answer.",
          "inputSchema": {
            "type": "object",
            "title": "options_scanArguments",
            "required": [
              "pattern"
            ],
            "properties": {
              "limit": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Limit",
                "default": null,
                "description": "Max rows (default 20, hard cap 50). Keep SMALL + narrow the scope; page/refine rather than dump — heavily-covered assets have hundreds of articles."
              },
              "horizon": {
                "enum": [
                  "short",
                  "long"
                ],
                "type": "string",
                "title": "Horizon",
                "default": "long",
                "description": "`short` | `long` — which options horizon to read (default long = the positioning/conviction lens; short = the gamma/near-term lens)."
              },
              "pattern": {
                "type": "string",
                "title": "Pattern",
                "description": "An options-behaviour pattern — an exact key OR plain English ('cheap implied vol', 'crowd getting fearful', 'smart money piling in'); the server resolves it. CSV = AND-combine (intersect), e.g. 'iv_cheap,smart money buying'; the FIRST token owns the ranking. 🔴 ENGLISH."
              },
              "min_strength": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Min Strength",
                "default": null,
                "description": "Optional cutoff on the ranked axis / Δ — omit to let the scanner return the top-ranked names."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true
          }
        },
        {
          "name": "theme_players",
          "title": "Theme Players",
          "description": "THE roster tool: investable MEMBER companies of a theme (curated membership). Rolls up sub-themes\n    (a parent node returns its children's members too). Use this — not screen_stocks — for 'who are the\n    players / real names in <theme>' (screen_stocks is a NEWS-ranked subset gated to news-epicenter members).\n    `country='all'` (default) gives the complete cross-market list; an ISO-2 scopes to one trading venue.\n    Different from top_entities (news-derived). `limit` = how many (default 20, max 50; big themes have many).\n    Returns {stocks, count, total, note?} — if `total` > `count` it's a TOP SLICE: say so, don't present it\n    as the full roster (raise `limit`).",
          "inputSchema": {
            "type": "object",
            "title": "theme_playersArguments",
            "required": [
              "theme"
            ],
            "properties": {
              "limit": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Limit",
                "default": null,
                "description": "Max rows (default 20, hard cap 50). Keep SMALL + narrow the scope; page/refine rather than dump — heavily-covered assets have hundreds of articles."
              },
              "theme": {
                "type": "string",
                "title": "Theme",
                "description": "A megatrend theme — name/slug (resolved for you) or node id."
              },
              "country": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Country",
                "default": "all",
                "description": "`all` (DEFAULT) = the whole cross-market roster — use this for 'who are the players in <theme>'. Or an ISO-2 market to scope to ONE venue. ⚠️ keyed by LISTING VENUE, not domicile: a foreign name lists under the market it TRADES on (Leonardo/Saab under GB via their LSE line, Novo under US/DE, Cameco under US) — so a home-country query (IT/SE/DK/CA) can return 0 even though the company IS a member. When in doubt use `all`."
              },
              "exposure": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Exposure",
                "default": null,
                "description": "Filter by exposure tier (e.g. `core`). Omit → all members."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true
          }
        },
        {
          "name": "private_movers",
          "title": "Private Movers",
          "description": "Off-coverage / private companies the news moved within a theme — the 'beyond tickers' surface.\n    `limit` = how many (default 20, max 50). Returns {companies, count, total, note?} — honor `note` when\n    `total` > `count` (it's a top slice, not the whole set).",
          "inputSchema": {
            "type": "object",
            "title": "private_moversArguments",
            "required": [
              "theme"
            ],
            "properties": {
              "limit": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Limit",
                "default": null,
                "description": "Max rows (default 20, hard cap 50). Keep SMALL + narrow the scope; page/refine rather than dump — heavily-covered assets have hundreds of articles."
              },
              "theme": {
                "type": "string",
                "title": "Theme",
                "description": "A megatrend theme — name/slug (resolved for you) or node id."
              },
              "country": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Country",
                "default": null,
                "description": "Market filter — CSV of ISO-2 codes (e.g. `US` or `CN,TW,HK`). 🌍 If the question names a NATIONALITY or REGION ('European','Thai','Chinese','ASEAN'), put it HERE — never leave it inside a concept/`q`/`gics` field. Enumerate a region into its member ISO-2s yourself (Europe→GB,DE,FR,IT,ES,NL,CH,SE; ASEAN→TH,SG,MY,ID,PH,VN)."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true
          }
        },
        {
          "name": "relationships",
          "title": "Company Relationships",
          "description": "Competitors + peers of a company (news-derived relationship graph). `limit` caps EACH list\n    (default 15, max 50). Each side carries `total`/`count`/`note` — a big `total` (peers often run to\n    hundreds) means you're seeing a TOP slice; say so rather than implying it's the complete set.",
          "inputSchema": {
            "type": "object",
            "title": "relationshipsArguments",
            "required": [
              "ticker"
            ],
            "properties": {
              "limit": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Limit",
                "default": null,
                "description": "Max competitors + peers each (default/cap per _lim)."
              },
              "ticker": {
                "type": "string",
                "title": "Ticker",
                "description": "A Ava Advisor ticker OR a company/asset NAME — the SERVER resolves it (no lookup step). A COMPANY/proper NAME passes AS-IS in any language (茅台/トヨタ/삼성 resolve natively — never translate a name); a generic COMMODITY/SECTOR concept must be ENGLISH (黄金→'gold', 原油→'crude oil'). Pass the user's full request in `context` to disambiguate ('apple' company vs fruit); if still ambiguous you get a `needs_confirmation` with candidates — resolve from conversation or ask, then re-call. Exact tickers pass through (Ava Advisor suffixes: Korea .KO, Taiwan .TW, commodity .COMM, crypto .CC, FX .FOREX, bond .GB, rate .MM)."
              },
              "context": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Context",
                "default": null,
                "description": "OPTIONAL but RECOMMENDED — paste the user's FULL request VERBATIM (any language: 'ขอราคาผลไม้ apple', 'compare Apple and Microsoft stock'). The server uses it to disambiguate which candidate each `ticker` entity means (the apple COMPANY vs the fruit COMMODITY; which Samsung). One context per call, shared by all tickers here."
              },
              "country": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Country",
                "default": null,
                "description": "OPTIONAL market disambiguator — pass ONLY when `ticker` is a plain NAME that collides across markets (the Thai vs Korean 'KBANK'); omit for a distinctive name or an exact ticker (an unneeded country silently 0-matches). A country NAME or ISO-2 code ('South Korea'/'KR'); the server normalizes, so pass the NAME when unsure — never GUESS a 2-letter code ('CH' = Switzerland, not China)."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true
          }
        },
        {
          "name": "list_themes",
          "title": "List Megatrends",
          "description": "Browse / discover the megatrend taxonomy (25 tier-1 families + sub-nodes) — resolve a theme id.",
          "inputSchema": {
            "type": "object",
            "title": "list_themesArguments",
            "properties": {
              "query": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Query",
                "default": null,
                "description": "Optional free-text filter over the megatrend taxonomy; omit → the browsable tree."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true
          }
        },
        {
          "name": "list_portfolios",
          "title": "List Portfolios",
          "description": "List the user's OWN portfolios (id, name, base_currency, account_type, nav, total_return_pct,\n    unrealized_pnl, position_count, …) so you can pick one to analyze. Call this FIRST whenever the user\n    says 'my portfolio' without a number — show the names, then pass the chosen `id` to\n    `portfolio_context`. Owner-scoped: only ever the user's own portfolios.\n    If `count` is 0 (they own none), the response carries a `note` with a create link — relay THAT\n    (invite them to create a portfolio) instead of saying an empty 'you have no portfolios'.",
          "inputSchema": {
            "type": "object",
            "title": "list_portfoliosArguments",
            "properties": {}
          },
          "annotations": {
            "readOnlyHint": true
          }
        },
        {
          "name": "portfolio_context",
          "title": "Portfolio Context",
          "description": "An LLM-ready snapshot of ONE of the user's OWN portfolios (owner-scoped) — analyze it directly.\n    NO window → default: `meta` · `summary` · a `lifetime`(all-time) + `recent`(~12mo) block, EACH with\n    `performance` (return/cagr/sharpe/sortino/calmar/drawdown/vol/win_rate) + `attribution` · `positions`\n    · `closed_positions` (realized_pnl) · `composition` (point-in-time holdings) · `allocation` ·\n    `concentration` (HHI) · `inferred_behavior` · `flags`. `portfolio_id` from `list_portfolios`; 404 if\n    not the user's.\n\n    TIME WINDOW — `from_`/`to` (ISO) or `window` (`7d|30d|90d|180d|1y|mtd|qtd|ytd`): REPLACES lifetime+\n    recent with ONE `window` block (that span's `performance` + `attribution` + `nav_trend`) and scopes\n    `composition` to match. So ANY period's return + drivers is answerable. `snapshots` = composition\n    granularity only (`year|quarter|month|week|day|off`).\n    🔴 MANDATORY for period questions: the default / `lifetime` / `recent` blocks DO NOT contain the\n    performance or attribution of an arbitrary period (e.g. Q1-2025, \"H1 2024\"). To answer ANY specific\n    period — or to COMPARE periods (Q1/25 vs Q1/26, 2023 vs 2025) — you MUST call this tool AGAIN with\n    `from_`/`to` (or `window`) for EACH period, then compare the returned `window` blocks. NEVER derive a\n    period's return/sharpe/drawdown/attribution from the default view — those numbers aren't in it; making\n    them up is a hard error. If you haven't fetched a period's window, say you need to fetch it, don't guess.\n\n    HOW TO ANALYZE (research-analyst framing — see avaadvisor://policy):\n    • Lead with the sharpest thing: a non-empty `flag`, or the biggest concentration / drawdown / tilt.\n    • \"What drove the return / drawdown / strengths & weaknesses\" (for the default OR a window) → read\n      `attribution.contributors[]` (per-holding `pnl_contribution` + `pct_of_nav_change` + `held` window;\n      reconciles to `nav_change` to the cent, INCLUDES since-sold names). Don't estimate it yourself.\n    • \"What did I hold on date X / how did the book evolve\" → `composition` (set `snapshots` + a window).\n    • ⚠️ TRUST THE EDGE NOTES, never fabricate: a window before the portfolio's `inception_date` returns\n      `window.empty=true` + a note (or clamped) — say \"the portfolio didn't exist then\". If\n      `composition.coarsened` is true, the step was widened to stay bounded — for finer, narrow the window.\n    • NEWS-AWARE: fuse `stock_impact` / `news_feed`/`search_news` on the holdings' `theme` paths for the\n      WHY (⚠️ news only covers 2026+; portfolio history goes back to inception, further than news).\n    • Facts, not advice. Observe; do NOT tell them to buy/sell/rebalance/time — hand the judgment back.",
          "inputSchema": {
            "type": "object",
            "title": "portfolio_contextArguments",
            "required": [
              "portfolio_id"
            ],
            "properties": {
              "to": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "To",
                "default": null,
                "description": "Window end YYYY-MM-DD."
              },
              "from_": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "From",
                "default": null,
                "description": "Window start YYYY-MM-DD — re-scopes performance/attribution/composition together."
              },
              "window": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Window",
                "default": null,
                "description": "Re-scope perf+attribution+composition to a period: `7d`/…/`ytd`. Omit → lifetime + recent(12mo)."
              },
              "snapshots": {
                "anyOf": [
                  {
                    "enum": [
                      "year",
                      "quarter",
                      "month",
                      "week",
                      "day",
                      "off"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Snapshots",
                "default": null,
                "description": "Point-in-time composition cadence: `year|quarter|month|week|day|off` (default quarter); auto-coarsens over long spans."
              },
              "portfolio_id": {
                "type": "integer",
                "title": "Portfolio Id",
                "description": "The portfolio's id (call list_portfolios first if the user says 'my portfolio' without a number)."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true
          }
        },
        {
          "name": "write_note",
          "title": "Save Note",
          "description": "🔴 WRITE — save a NOTE to the user's account (this PERSISTS data; it is NOT a read/lookup). Typical\n    flow: FIRST give the user your complete answer as usual, THEN — as the final step of the turn — call\n    `write_note` once to keep it.\n\n    🔴 IF YOUR ANSWER CONTAINED A TABLE / NUMERIC COMPARISON, keep it as a MARKDOWN table in `body` — lead with\n    the table, do NOT re-narrate the numbers into prose. Saving a figures answer as a wall of prose is the #1\n    note-quality failure; preserving structure OUTRANKS \"distilling into a paragraph\". (The figures are extracted\n    from these markdown tables later for charts — so a clean table with clear headers is what makes that possible.)\n\n    CONTENT: `subject` (short title), `body` (MARKDOWN — keep tables as tables, absolute headers like `FY2025`),\n    `summary` (1–2 sentences), `note_type` (reference/tracking/thesis/decision), `category`, `tags` — see each field.\n\n    ENTITY LINKS make the note findable + joinable to the graph — fill whenever the note touches specific things;\n    the server RESOLVES plain names for you. `stocks` (the subjects) · `mentioned_stocks` (referenced) · `gics`\n    (sector/theme, code or plain English) · `megatrend_ids` (advanced raw id) · `portfolio_id`.\n\n    🧭 LINK THE NOTE'S HOME — the theme/sector, not just the stocks. If the note is about a TREND/tech/mechanism\n    (\"what is HBM\", \"solid-state batteries\") or an established INDUSTRY/SECTOR (\"retail\", \"airlines\", \"pharma\"),\n    put the word(s) straight in `gics` (plain English — the server resolves each and routes a theme→megatrend).\n    A note whose subject is a trend or a sector, saved with EMPTY `gics`, means you SKIPPED this. The only correct\n    empties: a single-stock note (stocks only) or a general concept with no home (P/E, EBITDA — don't force it;\n    tags/body still make it findable by semantic search).\n\n    WHEN TO SAVE — this is the investor's knowledge base; CAPTURE substantive investment content generously\n    (reference/understanding, a dated market-read WITH its 'why', a thesis/decision, curated research). Value\n    is realized on RETRIEVAL, so lean toward keeping. SKIP only the noise floor: chit-chat/thanks, trivial\n    lookups (\"what's the ticker?\"), or off-topic non-investment content (save that only if explicitly asked).\n    An explicit \"save this / จดไว้\" → always save. Otherwise, if the content is note-worthy, briefly OFFER to\n    keep it — don't nag on every turn, and don't save pure filler.\n\n    🏷️ `agent` — ALWAYS set this to the app you are running in, chosen from the fixed list:\n    `Claude` (Claude apps / claude.ai / Desktop), `Claude Code`, `Claude Coworks`, `ChatGPT`, `Codex`,\n    `Gemini`, or `Other` (anything not listed). It stamps WHICH surface authored the note (provenance in\n    the user's knowledge base). Pick the single closest match; if genuinely unsure, use `Other`. Do not\n    invent values — only these are accepted.\n\n    Owner-scoped. Returns `{id, created_at, linked}` where `linked` confirms what was tied to the graph\n    (resolved ids + any `unresolved` names).",
          "inputSchema": {
            "type": "object",
            "title": "write_noteArguments",
            "required": [
              "subject",
              "body"
            ],
            "properties": {
              "body": {
                "type": "string",
                "title": "Body",
                "description": "The note's full text in MARKDOWN — the distilled answer/observation/thesis to persist. PRESERVE the structure of your answer: any numeric / tabular data goes in a markdown TABLE (pipe syntax `| col | col |`), NEVER flattened into a paragraph of numbers; use headings (##) for sections and bullet lists for points. If you showed the user a table, the note keeps that table."
              },
              "gics": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Gics",
                "default": null,
                "description": "The note's INDUSTRY/SECTOR or THEME — a GICS code OR plain English ('banks', 'semiconductors', 'AI'); the server resolves each and routes a curated theme to a megatrend link. (Derived free if the note names representative stocks.)"
              },
              "tags": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Tags",
                "default": null,
                "description": "Free-text tags for retrieval."
              },
              "agent": {
                "anyOf": [
                  {
                    "enum": [
                      "Claude",
                      "Claude Code",
                      "Claude Coworks",
                      "ChatGPT",
                      "Codex",
                      "Gemini",
                      "Other"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Agent",
                "default": null,
                "description": "Which app is writing the note — EXACTLY one of: `Claude` | `Claude Code` | `Claude Coworks` | `ChatGPT` | `Codex` | `Gemini` | `Other` (case-sensitive); the server falls back to the connection's client info."
              },
              "stocks": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Stocks",
                "default": null,
                "description": "PRIMARY stocks/assets the note is ABOUT — an exact Ava Advisor ticker OR a plain NAME the SERVER resolves (any asset class; an ambiguous name → reconfirm). ⚠️ A COMMODITY discussed via the trade tools has only an HS code (rice→1006), NOT a ticker — just put the NAME here ('rice'→resolved to RICE.COMM) so the note links to the commodity."
              },
              "context": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Context",
                "default": null,
                "description": "OPTIONAL but RECOMMENDED — paste the user's FULL request VERBATIM (any language: 'ขอราคาผลไม้ apple', 'compare Apple and Microsoft stock'). The server uses it to disambiguate which candidate each `ticker` entity means (the apple COMPANY vs the fruit COMMODITY; which Samsung). One context per call, shared by all tickers here."
              },
              "subject": {
                "type": "string",
                "title": "Subject",
                "description": "Short title / subject line of the note."
              },
              "summary": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Summary",
                "default": null,
                "description": "One-line summary (shown when the note is collapsed)."
              },
              "category": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Category",
                "default": null,
                "description": "Optional free-text category."
              },
              "note_type": {
                "anyOf": [
                  {
                    "enum": [
                      "reference",
                      "tracking",
                      "thesis",
                      "decision"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Note Type",
                "default": null,
                "description": "`reference` (concept/understanding) | `tracking` (dated market read) | `thesis` | `decision`."
              },
              "portfolio_id": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Portfolio Id",
                "default": null,
                "description": "Link the note to one of the user's portfolios, if relevant."
              },
              "megatrend_ids": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    }
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Megatrend Ids",
                "default": null,
                "description": "ADVANCED — raw megatrend node id(s) if you already hold one (e.g. a theme tool's `megatrend.id`). Normally just name the theme in `gics` and the server routes it to a megatrend."
              },
              "mentioned_stocks": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Mentioned Stocks",
                "default": null,
                "description": "Secondary tickers merely referenced (a peer named in passing)."
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "query_notes",
          "title": "My Notes",
          "description": "Recall the USER'S OWN saved notes — their personal investment knowledge base (owner-scoped, only\n    ever their notes). Two combinable ways:\n      • SEMANTIC recall via `q` — natural language (\"what did I say about foundry manufacturing?\"); results\n        are ranked by MEANING with a `similarity` score (cross-language OK).\n      • Structured filters: `stock` (a ticker → their notes about it), `theme` (a sector/trend NAME →\n        resolved to the megatrend, subtree included), `gics` (6-digit code), `tag`, `note_type`\n        (reference/tracking/thesis/decision), `since` (e.g. '30d').\n    📌 `stock` + `relation` (direct|indirect|any, default any) splits how a note relates to that ticker —\n    same idea as newsfeed direct/indirect: `direct` = the note is ABOUT it (a subject); `indirect` = it's\n    only REFERENCED (e.g. a peer named in a note about ANOTHER stock — a \"NVDA vs peers\" note surfaces\n    under AMD as indirect). Every returned note carries a `relation` label when you filter by `stock`, so\n    you can say \"1 note about AMD + 1 that only mentions it\". Use `relation=\"direct\"` for \"notes really\n    about X\".\n    Returns note SUMMARIES + linked entities + `similarity` — NOT the full body (call `get_note(id)` for\n    that). `limit` default 10 (max 50).\n    🔴 FUSE personal + live: when the user asks about something they've likely noted, pair this with the\n    live read — e.g. `pulse(kind='asset', target=NVDA)` AND \"your NVDA thesis from last week said …\". That personal-\n    knowledge + live-graph combination is the whole point of the notes layer.",
          "inputSchema": {
            "type": "object",
            "title": "query_notesArguments",
            "properties": {
              "q": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Q",
                "default": null,
                "description": "Semantic query text — recall notes by MEANING (cross-language)."
              },
              "tag": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Tag",
                "default": null,
                "description": "Tag filter."
              },
              "gics": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Gics",
                "default": null,
                "description": "GICS code filter."
              },
              "limit": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Limit",
                "default": null,
                "description": "Max rows (default 20, hard cap 50). Keep SMALL + narrow the scope; page/refine rather than dump — heavily-covered assets have hundreds of articles."
              },
              "since": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Since",
                "default": null,
                "description": "Only notes since this date/window (e.g. `30d` or YYYY-MM-DD)."
              },
              "stock": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Stock",
                "default": null,
                "description": "Filter to notes about a ticker (name/ticker → resolved)."
              },
              "theme": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Theme",
                "default": null,
                "description": "Filter to a theme (name → megatrend, incl. subtree rollup)."
              },
              "context": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Context",
                "default": null,
                "description": "OPTIONAL but RECOMMENDED — paste the user's FULL request VERBATIM (any language: 'ขอราคาผลไม้ apple', 'compare Apple and Microsoft stock'). The server uses it to disambiguate which candidate each `ticker` entity means (the apple COMPANY vs the fruit COMMODITY; which Samsung). One context per call, shared by all tickers here."
              },
              "relation": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Relation",
                "default": null,
                "description": "With `stock=`: `direct` (note ABOUT it) | `indirect` (merely referenced) | `any` (default)."
              },
              "note_type": {
                "anyOf": [
                  {
                    "enum": [
                      "reference",
                      "tracking",
                      "thesis",
                      "decision"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Note Type",
                "default": null,
                "description": "Filter by type (reference/tracking/thesis/decision)."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true
          }
        },
        {
          "name": "get_note",
          "title": "Read Note",
          "description": "The FULL saved note (including its `body`) by id — owner-scoped. Use after `query_notes` when you\n    need the complete content, not just the summary.",
          "inputSchema": {
            "type": "object",
            "title": "get_noteArguments",
            "required": [
              "note_id"
            ],
            "properties": {
              "note_id": {
                "type": "integer",
                "title": "Note Id",
                "description": "The note's id (from query_notes results). Owner-scoped → 404 if not yours."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true
          }
        },
        {
          "name": "list_playlists",
          "title": "List Playlists",
          "description": "List the user's OWN feed playlists (id, name, emoji, item_count, items[{kind,ref_id,label}]).\n    🔴 Call this FIRST whenever the user refers to a playlist BY NAME (\"add X to My Tech List\") — you\n    match the (possibly mistyped / mis-spaced) name against the REAL names yourself. If the user didn't\n    say WHICH and they own more than one, ASK which one (show the names). If they own NONE, offer to\n    create one. Owner-scoped — only ever the user's own playlists. A playlist drives their news Feed.",
          "inputSchema": {
            "type": "object",
            "title": "list_playlistsArguments",
            "properties": {}
          },
          "annotations": {
            "readOnlyHint": true
          }
        },
        {
          "name": "create_playlist",
          "title": "Create Playlist",
          "description": "🔴 WRITE — create a new feed playlist (owner-scoped). Do NOT auto-create from a possible typo:\n    call `list_playlists` FIRST and only create when the name genuinely doesn't exist, or the user\n    confirms a new one. Returns the created playlist {id, name, …}.",
          "inputSchema": {
            "type": "object",
            "title": "create_playlistArguments",
            "required": [
              "name"
            ],
            "properties": {
              "name": {
                "type": "string",
                "title": "Name",
                "description": "The new playlist's display name."
              },
              "emoji": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Emoji",
                "default": null,
                "description": "Optional emoji icon for the playlist."
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "add_to_playlist",
          "title": "Add to Playlist",
          "description": "🔴 WRITE — add one or more STOCKS/assets to a playlist (batch, idempotent). Each entry may be an exact\n    Ava Advisor ticker OR a name/symbol the server resolves (any asset class: stock/ETF/commodity/crypto/FX). An\n    ambiguous name (e.g. same name across markets) returns a `needs_confirmation` reconfirm — pick the exact ticker\n    and re-call. `playlist_id` from `list_playlists`. Re-adding an existing ticker is a harmless no-op. Returns\n    `{added, skipped, item_count}` — ⚠️ RELAY any `skipped` to the user; never drop it silently.",
          "inputSchema": {
            "type": "object",
            "title": "add_to_playlistArguments",
            "required": [
              "playlist_id",
              "tickers"
            ],
            "properties": {
              "context": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Context",
                "default": null,
                "description": "OPTIONAL but RECOMMENDED — paste the user's FULL request VERBATIM (any language: 'ขอราคาผลไม้ apple', 'compare Apple and Microsoft stock'). The server uses it to disambiguate which candidate each `ticker` entity means (the apple COMPANY vs the fruit COMMODITY; which Samsung). One context per call, shared by all tickers here."
              },
              "tickers": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "title": "Tickers",
                "description": "Stocks to add — an EXACT Ava Advisor ticker (`AAPL.US`, `BTC-USD.CC`) OR a plain NAME/symbol ('Apple', 'ซัมซุง', 'btcusd') which the SERVER resolves for you (any asset class). An ambiguous/same-name-across-markets one comes back as a reconfirm to pick from."
              },
              "playlist_id": {
                "type": "integer",
                "title": "Playlist Id",
                "description": "The playlist's id (from list_playlists)."
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "remove_from_playlist",
          "title": "Remove from Playlist",
          "description": "🔴 WRITE — remove one or more stocks (by ticker) from a playlist (batch). `playlist_id` from\n    `list_playlists`. Returns `{removed, not_found, item_count}` — relay `not_found` (a ticker that\n    wasn't in the playlist) to the user.",
          "inputSchema": {
            "type": "object",
            "title": "remove_from_playlistArguments",
            "required": [
              "playlist_id",
              "tickers"
            ],
            "properties": {
              "tickers": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "title": "Tickers",
                "description": "Ava Advisor tickers to remove from the playlist."
              },
              "playlist_id": {
                "type": "integer",
                "title": "Playlist Id",
                "description": "The playlist's id."
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "stock_prices",
          "title": "Stock Prices",
          "description": "Price context for a tradable ticker (stock / ETF / index-ETF / forex / crypto / commodity), split &\n    dividend-ADJUSTED — a DIGESTED read, NOT a raw bar series: windowed changes (1w/1mo/3mo/ytd/1y), 52-week\n    range + `drawdown_from_52w_high_pct` (how far below the peak), realized vol + `realized_vol_percentile_1y`\n    (is today's vol high vs its OWN year), trend vs SMA50/200, volume conviction (`up_down_volume_ratio_1mo`,\n    rvol). `*_read` fields are ready plain-language labels — quote them, don't re-derive. Reach for this on\n    \"is it cheap/extended / how has it moved / why is it dropping\" — the LEVEL that makes a news+options read\n    actionable (or use `pulse(kind='asset')` to get price + news + options in one). `to` = as-of date (point-in-time,\n    YYYY-MM-DD, features as of that day); `from_` bounds history (narrowing below ~1y nulls the long windows).\n    For a SECTOR/theme (not one ticker) use `pulse(kind='theme')`, not this. 🔵 BONDS/RATES: if `metric_kind` ==\n    \"yield\" (a `.GB` govt-bond yield like US-10Y.GB or a `.MM` rate like SOFR.MM) the stored value is a\n    LEVEL, not a price — narrate each window's `change_bps` in BASIS POINTS, NOT `change_pct` (a % of a\n    yield is sign-inverted + the wrong unit; e.g. US-10Y 1y = \"+52 bps\", not \"+12%\"). Bonds also carry\n    per-window `price_proxy_pct` + top-level `mod_duration` = an L1 bond-PRICE estimate (≈ −ModDur×Δy) for\n    \"the bond fell ~4%\" narration (label it an ESTIMATE; for an exact bond return point to a bond ETF like\n    TLT/IEF). Volume fields (`rvol`, `up_down_volume_ratio_1mo`, …) are `null` for a yield — don't present\n    volume conviction; and yield↑ ⇒ bond price↓.",
          "inputSchema": {
            "type": "object",
            "title": "stock_pricesArguments",
            "required": [
              "ticker"
            ],
            "properties": {
              "to": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "To",
                "default": null,
                "description": "As-of date `YYYY-MM-DD` — features computed as of that day (point-in-time). Omit → latest."
              },
              "from_": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "From",
                "default": null,
                "description": "Lower bound of price history `YYYY-MM-DD`. Narrowing below ~1y nulls the long windows. Price history goes back DECADES (unlike news, 2026+)."
              },
              "ticker": {
                "type": "string",
                "title": "Ticker",
                "description": "A Ava Advisor ticker OR a company/asset NAME — the SERVER resolves it (no lookup step). A COMPANY/proper NAME passes AS-IS in any language (茅台/トヨタ/삼성 resolve natively — never translate a name); a generic COMMODITY/SECTOR concept must be ENGLISH (黄金→'gold', 原油→'crude oil'). Pass the user's full request in `context` to disambiguate ('apple' company vs fruit); if still ambiguous you get a `needs_confirmation` with candidates — resolve from conversation or ask, then re-call. Exact tickers pass through (Ava Advisor suffixes: Korea .KO, Taiwan .TW, commodity .COMM, crypto .CC, FX .FOREX, bond .GB, rate .MM)."
              },
              "context": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Context",
                "default": null,
                "description": "OPTIONAL but RECOMMENDED — paste the user's FULL request VERBATIM (any language: 'ขอราคาผลไม้ apple', 'compare Apple and Microsoft stock'). The server uses it to disambiguate which candidate each `ticker` entity means (the apple COMPANY vs the fruit COMMODITY; which Samsung). One context per call, shared by all tickers here."
              },
              "country": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Country",
                "default": null,
                "description": "OPTIONAL market disambiguator — pass ONLY when `ticker` is a plain NAME that collides across markets (the Thai vs Korean 'KBANK'); omit for a distinctive name or an exact ticker (an unneeded country silently 0-matches). A country NAME or ISO-2 code ('South Korea'/'KR'); the server normalizes, so pass the NAME when unsure — never GUESS a 2-letter code ('CH' = Switzerland, not China)."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true
          }
        },
        {
          "name": "latest_quote",
          "title": "Latest Quote (US, delayed)",
          "description": "The LATEST TRADED PRICE today for US stocks / ETFs — a DELAYED intraday quote (typically ~15 minutes behind),\n    with today's change vs the previous close. Use it when the user asks about TODAY during the US session (\"why is\n    UBER down today\", \"where is NVDA trading\"): every other price tool is END-OF-DAY (last close). US listings only —\n    any other market returns `not_covered` (use stock_prices). Pair the move with today's news (stock_impact /\n    search_news) for the why. State the quote time and that it is delayed; it is not a live tick.",
          "inputSchema": {
            "type": "object",
            "title": "latest_quoteArguments",
            "required": [
              "tickers"
            ],
            "properties": {
              "context": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Context",
                "default": null,
                "description": "OPTIONAL but RECOMMENDED — paste the user's FULL request VERBATIM (any language: 'ขอราคาผลไม้ apple', 'compare Apple and Microsoft stock'). The server uses it to disambiguate which candidate each `ticker` entity means (the apple COMPANY vs the fruit COMMODITY; which Samsung). One context per call, shared by all tickers here."
              },
              "tickers": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  {
                    "type": "string"
                  }
                ],
                "title": "Tickers",
                "description": "1–10 US tickers or company NAMES (e.g. `UBER.US`, `Uber`, `AAPL`) — names are resolved for you."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true
          }
        },
        {
          "name": "etf_profile",
          "title": "ETF Profile",
          "description": "What a US ETF / fund HOLDS: top holdings with % of NAV, sector (GICS) and country weights, plus the fund facts\n    — AUM, expense ratio, benchmark / index or active, holdings count, top-10 concentration, tracking difference\n    (SEC N-PORT / N-CEN filings; `as_of` dates say how fresh). Use it for \"what does SCHD hold\", \"how concentrated is\n    QQQ\", \"SPY vs VOO fees\", \"sector mix of XLE\". ETFs rarely have news of their own — for \"why is it moving\" pair\n    this with stock_impact / pulse on the top holdings. Non-fund tickers → `not_a_fund`.",
          "inputSchema": {
            "type": "object",
            "title": "etf_profileArguments",
            "required": [
              "ticker"
            ],
            "properties": {
              "top": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Top",
                "default": null,
                "description": "How many top holdings to list (default 15, max 50)."
              },
              "ticker": {
                "type": "string",
                "title": "Ticker",
                "description": "A Ava Advisor ticker OR a company/asset NAME — the SERVER resolves it (no lookup step). A COMPANY/proper NAME passes AS-IS in any language (茅台/トヨタ/삼성 resolve natively — never translate a name); a generic COMMODITY/SECTOR concept must be ENGLISH (黄金→'gold', 原油→'crude oil'). Pass the user's full request in `context` to disambiguate ('apple' company vs fruit); if still ambiguous you get a `needs_confirmation` with candidates — resolve from conversation or ask, then re-call. Exact tickers pass through (Ava Advisor suffixes: Korea .KO, Taiwan .TW, commodity .COMM, crypto .CC, FX .FOREX, bond .GB, rate .MM)."
              },
              "context": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Context",
                "default": null,
                "description": "OPTIONAL but RECOMMENDED — paste the user's FULL request VERBATIM (any language: 'ขอราคาผลไม้ apple', 'compare Apple and Microsoft stock'). The server uses it to disambiguate which candidate each `ticker` entity means (the apple COMPANY vs the fruit COMMODITY; which Samsung). One context per call, shared by all tickers here."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true
          }
        },
        {
          "name": "price_series",
          "title": "Price Series",
          "description": "A SMALL, bounded price SERIES for drawing a chart (a device screen, a sparkline) plus headline numbers —\n    the counterpart of `stock_prices`, which is a digested read with no series. Returns ticker, name, metric_kind\n    (`yield` = a bond yield / rate: levels in %, moves in bps via period_change_bps / change_bps_by_period), currency,\n    range, interval (`day`|`week`|`month`), period_start_date / period_end_date, last_close, period_change_pct,\n    period_high / period_low (+ their dates), last_volume, average_daily_volume, change_pct_by_period\n    {1w, 1mo, 3mo, ytd, 1y}, and `series` {dates, closes[, volumes]} as parallel arrays (≤ 65 points). EOD daily\n    data, split/dividend-adjusted closes — the last point is the LAST CLOSE, not an intraday quote. Weekly/monthly\n    points are each period's last close. Use this when a chart or a few chart numbers are needed; for \"is it\n    cheap / extended / why is it moving\" use `stock_prices` or `pulse(kind='asset')`.",
          "inputSchema": {
            "type": "object",
            "title": "price_seriesArguments",
            "required": [
              "ticker"
            ],
            "properties": {
              "range": {
                "anyOf": [
                  {
                    "enum": [
                      "1w",
                      "1mo",
                      "3mo",
                      "6mo",
                      "1y",
                      "3y",
                      "5y",
                      "10y",
                      "max"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Range",
                "default": null,
                "description": "Chart window. `1w`|`1mo`|`3mo` → daily points; `6mo`|`1y` → weekly; `3y`|`5y` → monthly; `10y` → 2-month; `max` = full history (1–12-month points). Default `1mo`. Never more than 65 points."
              },
              "ticker": {
                "type": "string",
                "title": "Ticker",
                "description": "A Ava Advisor ticker OR a company/asset NAME — the SERVER resolves it (no lookup step). A COMPANY/proper NAME passes AS-IS in any language (茅台/トヨタ/삼성 resolve natively — never translate a name); a generic COMMODITY/SECTOR concept must be ENGLISH (黄金→'gold', 原油→'crude oil'). Pass the user's full request in `context` to disambiguate ('apple' company vs fruit); if still ambiguous you get a `needs_confirmation` with candidates — resolve from conversation or ask, then re-call. Exact tickers pass through (Ava Advisor suffixes: Korea .KO, Taiwan .TW, commodity .COMM, crypto .CC, FX .FOREX, bond .GB, rate .MM)."
              },
              "context": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Context",
                "default": null,
                "description": "OPTIONAL but RECOMMENDED — paste the user's FULL request VERBATIM (any language: 'ขอราคาผลไม้ apple', 'compare Apple and Microsoft stock'). The server uses it to disambiguate which candidate each `ticker` entity means (the apple COMPANY vs the fruit COMMODITY; which Samsung). One context per call, shared by all tickers here."
              },
              "country": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Country",
                "default": null,
                "description": "OPTIONAL market disambiguator — pass ONLY when `ticker` is a plain NAME that collides across markets (the Thai vs Korean 'KBANK'); omit for a distinctive name or an exact ticker (an unneeded country silently 0-matches). A country NAME or ISO-2 code ('South Korea'/'KR'); the server normalizes, so pass the NAME when unsure — never GUESS a 2-letter code ('CH' = Switzerland, not China)."
              },
              "include_volume": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Include Volume",
                "default": null,
                "description": "Add `series.volumes` (summed per week/month). Default false — closes only."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true
          }
        },
        {
          "name": "stock_prices_batch",
          "title": "Batch Stock Prices",
          "description": "The same digested price context for UP TO 50 tickers in ONE call — a watchlist / cohort snapshot\n    (\"which of these names are most extended, or deepest in drawdown\"). Returns `results` (in input order)\n    + `unresolved` (unknown / no-price-history tickers). `to`/`from_` as in `stock_prices`.",
          "inputSchema": {
            "type": "object",
            "title": "stock_prices_batchArguments",
            "required": [
              "tickers"
            ],
            "properties": {
              "to": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "To",
                "default": null,
                "description": "As-of date `YYYY-MM-DD` (point-in-time). Omit → latest."
              },
              "from_": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "From",
                "default": null,
                "description": "Lower bound of price history `YYYY-MM-DD` (below ~1y nulls the long windows)."
              },
              "context": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Context",
                "default": null,
                "description": "OPTIONAL but RECOMMENDED — paste the user's FULL request VERBATIM (any language: 'ขอราคาผลไม้ apple', 'compare Apple and Microsoft stock'). The server uses it to disambiguate which candidate each `ticker` entity means (the apple COMPANY vs the fruit COMMODITY; which Samsung). One context per call, shared by all tickers here."
              },
              "tickers": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "title": "Tickers",
                "description": "UP TO 50 items, EACH a Ava Advisor ticker OR a plain company/asset NAME — the SERVER resolves names (pass `context` to disambiguate); a watchlist/cohort. Returns `results` in input order + `unresolved`."
              },
              "chart_range": {
                "anyOf": [
                  {
                    "enum": [
                      "1w",
                      "1mo",
                      "3mo",
                      "6mo",
                      "1y",
                      "3y",
                      "5y",
                      "10y",
                      "max"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Chart Range",
                "default": null,
                "description": "Leave unset. For apps/devices that draw charts themselves: adds `chart` (≤ 65 points) to the first 5 results."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true
          }
        },
        {
          "name": "positioning",
          "title": "Futures Positioning (COT)",
          "description": "⭐ How the FUTURES market is POSITIONED — the CFTC Commitment of Traders lens for commodities, FX,\n    rates and equity indices (the non-equity TWIN of options_sentiment; the two together cover positioning\n    for every asset class). Answers 'is this trade crowded?', 'is the smart money leaning the other way?',\n    'is the good news already priced into positioning?'. Returns: `crowding` (the speculative crowd at a\n    3-year extreme = a contrarian RISK, NOT a timing call), `smart_vs_crowd` (are commercial hedgers — who\n    know the physical/fundamental side — leaning against the crowd), `momentum` (building or unwinding; a\n    flip = regime change), `fragility` (a few big traders holding it = reverses fast), and ⭐\n    `news_vs_positioning` (does recent news CONFIRM the crowd → priced-in, or CONTRADICT a crowded position →\n    unwind risk). Weekly, as of the prior TUESDAY. For a RATE/YIELD asset (`.GB`/`.MM`) a long futures =\n    positioned for LOWER yields (the reads already say it that way). 🗣 Every feature carries a PLAIN `read`\n    — narrate it in EVERYDAY language for a beginner (no 'net'/'percentile'/'basis' jargon); say what it\n    MEANS for risk. Facts, not advice — the verdict is yours. A stock / uncovered asset → `__notfound`: say\n    futures positioning doesn't apply and use options_sentiment / the news read instead.",
          "inputSchema": {
            "type": "object",
            "title": "positioningArguments",
            "required": [
              "q"
            ],
            "properties": {
              "q": {
                "type": "string",
                "title": "Q",
                "description": "A COMMODITY / FX / RATES / INDEX to read FUTURES positioning for — a concept IN ENGLISH (oil, gold, copper, natural gas, US 10Y treasury, euro, S&P 500; translate first) or a Ava Advisor ticker (WTI.COMM, US-10Y.GB, EURUSD.FOREX, SPY.US). NOT a single stock — a stock's positioning lives in OPTIONS, use options_sentiment."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true
          }
        },
        {
          "name": "cot_extremes",
          "title": "CFTC / COT Futures Extremes",
          "description": "⭐ FUTURES / CFTC-COT speculative positioning extremes — which commodity / FX / rate / equity-INDEX\n    FUTURES have the CROWD at a 3-year extreme right now (NOT single-stock equity options → for 'stretched\n    put/call' or crowded STOCK names use options_scan). The discovery scan across every tracked\n    futures market at once. COT / FUTURES lens ONLY. Surfaces stretched positioning (≥90th or ≤10th\n    percentile of its own 3y history) that could unwind hard on a shock — a contrarian-RISK map, NOT buy/sell\n    calls (an extreme can persist). Use for 'where is FUTURES positioning most crowded / stretched right now?'.\n    🔴 WRONG TOOL for single-STOCK options crowding — 'stretched put/call', 'one-sided / crowded equity names',\n    'most extreme options positioning across stocks': for those use options_scan (pattern='crowded / one-sided' —\n    the equity-options opana lens across ~557 US optionable names). Narrate each `read` plainly.",
          "inputSchema": {
            "type": "object",
            "title": "cot_extremesArguments",
            "properties": {
              "limit": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Limit",
                "default": null,
                "description": "Max markets (default 15, max 50)."
              },
              "asset_class": {
                "anyOf": [
                  {
                    "enum": [
                      "commodity",
                      "fx",
                      "rates",
                      "equity_index"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Asset Class",
                "default": null,
                "description": "Filter: `commodity` | `fx` | `rates` | `equity_index`. Omit = all."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true
          }
        },
        {
          "name": "financials",
          "title": "Financials",
          "description": "⭐ Company FINANCIAL STATEMENTS — income / balance / cash-flow + auto-detected abnormality signals. Read ONE\n    company or COMPARE up to 8 (revenue, growth, margins, ROE, FCF…), on a clean normalized feed uniform across every\n    industry (banks, insurers, REITs).\n    🔴 To compare SEVERAL, pass them ALL in ONE call (tickers='TSLA.US,MSFT.US') — a single call aligns them on a\n    common basis+currency and costs a fraction of N calls. Pick ONE `period` (quarterly already carries YoY).\n    🎚 `fields`: leave EMPTY for the DIGEST (small default — headline + ratios + capital-return + signals; covers most\n    compares); set it for specific line items, a whole statement ('income'|'balance'|'cashflow'), or 'all'.\n    ⏱ `period` = the window (5y / 2022 / 2022-2023 / 5q / 2024Q2), mapped to each fiscal year. 🌐 currency=USD (auto for\n    multi-company) converts totals at each period's date. 🗣 The digest carries a plain `read` (facts, not advice) and may\n    carry `_notes` (per-period comparability flags — the warning is FACT, each `likely_causes` is an inferred lead to VERIFY).\n    📏 LIMITS: ≤8 companies · ≤20 fields · ~4–5y history. A non-equity/unlisted entry → `ok:false`.\n    🔴 pulse(kind='asset') on a stock ALREADY embeds this digest — call financials only for a dedicated read/compare or a\n    specific fields/statement pull, not right after pulse(kind='asset').",
          "inputSchema": {
            "type": "object",
            "title": "financialsArguments",
            "required": [
              "tickers"
            ],
            "properties": {
              "fields": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Fields",
                "default": null,
                "description": "OPTIONAL — the granularity dial. LEAVE EMPTY for the DIGEST (headline + ratios ROE/ROA/margins/debt/current/quick + capital-return dividends/buybacks + abnormality signals) — the safe default that already answers most reads/compares. Set it ONLY for a specific LINE ITEM the digest lacks. Comma-separated / a list. 🆕 EACH entry can be EITHER an exact key OR a plain-English description — the SERVER resolves it for you (no need to know the exact key, no separate resolver call):\n  • exact key if you know it → used directly (fast): revenue, cost_of_revenue, gross_profit, operating_income, ebit, ebitda, net_income, total_assets, current_assets, cash, inventory, receivables, net_ppe, goodwill, intangibles, total_liabilities, current_debt, long_term_debt, total_debt, total_equity, retained_earnings, operating_cash_flow, free_cash_flow, capex, dividends_paid, buybacks, … (BANK/INSURANCE lines too). \n  • don't know the key? just DESCRIBE the line — 🔴 in ENGLISH (translate first: ค่าความนิยม→'goodwill', 投資不動産→'investment properties') — e.g. 'construction in progress', 'held-to-maturity securities', 'accrued interest receivable'. Loose/approximate English is fine (the server matches meaning). \n  • 'income' | 'balance' | 'cashflow' → that WHOLE statement · 'all' → every reported line (large).\n🔴 If a term is AMBIGUOUS or NOT a financial-statement line, the tool returns `needs_confirmation` — follow its `_guide`/`note` (pick from candidates and re-call, or tell the user it's unavailable). Unreported-but-valid line → empty/`unavailable_fields`; state absences plainly, never fabricate. NOTE: ratios/multiples (ROE, P/E) live in the DIGEST, not here."
              },
              "period": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Period",
                "default": null,
                "description": "OPTIONAL time selector, mapped to each company's FISCAL year. Forms: '5' or '5y' = last 5 years (default 5) · '2022' = that fiscal year · '2022-2023' = a range · '2020,2022' = specific years · '5q' = last 5 quarters · '2024Q2' = one quarter · 'quarterly' = latest quarters. History reaches ~4–5 years back — an older specific year may be unavailable (the server says so)."
              },
              "context": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Context",
                "default": null,
                "description": "OPTIONAL but RECOMMENDED — paste the user's FULL request VERBATIM (any language: 'ขอราคาผลไม้ apple', 'compare Apple and Microsoft stock'). The server uses it to disambiguate which candidate each `ticker` entity means (the apple COMPANY vs the fruit COMMODITY; which Samsung). One context per call, shared by all tickers here."
              },
              "tickers": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                ],
                "title": "Tickers",
                "description": "1–8 comma-separated COMMON-STOCK companies to read/compare financial statements for. EACH entry can be EITHER an exact Ava Advisor ticker ('AAPL.US', '2330.TW') — used directly — OR a bare symbol / company name ('AAPL', 'Apple', 'トヨタ') which the SERVER resolves for you (no separate lookup step). 🔴 If an entry is AMBIGUOUS (same name/symbol across markets or entities) or is NOT a company, the tool returns `needs_confirmation` — follow its `_guide`. NOT for ETF/commodity/bond/crypto — no company financials."
              },
              "currency": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Currency",
                "default": null,
                "description": "Convert ABSOLUTE totals to this currency (e.g. USD) at each period's date so cross-currency companies compare — margins/growth are currency-neutral anyway. A multi-company compare defaults to USD."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true
          }
        },
        {
          "name": "screen_unified",
          "title": "Unified Screener (Universe × Fundamental × Technical)",
          "description": "EXECUTE a unified screen = universe ∩ fundamental ∩ technical ∩ options (any leg optional; each grammar resolved\n    server-side — key or plain English). Returns {universe, count, sort, executed_criteria (the resolved request that ran — save/re-run it verbatim), results:[{head_listing_id, ticker, name, score,\n    matched_legs, matched:{ta, fundamental:{<metric>:{value, basis, window?, series?, periods?}}}, context}], notes}.\n    Evidence keys == the leg name you sent (TA→matched.ta, fundamentals→matched.fundamental, NOT technical/financial);\n    `matched_legs` lists which leg(s) a row passed. A thin intersection adds partial:true + per-leg near-misses — never\n    present a partial/one-leg row as a full match; read `notes` (names the tighter leg + how to broaden).\n    Time windows are PER-LEG: TA 'within last N bars' = top-level `window_bars`; a fundamental trend's span = that\n    condition's `N`. Options leg is US-optionable only (~557 → US-capped); sort='options' ranks by it; an\n    options-vs-price divergence = just send the phrase in `options`. FAILS LOUD: an unsupported pattern/operand/concept\n    returns a 400, so count:0 with NO error = a VALID query that matched zero now (loosen / widen window_bars, don't say\n    'can't do X'); `notes` may say 'insufficient history' (not a no-match) or which basis was screened. Over-fetches a\n    ~4× buffer (cap 100) so 'show me more' is served from these rows — don't re-call.",
          "inputSchema": {
            "truncated": true,
            "chars": 20533
          },
          "annotations": {
            "readOnlyHint": true
          }
        },
        {
          "name": "screen_stocks",
          "title": "Screen Stocks",
          "description": "⭐ The cohort SCREENER: \"which stocks in <a group> are interesting / winning / losing / most-talked-about,\n    and how cheap or expensive do they trade?\" Ranks the companies in a scope by how news is hitting them (lead with\n    the winners-vs-losers split), and EVERY row carries its VALUATION (P/E, P/B, dividend yield, 52w) — so this is\n    also the tool for \"which in <group> are cheap / worth investing\" (pulse(kind='theme')/brief are news-only, no valuation —\n    pull P/E from here; P/B leads for banks/insurers).\n    ⚠️ Rows are a NEWS-RANKED, CAPPED SUBSET, not the full cohort — do NOT compute a sector/peer AVERAGE from them\n    (biased sample). For \"cheaper/richer than the sector average / below-above the group / undervalued vs peers\" use\n    screen_unified with a `below_average`/`above_average` pattern (proper cap-weighted, outlier-cleaned benchmark).\n    Scope ≥1 REQUIRED (never whole-universe): megatrend / gics / country — combine freely.\n    Each row = {symbol, name, country, gic_code, market_cap_usd, impact:{news_count, pos, neg, ambiguous,\n    net_direction, top_relevance, aspects, top_reason}, fundamentals:{pe_ratio, pb_ratio, dividend_yield_pct,\n    week52_high, week52_low}}; `direction_split` pre-tallies winners/losers. ⚠️ per-stock impact scoring exists only\n    from ~2026-07-03 — an earlier window returns empty (say so, not \"nothing happened\"). One ticker → pulse(kind='asset');\n    a group's overall pulse → pulse(kind='theme'); a sector-average benchmark → screen_unified.",
          "inputSchema": {
            "type": "object",
            "title": "screen_stocksArguments",
            "properties": {
              "to": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "To",
                "default": null,
                "description": "Upper time bound, ISO date `YYYY-MM-DD`."
              },
              "gate": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Gate",
                "default": null,
                "description": "megatrend scope only: `both` (default, strict member AND epicenter) | `membership` (looser)."
              },
              "gics": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Gics",
                "default": null,
                "description": "A GICS sector/industry — a CODE PREFIX (sector `25` / group `2550` / industry `255010` / sub `25501010`, CSV for several) OR plain English ('banks', 'semiconductors', 'biotech'); the server resolves it. 🔴 ENGLISH (translate the concept first: ธนาคาร→'banks'). So 'European banks' = gics='banks' + country=EU codes."
              },
              "from_": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "From",
                "default": null,
                "description": "Start date YYYY-MM-DD. ⚠️ per-stock impact scoring only exists from ~2026-07-03 (earlier → empty)."
              },
              "limit": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Limit",
                "default": null,
                "description": "Max rows (default 20, hard cap 50). Keep SMALL + narrow the scope; page/refine rather than dump — heavily-covered assets have hundreds of articles."
              },
              "aspect": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Aspect",
                "default": null,
                "description": "Impact CHANNEL filter (e.g. `demand`, `competition`, `tariff`, `monetary`). Omit → all channels."
              },
              "window": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Window",
                "default": null,
                "description": "News-recency window: `7d`/`30d`/`90d`/`180d`/`1y` or `mtd`/`qtd`/`ytd`. Omit → a sensible default. (Price history is unaffected — this only scopes the NEWS lens.)"
              },
              "country": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Country",
                "default": null,
                "description": "Market filter — CSV of ISO-2 codes (e.g. `US` or `CN,TW,HK`). 🌍 If the question names a NATIONALITY or REGION ('European','Thai','Chinese','ASEAN'), put it HERE — never leave it inside a concept/`q`/`gics` field. Enumerate a region into its member ISO-2s yourself (Europe→GB,DE,FR,IT,ES,NL,CH,SE; ASEAN→TH,SG,MY,ID,PH,VN)."
              },
              "order_by": {
                "anyOf": [
                  {
                    "enum": [
                      "news_count",
                      "relevance",
                      "market_cap"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Order By",
                "default": null,
                "description": "`news_count` (default, most attention) | `relevance` | `market_cap`."
              },
              "direction": {
                "anyOf": [
                  {
                    "enum": [
                      "pos",
                      "neg"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Direction",
                "default": null,
                "description": "`pos` → winners only · `neg` → losers/at-risk only · omit → all."
              },
              "megatrend": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Megatrend",
                "default": null,
                "description": "A megatrend node — a name/slug (resolved for you, e.g. `foundry`) or an int node id. CSV for several."
              },
              "min_impact": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Min Impact",
                "default": null,
                "description": "Min article importance, 1–5."
              },
              "min_relevance": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Min Relevance",
                "default": null,
                "description": "Min centrality to its news, 0–1."
              },
              "min_market_cap_usd": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Min Market Cap Usd",
                "default": null,
                "description": "Min market cap, USD."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true
          }
        },
        {
          "name": "screen_dividends",
          "title": "Screen Dividends",
          "description": "💰 THE income screener — \"which stocks pay a high / reliable / growing DIVIDEND?\" Ranks the DIVIDEND-PAYING\n    universe (all payers, not just news-covered) and hands you the raw pieces to tell a real income name from a YIELD\n    TRAP (don't trust a headline yield).\n    🔴 A multi-metric ask that also needs P/E / financial-health (dividend AND low P/E AND healthy) belongs in\n    screen_unified (a `fundamental` leg + `dividend_min_streak_years`/`dividend_min_cagr` gate). THIS tool is the\n    dividend specialist (no P/E filter) but it both INCLUDES (`gics`) and EXCLUDES (`exclude_gics`) a sector.\n    Scope (country/gics) is OPTIONAL — omit both for a fast whole-market rank.\n    🔴 `no_cut_streak_yrs` is a bounded RELIABILITY signal, capped at 10 (clean across the tracked decade incl. 2020/\n    2022 stress) — NOT the dividend's full age; never state a multi-decade \"aristocrat/king\" streak, say \"clean 10y+\".\n    Each row's `dividend` block decomposes the yield: `yield_pct` (forward/sustainable — quote this), `yield_trailing_pct`\n    (>> yield_pct ⇒ a special inflated it), `payout_ratio` (>1 = unsustainable), `ttm_div_yoy_pct`, `no_cut_streak_yrs`,\n    `last_cut_year`, `cagr_5y_pct`, plus `week52_high/low` + `pe_ratio`/`pb_ratio`/`eps` + a `news` block. 🔴 Never rank on\n    yield alone: high yield + recent `last_cut_year` + negative yoy + high payout + bad news = TRAP; high yield from a\n    price drop + intact/growing dividend + long streak = possible VALUE. Read the payload's `_guide`. limit default 15 (max 50).",
          "inputSchema": {
            "type": "object",
            "title": "screen_dividendsArguments",
            "properties": {
              "gics": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Gics",
                "default": null,
                "description": "A GICS sector/industry — a CODE PREFIX (sector `25` / group `2550` / industry `255010` / sub `25501010`, CSV for several) OR plain English ('banks', 'semiconductors', 'biotech'); the server resolves it. 🔴 ENGLISH (translate the concept first: ธนาคาร→'banks'). So 'European banks' = gics='banks' + country=EU codes."
              },
              "limit": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Limit",
                "default": null,
                "description": "Max rows (default 20, hard cap 50). Keep SMALL + narrow the scope; page/refine rather than dump — heavily-covered assets have hundreds of articles."
              },
              "country": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Country",
                "default": null,
                "description": "Market filter — CSV of ISO-2 codes (e.g. `US` or `CN,TW,HK`). 🌍 If the question names a NATIONALITY or REGION ('European','Thai','Chinese','ASEAN'), put it HERE — never leave it inside a concept/`q`/`gics` field. Enumerate a region into its member ISO-2s yourself (Europe→GB,DE,FR,IT,ES,NL,CH,SE; ASEAN→TH,SG,MY,ID,PH,VN)."
              },
              "min_cagr": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Min Cagr",
                "default": null,
                "description": "Min 5-year dividend CAGR, %."
              },
              "order_by": {
                "anyOf": [
                  {
                    "enum": [
                      "yield",
                      "streak",
                      "cagr"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Order By",
                "default": null,
                "description": "`yield` (default) | `streak` | `cagr`."
              },
              "max_yield": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Max Yield",
                "default": null,
                "description": "Max yield % — guards against trap-tier yields."
              },
              "min_yield": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Min Yield",
                "default": null,
                "description": "Min dividend yield in PERCENT (3 = 3%)."
              },
              "max_payout": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Max Payout",
                "default": null,
                "description": "Max payout ratio — 'high yield but payout NOT stretched'. Fraction (0.7) or percent (70)."
              },
              "exclude_gics": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Exclude Gics",
                "default": null,
                "description": "OPTIONAL — EXCLUDE a sector/industry from the screen (GICS code prefix e.g. '4010', OR plain English 'banks' — the server resolves the name). 'high-yield stocks but NOT banks' = exclude_gics='banks'. A stock with no GICS classification is KEPT."
              },
              "min_streak_years": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Min Streak Years",
                "default": null,
                "description": "Min no-cut streak years (0–10; caps at 10 = clean across the whole tracked decade). HIGHER = more reliable. A low bar lets a name that CUT recently through — it may have only rebuilt a short streak since its `last_cut_year`, so a short streak ≠ 'stable'. The stronger the 'safe / stable / hold-for-years' intent, the closer to the cap you should set it."
              },
              "max_market_cap_usd": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Max Market Cap Usd",
                "default": null,
                "description": "Max market cap, USD."
              },
              "min_market_cap_usd": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Min Market Cap Usd",
                "default": null,
                "description": "Min market cap, USD."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true
          }
        },
        {
          "name": "trade",
          "title": "Trade Flows & Rankings",
          "description": "International TRADE STATISTICS — countries' import/export flows, partners, rankings and balances from UN Comtrade\n    (official customs data). NOT securities trading: it never places, routes or executes an order. Pick `mode`; each mode reads a subset of the params (see each param's note).",
          "inputSchema": {
            "type": "object",
            "title": "tradeArguments",
            "required": [
              "mode"
            ],
            "properties": {
              "flow": {
                "anyOf": [
                  {
                    "enum": [
                      "export",
                      "import",
                      "both"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Flow",
                "default": null,
                "description": "export/import/both. Defaults: flows/top_partners=export, top_traders=import."
              },
              "freq": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Freq",
                "default": null,
                "description": "annual (default) | monthly (YYYYMM, goods only). flows only."
              },
              "mode": {
                "enum": [
                  "flows",
                  "top_partners",
                  "top_traders",
                  "balance"
                ],
                "type": "string",
                "title": "Mode",
                "description": "flows = one country's trade of a product over time · top_partners = a country's biggest trading partners for a product · top_traders = rank COUNTRIES by trade of a product (world/region) · balance = a country's trade balance (surplus/deficit)."
              },
              "type": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Type",
                "default": null,
                "description": "goods (default, HS) | services (EBOPS, value-only). flows/top_partners."
              },
              "codes": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Codes",
                "default": null,
                "description": "Product: HS code(s) OR a plain-English product ('copper','cars'), server-resolved. REQUIRED for flows/top_partners/top_traders; omit for balance → TOTAL (all goods)."
              },
              "limit": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Limit",
                "default": null,
                "description": "top_partners/top_traders: top-N (default 10, max 50)."
              },
              "order": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Order",
                "default": null,
                "description": "top_traders only: desc (default) / asc; for streak = run direction."
              },
              "scope": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Scope",
                "default": null,
                "description": "top_traders only: world (default) / continent / subregion / econ group (asean/eu/g7) / CSV ISO-2."
              },
              "mirror": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Mirror",
                "default": null,
                "description": "Also return the partner-reported figure + discrepancy (China esp.). flows only, goods."
              },
              "period": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Period",
                "default": null,
                "description": "Year '2023' / list '2020,2021' / range '2015:2024' / 'lastN' / 'latest'. DYNAMIC — never hardcode. Defaults vary by mode."
              },
              "context": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Context",
                "default": null,
                "description": "OPTIONAL but RECOMMENDED — the user's FULL request VERBATIM (any language). Used to pick the right code + SUPPLY STAGE (ore vs concentrate vs refined) and leaf-vs-family granularity for a `codes` concept."
              },
              "partner": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Partner",
                "default": null,
                "description": "Partner country, or 'World' (default). flows/balance only."
              },
              "rank_by": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Rank By",
                "default": null,
                "description": "top_traders only: value (default) / growth (CAGR) / streak."
              },
              "reporter": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Reporter",
                "default": null,
                "description": "Reporting country — name/ISO/M49 ('Thailand'/'THA'/'764'), server-resolved. REQUIRED for flows/top_partners/balance."
              },
              "min_value_usd": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Min Value Usd",
                "default": null,
                "description": "top_traders only: floor to drop tiny-base noise."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true
          }
        },
        {
          "name": "fred_series",
          "title": "Macro Series + Analysis (FRED)",
          "description": "\"What is <macro indicator> / is it high vs history / how has it moved\" — ONE FRED series, feature-extracted.\n    Pass a macro CONCEPT (the server resolves it to the canonical series_id + the right transform) or an exact id.\n    Returns `series` (transformed points) + an `analysis` block: `latest` (+date — always say as-of-when), `trend`,\n    `change` (vs prior/YoY/window), `peak`/`trough`, and 🔑 `percentile`+`z_score` vs the window's own history (the\n    money-shot for \"high or low?\" — e.g. unemployment 8th pct = historically very low), `volatility`, a one-line\n    `read`. 🔵 `transform` matters and is auto-picked from the resolved series (\"inflation\" = pc1 YoY % of a price\n    index, a rate = lin) — override only deliberately. QUOTE the `read`; narrate the percentile. Compare two = call\n    once per concept and diff. A concept that isn't a FRED series (ISM/PMI, a commodity SPOT price → pulse(kind='commodity'))\n    → honest no_match, not a fabrication. US-govt series are public domain (`_license_note`).",
          "inputSchema": {
            "type": "object",
            "title": "fred_seriesArguments",
            "required": [
              "q"
            ],
            "properties": {
              "q": {
                "type": "string",
                "title": "Q",
                "description": "A macro CONCEPT (any language — 'inflation', 'core PCE', 'unemployment rate', '10y yield', 'อัตราว่างงาน') OR an exact FRED series_id you already hold (CPIAUCSL). The SERVER resolves a concept → the canonical series + the RIGHT transform (no separate lookup). 🌐 a macro concept is safest in ENGLISH (a native concept may drift). 🔴 Pass the user's FULL request in `context` so the server picks the right VARIANT (headline vs CORE CPI, SA vs NSA, PCE vs CPI). ⛔ ONE concept per call — compare two = call twice + diff. For a NON-US concept put the country in `country`, NOT in this field ('Japanese inflation' → series_id='inflation', country='JP')."
              },
              "to": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "To",
                "default": null,
                "description": "End — ISO date. Omit → latest."
              },
              "from_": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "From",
                "default": null,
                "description": "Start — ISO date or relative window `10y`/`5y`/`qtd` (dynamic, anchored to today)."
              },
              "context": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Context",
                "default": null,
                "description": "OPTIONAL but RECOMMENDED — the user's FULL request VERBATIM (any language). Used to pick the right series VARIANT (headline vs core, SA vs NSA). e.g. 'is US core inflation still sticky?'"
              },
              "country": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Country",
                "default": null,
                "description": "OPTIONAL ISO-2 to bias a CONCEPT to a country's series (JP, DE) — the nationality from the question goes HERE, not in `series_id`. FRED intl coverage is uneven; omit for US (default)."
              },
              "transform": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Transform",
                "default": null,
                "description": "FRED units transform — `lin` (level: a rate/ratio) · `pc1` (YoY %: inflation/price index) · `pca` (annualized %: real GDP) · `pch` (period %) · `chg`/`ch1` (abs Δ). Omit → the resolved series' suggested transform."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true
          }
        },
        {
          "name": "wb_series",
          "title": "World Bank Data + Analysis",
          "description": "\"<structural indicator> for <country>, over time / vs other countries\" — World Bank annual data,\n    feature-extracted (open data, 3 credits). Pass a structural CONCEPT (the server resolves it to the canonical\n    indicator + variant) or an exact indicator id. Returns `results:[{country, series:[{year,value}], analysis}]`\n    (one per country); `analysis` = `latest`(+year), `trend`, `cagr_pct`, `change`, `peak`/`trough`. ⭐ For a\n    MULTI-COUNTRY call (comma-sep `country`) a top-level `ranking` orders them by the latest value — the\n    cross-country compare FRED can't do. Annual STRUCTURAL data → read levels + CAGR, not high-frequency moves.\n    A country/year with no data is omitted (never interpolated). The right VARIANT (%GDP vs US$ vs per-capita) is\n    picked from your `context`. A concept that isn't World-Bank structural (CPI/unemployment → fred_series) → honest\n    no_match. Surface `_license_note` when showing data.",
          "inputSchema": {
            "type": "object",
            "title": "wb_seriesArguments",
            "required": [
              "q",
              "country"
            ],
            "properties": {
              "q": {
                "type": "string",
                "title": "Q",
                "description": "A cross-country STRUCTURAL concept (any language — 'household consumption', 'GDP per capita', 'poverty rate', 'life expectancy', 'government debt', 'การบริโภค') OR an exact World Bank indicator id you already hold (WB_WDI_NE_CON_PRVT_ZS). The SERVER resolves a concept → the canonical indicator + the right unit VARIANT (no separate lookup). 🔴 Pass the user's FULL request in `context` so the server picks the VARIANT: % of GDP/share (compare across country sizes) vs current US$ (absolute) vs per-capita (living standards) vs constant/real. World Bank = ANNUAL structural data (consumption/GDP/demographics/poverty) — NOT high-frequency macro (CPI/unemployment/rates → fred_series)."
              },
              "to": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "To",
                "default": null,
                "description": "End year (default latest)."
              },
              "from_": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "From",
                "default": null,
                "description": "Start year (default ≈ last 15y, dynamic)."
              },
              "context": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Context",
                "default": null,
                "description": "OPTIONAL but RECOMMENDED — the user's FULL request VERBATIM (any language). Used to pick the right unit VARIANT (% of GDP vs US$ vs per-capita vs real). e.g. 'compare household spending as a share of GDP'."
              },
              "country": {
                "type": "string",
                "title": "Country",
                "description": "Country as ISO3 or a name (`Thailand`/`THA`); COMMA-SEP for a cross-country compare (`THA,JPN,USA`); or an aggregate (`WLD` world · `EMU` euro area · `HIC`/`MIC`/`LIC` income groups)."
              },
              "database": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Database",
                "default": null,
                "description": "ADVANCED — the indicator's source database (WB_WDI, IMF_FSIC). Auto-derived from the resolved concept; override only for a non-WDI id you pass directly."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true
          }
        },
        {
          "name": "suggest_cta",
          "title": "Suggest Explorations",
          "description": "After answering, propose 1-2 data-backed 'explore further' hooks that pull the user into the\n    graph's moat (ripple/relations/commodity/off-coverage). Server-side: theme_summary(has ripple/\n    entities/aspects) + a semantic news search, then deepseek curates ONLY data-backed hooks.\n    Validated in /tmp/mcp-gate/cta_tool.js (there via direct probes; here via the summary composite).",
          "inputSchema": {
            "type": "object",
            "title": "suggest_ctaArguments",
            "required": [
              "theme"
            ],
            "properties": {
              "theme": {
                "type": "string",
                "title": "Theme",
                "description": "A theme/scope to suggest a next-step call-to-action for."
              },
              "window": {
                "type": "string",
                "title": "Window",
                "default": "30d",
                "description": "News-recency window: `7d`/`30d`/`90d`/`180d`/`1y` or `mtd`/`qtd`/`ytd`. Omit → a sensible default. (Price history is unaffected — this only scopes the NEWS lens.)"
              }
            }
          },
          "annotations": {
            "readOnlyHint": true
          }
        },
        {
          "name": "edit_screen",
          "title": "Edit Screen (change a formula you have)",
          "description": "CHANGE a screener formula you already have — add, remove or replace conditions as ops; the server places,\n    resolves and merges them and checks the result (no engine JSON to write). Use it for EVERY change while building a\n    screen with the user; use screen_unified (mode 'run') when the user wants to SEE the stocks of a formula.\n    Returns {ok, criteria (the new formula, saved shape — screen_unified takes it verbatim in `criteria`), changes\n    (what each op became: status resolved|snapped, value, snaps / dropped / assumed = what the engine read differently),\n    issues (what did not go in: code, and `nearest` / `candidates` = alternatives ready to send back as an op's value),\n    keep (the user-set paths after the change), reset, charts (when conditions were split across charts), count?}.\n    Nothing is saved — the client decides what to apply.",
          "inputSchema": {
            "type": "object",
            "$defs": {
              "EditOp": {
                "type": "object",
                "title": "EditOp",
                "required": [
                  "op"
                ],
                "properties": {
                  "op": {
                    "enum": [
                      "add",
                      "remove",
                      "replace",
                      "reset"
                    ],
                    "type": "string",
                    "title": "Op",
                    "description": "add a condition · remove one (target) · replace one (target + the new condition) · reset = start the formula over (only when the user said so)"
                  },
                  "ta": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/TaSignal"
                      },
                      {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/TaSignal"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Ta",
                    "default": null,
                    "description": "The TECHNICAL leg — a THEN chain of steps (usually ONE). Each signal = `pattern` (SHAPE) + operands `a`/`b` (LINES), key or plain English, server-resolved. e.g. golden cross + volume spike → [{anchor:[{pattern:'crossover_up',a:'ema50',b:'ema200'}],quals:[{any:[{pattern:'volume_spike'}]}]}]. 'within the last N bars' = each signal's own `window_bars` (else the screen-level default); mix timeframes by setting a qualifier's own `timeframe` (1/2/3). Omit for a fundamentals-only screen. (here: ONE signal, or a list = OR in one step)"
                  },
                  "rel": {
                    "anyOf": [
                      {
                        "enum": [
                          "with",
                          "before",
                          "after"
                        ],
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Rel",
                    "default": null,
                    "description": "a technical add: 'with' = true at the same time as `step`, 'before' / 'after' = a step in time order (THEN). Omit rel and step to open a NEW step — on a formula with no technical step, the first signal opens S1 and the signals true at the same time are rel 'with', step 'S1' in the same call."
                  },
                  "gics": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Gics",
                    "default": null,
                    "description": "OPTIONAL universe SCOPE — industry/theme concept(s), CSV of ATOMIC concepts (decompose 'banks and insurance' → 'banks,insurance'). Each = English ('banks','semiconductors','AI') or a GICS code prefix ('45'=IT sector, '352010'=biotech industry; shorter=broader); the server picks the axis (industry→GICS, megatrend→THEME). Omit = all sectors."
                  },
                  "size": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Size",
                    "default": null,
                    "description": "OPTIONAL market-cap size tier(s), OR'd — 'large'|'mid'|'small'|'micro'. RELATIVE per-market MSCI tiers ('small' = small FOR ITS market, not in USD; no separate 'mega'). For an ABSOLUTE USD size / 'under $X' use min/max_market_cap_usd instead. Omit = all sizes."
                  },
                  "step": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Step",
                    "default": null,
                    "description": "a technical add: the step it goes with / before / after — 'S1', 'S2' …: a step already in the formula, or one an earlier op in the same call opened (new steps take the next number: S1 on a formula with no technical step)"
                  },
                  "target": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Target",
                    "default": null,
                    "description": "remove / replace: the condition's id in the current formula — S1, S2 … (technical steps in time order; S1.q1 = a same-time condition of S1), F1 … (fundamental), U.<dim> / X.<dim> (universe include / exclude), D (dividend), O (options)"
                  },
                  "within": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Within",
                    "default": null,
                    "description": "± tolerance in trading bars around the anchor (default 5; use 0 for a persistent state like 'is above')."
                  },
                  "country": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Country",
                    "default": null,
                    "description": "OPTIONAL operating-country scope — one or MORE ISO-2 codes, OR'd (a stock matches if in ANY of them). e.g. ['US'] · ['CN','US'] for China+US · ['TH','SG','MY']. Omit = all countries."
                  },
                  "options": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Options",
                    "default": null,
                    "description": "The OPTIONS leg — an options-behaviour term, key or plain English ('fear_building','iv_cheap','the crowd getting brave'), server-resolved. Intersects the ~557 US-optionable names showing it; an options-vs-price DIVERGENCE also goes here (the server expands it). US-optionable only. Omit for a non-options screen."
                  },
                  "timeframe": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Timeframe",
                    "default": null,
                    "description": "Chart for the TA leg: 1=daily (default) · 2=weekly · 3=monthly. TA operand periods & for_bars are counted in BARS of this timeframe."
                  },
                  "asset_type": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Asset Type",
                    "default": null,
                    "description": "OPTIONAL asset type(s), OR'd: 'Common Stock','ETF','Crypto','Currency','Commodity','Bond','Index','Fund','ADR','REIT'. Crypto≠Currency (forex); gold/silver=Commodity. Omit = all (a company screen usually wants 'Common Stock')."
                  },
                  "user_asked": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "User Asked",
                    "default": null,
                    "description": "true only when the user asked in this message to change a value listed in `keep`"
                  },
                  "fundamental": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/ScreenCondition"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "description": "The FUNDAMENTAL leg — AND-ed conditions (each = a METRIC `concept` + a SHAPE `pattern` + its value; key or plain English, server-resolved). e.g. roe>20% & 3y revenue growth → [{concept:'roe',pattern:'above',threshold:0.20},{concept:'revenue',pattern:'consecutive_growth',N:3}]. 🔴 A fundamental trend's TIME SPAN goes in that condition's `N` (periods of its `basis`, annual by default; set basis only for quarterly/TTM) — SEPARATE from the TA leg's window_bars. Omit for a TA-only screen."
                  },
                  "window_bars": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Window Bars",
                    "default": null,
                    "description": "TA-leg LOOKBACK in bars of `timeframe` — how far back a signal may have fired / the span a THEN-chain completes within ('…within the last N days'; 'divergence within 50 days' → 50). Whole `ta` leg; omit → default 30 × number of ta steps. SEPARATE from a fundamental trend's `N`."
                  },
                  "exclude_gics": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Exclude Gics",
                    "default": null,
                    "description": "OPTIONAL — EXCLUDE industry/theme CONCEPT(s), CSV, codes or plain English ('banks','AI'); server-resolved & routed same as `gics`. Applies to EVERY leg ('high-yield but NOT banks' = fundamental dividend_yield + exclude_gics='banks'). `gics` INCLUDES; this EXCLUDES."
                  },
                  "exclude_country": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Exclude Country",
                    "default": null,
                    "description": "OPTIONAL — EXCLUDE operating-country(ies), ISO-2. 'global ex-US' = exclude_country=['US']. Universe-level, applies to every leg."
                  },
                  "options_horizon": {
                    "anyOf": [
                      {
                        "enum": [
                          "long",
                          "short"
                        ],
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Options Horizon",
                    "default": null,
                    "description": "Options horizon: 'long' (default, positioning/conviction) or 'short' (gamma/near-term). Only meaningful with `options`."
                  },
                  "dividend_min_cagr": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Dividend Min Cagr",
                    "default": null,
                    "description": "OPTIONAL dividend gate — 5-year dividend CAGR ≥ this % (5 = ≥5%/yr). Needs a fundamental/ta/options base leg too."
                  },
                  "max_market_cap_usd": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Max Market Cap Usd",
                    "default": null,
                    "description": "OPTIONAL ABSOLUTE max market cap USD (2000000000 = under $2bn). Pair with min for a band."
                  },
                  "min_market_cap_usd": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Min Market Cap Usd",
                    "default": null,
                    "description": "OPTIONAL ABSOLUTE min market cap USD (50000000000 = $50bn). Use this (not `size`) for a USD floor / 'under $X' band."
                  },
                  "dividend_min_streak_years": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Dividend Min Streak Years",
                    "default": null,
                    "description": "OPTIONAL dividend gate — keep stocks with a no-cut dividend streak ≥ N years (reliability streak in a 10-year window, capped at 10; NOT the full age). A membership gate — combine with a fundamental/ta/options base leg (pure dividend screen → screen_dividends)."
                  }
                },
                "description": "ONE change to the current formula. The condition itself is written exactly as screen_unified takes it (the same\nfields, the same descriptions); only op / target / step / rel are edit_screen's own (WHERE in the formula).",
                "additionalProperties": false
              },
              "TaSignal": {
                "type": "object",
                "title": "TaSignal",
                "required": [
                  "pattern"
                ],
                "properties": {
                  "a": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "A",
                    "default": null,
                    "description": "Operand A (SUBJECT line) — a token (close/ema50/rsi/macd_line/adx/stoch_k/bb_upper/senkou_a/tenkan…) or plain English, server-resolved. Cross/touch: the ACTIVE line (two MAs → the faster; price-vs-MA → 'close'). above/below read literally 'a is above/below b' ('price above the 200-day' → a='close',b='ema200'). Non-standard periods (ema45,rsi7) snap to the nearest. Omit for operand-free patterns."
                  },
                  "b": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "B",
                    "default": null,
                    "description": "Operand B — the PASSIVE reference line (token/English) or a numeric level as a string (oscillator-vs-level → '30'/'70'; MACD-vs-signal → 'macd_signal'; two MAs → the slower). For a net-return pattern (net_change_up/down), b = the move magnitude as a FRACTION ('0.30' = 30%). Fibonacci level → fib_618 ('61.8%', 'golden ratio'), fib_382, fib_1000 (100%), fib_1618 … Omit if the pattern has no reference."
                  },
                  "pattern": {
                    "type": "string",
                    "title": "Pattern",
                    "description": "The chart SHAPE — a pattern key or plain English ('golden cross','breaking out of a squeeze'), server-resolved. Keys: above, at_new_high, at_new_low, bb_squeeze, below, converge, crossover_down, crossover_up, divergence_bear, divergence_bull, expand, falling, fib_break_down, fib_break_up, fib_zone, hidden_divergence_bear, hidden_divergence_bull, in_range, kumo_expand, kumo_squeeze, near_high, near_low, near_ma, net_change_down, net_change_up, off_high_by, off_low_by, overbought, oversold, rising, rising_volume, squeeze, squeeze_fired, squeeze_fired_dn, squeeze_fired_up, squeeze_started, touch_down, touch_up, ttm_squeeze, volume_dryup, volume_spike. bb_squeeze = coiling now; squeeze_fired_up/dn = coiled-then-broke, SELF-CONTAINED — use as the anchor, don't chain squeeze-THEN-fire. NO OPERAND NEEDED (omit a/b; a few take an optional b): at_new_high, at_new_low, bb_squeeze, kumo_expand, kumo_squeeze, near_high, near_low, near_ma, rising_volume, squeeze_fired, squeeze_fired_dn, squeeze_fired_up, squeeze_started, ttm_squeeze, volume_dryup, volume_spike. Divergence takes only `a` = the oscillator: rsi (default) or macd; hidden divergence rsi only — other lines are refused. Oscillator band ('RSI 40-50') = ONE in_range (a='rsi', b='40-50'). FIBONACCI (levels of the latest confirmed swing): fib_zone = price testing / sitting at a level NOW; fib_break_up / fib_break_down = the close crossed up / down through a level within window_bars (use these, NOT crossover_*); 'holding above the 61.8%' = above (a='close', b='fib_618'). b = the level: fib_382/500/618 (golden ratio)/786/1000 (100% = the prior swing extreme)/1272/1618/2618/4236; optional swing size fib_minor_618 / fib_major_618 (default mid)."
                  },
                  "for_bars": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "For Bars",
                    "default": null,
                    "description": "A state/level must have HELD ≥ this many consecutive bars ('above the 200-day for a month' ≈ 20 daily bars); for rising/falling it's a run-length. NOT valid on net_change/crossover/divergence — for 'within the last N bars' use window_bars."
                  },
                  "timeframe": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Timeframe",
                    "default": null,
                    "description": "PER-CONDITION chart (1=daily,2=weekly,3=monthly; or the words daily/weekly/monthly) to MIX timeframes — put it on a QUALIFIER (checked on its own chart) while the anchor stays on the screen-level timeframe. e.g. weekly-hold + daily-cross → screen tf=1, qualifier {above,a='close',b='ema50',timeframe:2}. Operand periods are bars of THIS tf. An ANCHOR's tf must equal the screen-level tf (else 400) — put cross-tf tests in a qualifier."
                  },
                  "window_bars": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Window Bars",
                    "default": null,
                    "description": "PER-SIGNAL lookback in bars — 'holds WITHIN the last N bars' (recency); for a net-return pattern it's the PERIOD the return is measured over ('dropped 30% over 100 days' → window_bars=100). Gives conditions DIFFERENT windows in one screen. Omit → the screen-level default. (Distinct from for_bars = how long a state has held.)"
                  }
                },
                "description": "ONE technical signal = a SHAPE (`pattern`) + its operand LINES (`a`/`b`). Each is a key/token OR plain\nEnglish — the SERVER resolves each.",
                "additionalProperties": false
              },
              "ScreenCondition": {
                "type": "object",
                "title": "ScreenCondition",
                "properties": {
                  "N": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "N",
                    "default": null,
                    "description": "Window = number of `basis` periods for growth/consecutive patterns (default years; quarters if basis='quarterly'). Supply only when the user stated the span; else the pattern's default."
                  },
                  "max": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Max",
                    "default": null,
                    "description": "Upper bound for `between`."
                  },
                  "min": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Min",
                    "default": null,
                    "description": "Lower bound for `between`."
                  },
                  "band": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Band",
                    "default": null,
                    "description": "RELATION ratio_near: half-width tolerance as a fraction of target (default 0.10 = ±10%)."
                  },
                  "cagr": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Cagr",
                    "default": null,
                    "description": "compound_growth/decline only: ANNUALIZED rate per year as a fraction ('15%/yr over 5y' → N:5, cagr:0.15). NOT the whole-window total (that's total_change)."
                  },
                  "basis": {
                    "anyOf": [
                      {
                        "enum": [
                          "annual",
                          "quarterly",
                          "ttm"
                        ],
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Basis",
                    "default": null,
                    "description": "Period type — default annual; set 'quarterly' (QoQ / 'N quarters in a row') or 'ttm' only when the user named it. Separate from `pattern`; if unsupported the server screens what it can and notes it."
                  },
                  "params": {
                    "anyOf": [
                      {
                        "type": "object",
                        "additionalProperties": true
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Params",
                    "default": null,
                    "description": "Fallback only — prefer the top-level fields; a nested value here is still read."
                  },
                  "target": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Target",
                    "default": null,
                    "description": "RELATION ratio_near: the A/B ratio to sit near, a FRACTION (0.08 = ~8% of B)."
                  },
                  "concept": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Concept",
                    "default": null,
                    "description": "The METRIC (statement line / ratio / valuation multiple): pe, roe, net_margin, revenue, 'gross margin'."
                  },
                  "measure": {
                    "anyOf": [
                      {
                        "enum": [
                          "sequential",
                          "yoy"
                        ],
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Measure",
                    "default": null,
                    "description": "Quarterly consecutive_growth only: 'sequential' (default, QoQ) or 'yoy' (each quarter vs the same quarter a year earlier)."
                  },
                  "metricA": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Metrica",
                    "default": null,
                    "description": "RELATION form: first metric. Its GROWTH RATE instead of level → metricA_stat='growth'."
                  },
                  "metricB": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Metricb",
                    "default": null,
                    "description": "RELATION form: second metric. Its GROWTH RATE → metricB_stat='growth'."
                  },
                  "pattern": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Pattern",
                    "default": null,
                    "description": "The SHAPE — a LEVEL (above, below, between, low, high, above_average, below_average) or a CHANGE (latest_yoy, consecutive_growth/decline, compound_growth, accelerating). NL ok ('grew every year','above the sector average')."
                  },
                  "multiple": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Multiple",
                    "default": null,
                    "description": "RELATION higher/lower_than bound k in 'A vs k×B' (default 1): a FRACTION for 'A is k% OF B' (0.15), a direct ratio otherwise (2 = 2×). Ignored by growth_faster/slower_than."
                  },
                  "relation": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Relation",
                    "default": null,
                    "description": "RELATION form — metricA vs metricB: higher_than/lower_than (A vs multiple×B), ratio_between (min≤A/B≤max), ratio_near (A/B≈target ±band), growth_faster_than/growth_slower_than (CAGRs). Param: higher/lower→multiple; ratio_between→min+max; ratio_near→target(+band); growth→none. e.g. 'R&D ≥15% of revenue' → metricA=rnd, higher_than, metricB=revenue, multiple=0.15."
                  },
                  "threshold": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Threshold",
                    "default": null,
                    "description": "The number `above`/`below` (REQUIRED for them — no default) or a growth pattern compares against. If the user gave only a vague quality ('cheap','high ROE') with NO number, use a cohort pattern (above_average/below_average/low/high…) which needs none."
                  },
                  "vs_cohort": {
                    "anyOf": [
                      {
                        "type": "object",
                        "additionalProperties": true
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Vs Cohort",
                    "default": null,
                    "description": "RARE — usually OMIT: a cohort pattern already compares each stock with ITS OWN GICS sector in its country. Set only for another peer group: {gics?:code-prefix, country?:ISO-2, size?:[tiers], stat?:'pooled'|'median'}, a finer own grain {own:'gics_group'|'gics_industry'}, or {} = the universe's average."
                  },
                  "percentile": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Percentile",
                    "default": null,
                    "description": "Tail fraction for `low`/`high` ('cheapest 10%' → 0.1); default 0.2. Supply only when the user named a tail size."
                  },
                  "metricA_stat": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Metrica Stat",
                    "default": null,
                    "description": "RELATION: read metricA as 'level' (default) or 'growth' (its N-year growth %, N default 3)."
                  },
                  "metricB_stat": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Metricb Stat",
                    "default": null,
                    "description": "RELATION: read metricB as 'level' (default) or 'growth'."
                  },
                  "total_change": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Total Change",
                    "default": null,
                    "description": "compound_growth/decline only: CUMULATIVE change over the N-period window as a fraction (1.0 = doubled/halved, 0.5 = +50%/−50%). 'doubled in 2y' → N:2, total_change:1.0. NOT per-year (that's cagr)."
                  }
                },
                "description": "ONE AND-ed condition. COMMON form = `concept` (the METRIC) + `pattern` (the SHAPE) + its value. RELATION form\n(rare) = compare two metrics: metricA + relation + metricB. SHARED RULES for every text field below: send an exact\nkey OR plain English — the server resolves it (no separate resolver step); ENGLISH only; a metric's change-over-time\nis a `pattern`, never part of `concept`. NUMBER SCALE: ratios/margins/yields/growth-rates are FRACTIONS (0.20 = 20%);\nP/E, P/B, EV/EBITDA and coverage multiples are RAW (15 = a P/E of 15).",
                "additionalProperties": false
              }
            },
            "title": "edit_screenArguments",
            "required": [
              "ops"
            ],
            "properties": {
              "ops": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/EditOp"
                },
                "title": "Ops",
                "description": "The changes, in order (1–8): ONE condition per op, written exactly as screen_unified takes it (same fields), plus WHERE it goes (op / target / step / rel)."
              },
              "keep": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Keep",
                "default": null,
                "description": "Paths of values the USER set by hand ('ta.0.anchor.0.b', 'universe.include.0.country') — never overwritten or removed unless an op says user_asked."
              },
              "mode": {
                "enum": [
                  "check",
                  "count"
                ],
                "type": "string",
                "title": "Mode",
                "default": "check",
                "description": "'check' = place, resolve and validate (fast, no market data) · 'count' = also how many stocks match the new formula (exact up to 500)."
              },
              "criteria": {
                "anyOf": [
                  {
                    "type": "object",
                    "additionalProperties": true
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Criteria",
                "default": null,
                "description": "The formula to change, in the saved shape — the user's current formula or an `executed_criteria` / `criteria` a screen tool returned. Omit (or {}) to build from empty."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true
          }
        },
        {
          "name": "pulse",
          "title": "Market Pulse",
          "description": "ONE market-pulse read across every subject type — a news + market lens on an asset, a theme/sector, a\n    commodity, a bond/rate/curve, a macro dashboard, or your portfolio. Pick `kind`, put the subject in `target`.\n    Replaces the per-type asset/theme/commodity/bond/macro/portfolio pulse tools.",
          "inputSchema": {
            "type": "object",
            "title": "pulseArguments",
            "required": [
              "kind",
              "target"
            ],
            "properties": {
              "kind": {
                "enum": [
                  "asset",
                  "theme",
                  "commodity",
                  "bond",
                  "macro",
                  "portfolio"
                ],
                "type": "string",
                "title": "Kind",
                "description": "WHICH pulse: `asset` (company/ETF/index-ETF/crypto) · `theme` (sector/industry/megatrend) · `commodity` (metal/energy/agri) · `bond` (govt-yield/rate/curve) · `macro` (FRED dashboard) · `portfolio` (an owned portfolio)."
              },
              "limit": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Limit",
                "default": null,
                "description": "Max rows (default 20, hard cap 50). Keep SMALL + narrow the scope; page/refine rather than dump — heavily-covered assets have hundreds of articles. (asset only)"
              },
              "top_n": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Top N",
                "default": null,
                "description": "portfolio only: how many top holdings to analyze (default 3, cap 5)."
              },
              "target": {
                "type": "string",
                "title": "Target",
                "description": "The SUBJECT for `kind`. asset: a ticker/company NAME ('NVDA','Apple'; the server resolves it). theme: a sector/industry/theme in ENGLISH ('semiconductors','banks','AI') — put nationality in `country`, NOT here. commodity: a commodity in English ('gold','copper','crude oil') or a SYMBOL.COMM. bond: a country/tenor/rate ('US 10Y','JGB 2Y','SOFR','US yield curve'). macro: a dashboard scope ('economy','inflation','labor','consumer','housing','recession-risk'). portfolio: the numeric portfolio id (call list_portfolios first if unknown)."
              },
              "window": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Window",
                "default": null,
                "description": "News-recency window: `7d`/`30d`/`90d`/`180d`/`1y` or `mtd`/`qtd`/`ytd`. Omit → a sensible default. (Price history is unaffected — this only scopes the NEWS lens.)"
              },
              "context": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Context",
                "default": null,
                "description": "asset only — OPTIONAL but RECOMMENDED — paste the user's FULL request VERBATIM (any language: 'ขอราคาผลไม้ apple', 'compare Apple and Microsoft stock'). The server uses it to disambiguate which candidate each `ticker` entity means (the apple COMPANY vs the fruit COMMODITY; which Samsung). One context per call, shared by all tickers here."
              },
              "country": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Country",
                "default": null,
                "description": "ISO-2 CSV. theme: nationality scope ('European'→'GB,DE,FR,IT,ES,NL,CH,SE'; 'Thai'→'TH'). asset/macro: optional. Ignored by commodity/bond/portfolio."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true
          }
        }
      ],
      "tools_omitted": 0,
      "resources": [
        {
          "name": "gate_policy",
          "uri": "marketdx://policy",
          "mimeType": "text/plain",
          "description": "The gate & framing policy (skill.md) the client LLM should follow — scope resolution, the 5\n    response stances, honest fidelity, no-fudge. Kept alongside the server."
        },
        {
          "name": "gate_policy",
          "uri": "marketiv://policy",
          "mimeType": "text/plain",
          "description": "The gate & framing policy (skill.md) the client LLM should follow — scope resolution, the 5\n    response stances, honest fidelity, no-fudge. Kept alongside the server."
        },
        {
          "name": "gate_policy",
          "uri": "avaadvisor://policy",
          "mimeType": "text/plain",
          "description": "The gate & framing policy (skill.md) the client LLM should follow — scope resolution, the 5\n    response stances, honest fidelity, no-fudge. Kept alongside the server."
        },
        {
          "name": "capabilities",
          "uri": "marketdx://capabilities",
          "mimeType": "text/plain",
          "description": "Live coverage/capabilities map: covered markets + depth, asset classes, news window, tier-1\n    themes — so the client scopes correctly (expand 'Asia'→covered set; don't request uncovered)."
        },
        {
          "name": "capabilities",
          "uri": "marketiv://capabilities",
          "mimeType": "text/plain",
          "description": "Live coverage/capabilities map: covered markets + depth, asset classes, news window, tier-1\n    themes — so the client scopes correctly (expand 'Asia'→covered set; don't request uncovered)."
        },
        {
          "name": "capabilities",
          "uri": "avaadvisor://capabilities",
          "mimeType": "text/plain",
          "description": "Live coverage/capabilities map: covered markets + depth, asset classes, news window, tier-1\n    themes — so the client scopes correctly (expand 'Asia'→covered set; don't request uncovered)."
        }
      ],
      "prompts": []
    },
    "instructions": "Ava Advisor is a financial news→impact graph: it maps news to the assets and megatrends it actually moves — direction (+/−), the reason WHY, and the ripple to connected players — across STOCKS, FOREX, CRYPTO, COMMODITIES (metals like copper & gold, energy like oil & gas, agris, carbon/EU-ETS allowances, and LME-vs-onshore-China metal variants), GOVERNMENT-BOND YIELDS, MONEY-MARKET RATES, and PRIVATE / off-coverage companies. For ANY question about news, market impact, or what moved an asset or theme — INCLUDING commodities and metals (copper, gold, oil, …) — use THESE tools, not a web search: Ava Advisor returns scored per-article impact + the causal 'why' + the ripple that a web search cannot. Commodities use a `SYMBOL.COMM` ticker (COPPER.COMM, GOLD.COMM, CARBON_EU.COMM, NICKEL_LME.COMM) with stock_impact, or just search_news('copper'); some metals have BOTH an onshore-China (CNY) and an LME (USD) contract, and palm oil a USD (PALMOIL) vs Bursa-MYR (PALMOIL_MY) variant. Government-bond YIELDS use `<ISO2>-<TENOR>.GB` (US-10Y.GB, JP-10Y.GB, DE-2Y.GB) and money-market RATES `<TOKEN>.MM` (SOFR.MM, EFFR.MM, EURIBOR3M.MM); a yield/rate MOVE reads in BASIS POINTS (`change_bps`), never as a % of the yield — and a yield has no options/PE/market-cap, so those lenses being absent for a `.GB`/`.MM` ticker is EXPECTED, not a failure. Just pass the name or ticker to pulse(kind='asset')/stock_prices — they resolve it server-side (US 10-year treasury→US-10Y.GB, SOFR→SOFR.MM). News tools accept a time range (`from_`/`to` ISO or `window` like '90d'/'qtd'/'1y'); to compare periods, call the tool once per period and compare. ⚠️ NEWS coverage starts 2026-01-01 — there is NO news before 2026; for an older period say so plainly, never fabricate or present an empty result as 'nothing happened'. PRICE / volatility history, by contrast, goes back decades — so 'why was gold volatile in 2023' is answerable from price even though there's no 2023 news. Any read on how a tradable asset (a stock, ETF, or index) is DOING — whatever the phrasing or language — is a Ava Advisor question: our news→impact + options-positioning read IS the substance of 'how is it doing' (the WHY it's moving + the market's stance), which a web search cannot supply. Reach for `pulse(kind='asset', target=<ticker>)` on these. 🔴 This INCLUDES a MARKET / INDEX asked in a 'right now / ตอนนี้ / current' phrasing (S&P, Nasdaq, Dow, 'the market'): map it to its ETF (S&P→SPY · Nasdaq→QQQ · Dow→DIA — WE DO COVER their options + news) and call `pulse(kind='asset')` for the news-impact + positioning that IS 'how it's doing'. A web-searched index LEVEL is at most ONE supplementary number — NEVER answer a market/index question with only a web level, and never skip the Ava Advisor read (the level alone is not 'how is it doing'). pulse(kind='asset') = ONE call returning BOTH lenses, so the read is never half-informed. 🔴🔴 This ALSO covers a GEOPOLITICAL / MACRO EVENT or SITUATION that MOVES a covered asset — a war, sanctions, an OPEC or central-bank decision, a tariff regime, an election (Iran/Hormuz→oil, the Fed→rates, US-China tariffs→trade) — WHEN the user has a MARKET / INVESTMENT angle (an asset or their holdings are in play, or they ask how the event moves markets): THEN it is a Ava Advisor question, NOT a web search — our 2026 news carriesthe scored per-article impact + the causal 'why' + the ripple that a web article lacks. Route it THROUGH the asset it drives: `search_news('Iran Hormuz')` and/or `pulse(kind='commodity', target='oil')` (whose response already EMBEDS the scored event news), `pulse(kind='bond')` for a Fed/rates event, `brief`/`trade(mode='flows')` for a tariff one. Then don't default to web just because it reads as 'geopolitics'; web only supplements a specific detail Ava Advisor lacks (say which came from which). ⚖️ INTENT-GATED though: a PURE geopolitics / current-events CURIOSITY question with NO investment angle ('will there be a war', 'what's happening in Gaza') is NO"
  },
  "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."
}