StockLens

Scores for the 600 largest stocks with no account. Sign in for analysis, screening and a watchlist.

Should I use this

Quality & Safety

A
Description quality
98%
Schema completeness
90%
Naming quality
93%
Poisoning risk
100%
Permission match
90%
Protocol compliance
100%

Findings (1)

  • LOWTool 'fetch_analysis_result' suggests web access but openWorldHint=falsein fetch_analysis_result

Based on automated analysis of tool definitions and protocol compliance.

Context Cost

~11,719Tokens (tool definitions)
~12.3 KBTypical response size
Significant attention impact (9.16% of 128k context)

This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.

Install

One-Click Install

Add this to your `claude_desktop_config.json` file:

{
  "mcpServers": {
    "stocklens": {
      "url": "https://mcp.stocklens.com/mcp"
    }
  }
}

Remote endpoints

https://mcp.stocklens.com/mcpstreamable-http

What it can do

Tool inventory

Tools (9)

🟢 Read-only🟡 Write🔴 Delete⚪ Unknown
🟡add_to_watchlist(ticker, exchange, portfolio_id, portfolio_name)

Add one company to one of the person's StockLens portfolios as a company they follow, so its score stays readable here. Call it only when the person has asked for it or agreed to an offer. Without portfolio_id or portfolio_name it adds to the default portfolio, and the result names the portfolio that received it. Relay the result's message, which says where the company went. A status other than added is an answer, not an error: relay its message and act on next_step. After an add the person accepted from a get_market_summary offer, call get_market_summary again to answer their question. One ticker per call; for a list of companies, use add_to_watchlist_batch. It does not trade, record a holding or move money.

Input Schema

{
  "type": "object",
  "properties": {
    "ticker": {
      "type": "string",
      "description": "Stock ticker symbol (e.g. AAPL). Exactly one ticker per call.",
      "pattern": "^[A-Za-z0-9][A-Za-z0-9.\\-]{0,19}$"
    },
    "exchange": {
      "type": "string",
      "description": "Exchange code (e.g. NASDAQ). Optional. Resolved automatically if omitted.",
      "enum": [
        "NYSE",
        "NASDAQ",
        "AMEX",
        "OTC",
        "CBOE",
        "TSX",
        "TSXV",
        "CNQ",
        "NEO",
        "MEX",
        "B3",
        "SANTIAGO",
        "BUE",
        "BVC",
        "LSE",
        "EURONEXT_PARIS",
        "EURONEXT_AMSTERDAM",
        "EURONEXT_BRUSSELS",
        "EURONEXT_LISBON",
        "EURONEXT_DUBLIN",
        "XETRA",
        "SIX",
        "BME",
        "MILAN",
        "OSLO",
        "OMX_STOCKHOLM",
        "OMX_HELSINKI",
        "OMX_COPENHAGEN",
        "WSE",
        "VIE",
        "ATH",
        "PRA",
        "BUD",
        "IST",
        "ICE",
        "RIS",
        "TAL",
        "MCX",
        "TSE",
        "HKEX",
        "SHANGHAI",
        "SHENZHEN",
        "ASX",
        "TWSE",
        "SGX",
        "NSE",
        "KRX",
        "BSE",
        "KOE",
        "JKT",
        "KLS",
        "SET",
        "NZE",
        "HOSE",
        "TWO",
        "TADAWUL",
        "JSE",
        "TLV",
        "DFM",
        "EGX",
        "DOH",
        "KUW"
      ]
    },
    "portfolio_id": {
      "type": "string",
      "description": "The id of the portfolio to add to, as get_portfolio_insights lists it. Optional: without it or portfolio_name the company goes to the default portfolio."
    },
    "portfolio_name": {
      "type": "string",
      "description": "The name of the portfolio to add to, as the person names it (exact, case does not matter). Optional."
    }
  },
  "required": [
    "ticker"
  ],
  "additionalProperties": false
}

Output Schema

{
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "added",
        "already_in_portfolio",
        "over_capacity",
        "ambiguous",
        "not_found",
        "portfolio_not_found"
      ]
    },
    "ticker": {
      "type": "string"
    },
    "exchange": {
      "type": "string"
    },
    "company_name": {
      "type": [
        "null",
        "string"
      ]
    },
    "mode": {
      "type": "string",
      "enum": [
        "holding",
        "watching"
      ]
    },
    "portfolio_id": {
      "type": "string"
    },
    "portfolio_name": {
      "type": "string"
    },
    "is_default": {
      "type": [
        "null",
        "boolean"
      ]
    },
    "portfolio_count": {
      "type": [
        "null",
        "integer"
      ]
    },
    "company_count": {
      "type": [
        "null",
        "integer"
      ]
    },
    "plan_limit": {
      "type": [
        "null",
        "integer"
      ]
    },
    "message": {
      "type": "string"
    },
    "candidates": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "type": "object",
        "properties": {
          "ticker": {
            "type": "string"
          },
          "exchange": {
            "type": "string"
          },
          "company_name": {
            "type": "string"
          },
          "scored": {
            "type": [
              "null",
              "boolean"
            ]
          }
        },
        "required": [
          "ticker",
          "exchange",
          "company_name"
        ],
        "additionalProperties": false
      }
    },
    "portfolios": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "type": "object",
        "properties": {
          "portfolio_id": {
            "type": "string"
          },
          "portfolio_name": {
            "type": "string"
          },
          "is_default": {
            "type": "boolean"
          },
          "company_count": {
            "type": "integer"
          }
        },
        "required": [
          "portfolio_id",
          "portfolio_name",
          "is_default",
          "company_count"
        ],
        "additionalProperties": false
      }
    },
    "next_step": {
      "type": [
        "null",
        "object"
      ],
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "call_tool",
            "ask_user",
            "human_action"
          ]
        },
        "tool": {
          "type": "string"
        },
        "arguments": {
          "type": [
            "null",
            "object"
          ],
          "properties": {
            "ticker": {
              "type": "string"
            },
            "exchange": {
              "type": "string"
            }
          },
          "required": [
            "ticker"
          ],
          "additionalProperties": false
        },
        "options": {
          "type": [
            "null",
            "array"
          ],
          "items": {
            "type": "string"
          }
        },
        "description": {
          "type": "string"
        }
      },
      "required": [
        "kind"
      ],
      "additionalProperties": false
    },
    "scope": {
      "type": "string",
      "enum": [
        "user_watchlist_update"
      ]
    }
  },
  "required": [
    "status",
    "message",
    "scope"
  ],
  "additionalProperties": false
}
🟡add_to_watchlist_batch(rows, confirm, preview_id, confirmed_indexes, portfolio_id, ...)

Add a list of companies the person gave you, up to 100 rows, to one of their StockLens portfolios, in two calls. First call with confirm false: nothing is added and every row returns its outcome. Relay summary_line and message, then every row that is not a plain add, grouped by outcome, and name the plain adds in one line; name the portfolio only when portfolio_count is above 1. Ask which rows to add. Then call with confirm true, the preview_id, the same rows, the same portfolio and the confirmed_indexes the person approved. Send only rows the person gave you. For an ambiguous row, ask which listing using its candidates; never pick one. Add a not_covered row only if the person asks for it. A changed list or a different portfolio needs a new preview; preview_mismatch means the preview expired or no longer matches, so preview again. Without portfolio_id or portfolio_name it uses the default portfolio. It does not trade, record holdings or move money.

Input Schema

{
  "type": "object",
  "properties": {
    "rows": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string",
            "description": "One company as the person wrote it: a ticker (AAPL), a listing (SHOP.TO) or a company name.",
            "minLength": 1,
            "maxLength": 80
          },
          "exchange": {
            "type": "string",
            "description": "Exchange code (e.g. NASDAQ). Optional.",
            "enum": [
              "NYSE",
              "NASDAQ",
              "AMEX",
              "OTC",
              "CBOE",
              "TSX",
              "TSXV",
              "CNQ",
              "NEO",
              "MEX",
              "B3",
              "SANTIAGO",
              "BUE",
              "BVC",
              "LSE",
              "EURONEXT_PARIS",
              "EURONEXT_AMSTERDAM",
              "EURONEXT_BRUSSELS",
              "EURONEXT_LISBON",
              "EURONEXT_DUBLIN",
              "XETRA",
              "SIX",
              "BME",
              "MILAN",
              "OSLO",
              "OMX_STOCKHOLM",
              "OMX_HELSINKI",
              "OMX_COPENHAGEN",
              "WSE",
              "VIE",
              "ATH",
              "PRA",
              "BUD",
              "IST",
              "ICE",
              "RIS",
              "TAL",
              "MCX",
              "TSE",
              "HKEX",
              "SHANGHAI",
              "SHENZHEN",
              "ASX",
              "TWSE",
              "SGX",
              "NSE",
              "KRX",
              "BSE",
              "KOE",
              "JKT",
              "KLS",
              "SET",
              "NZE",
              "HOSE",
              "TWO",
              "TADAWUL",
              "JSE",
              "TLV",
              "DFM",
              "EGX",
              "DOH",
              "KUW"
            ]
          }
        },
        "required": [
          "query"
        ],
        "additionalProperties": false
      },
      "description": "The companies the person gave you, one per row, in their order. Never add a row they did not name.",
      "minItems": 1,
      "maxItems": 100
    },
    "confirm": {
      "type": "boolean",
      "description": "false previews the list and adds nothing. true adds the rows of confirmed_indexes from the preview that preview_id names."
    },
    "preview_id": {
      "type": "string",
      "description": "The preview_id the preview returned. Required when confirm is true."
    },
    "confirmed_indexes": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 99
      },
      "description": "The index of every row the person approved, from the preview. Required when confirm is true.",
      "maxItems": 100,
      "uniqueItems": true
    },
    "portfolio_id": {
      "type": "string",
      "description": "The id of the portfolio to add to, as get_portfolio_insights lists it. Optional: without it or portfolio_name the list goes to the default portfolio."
    },
    "portfolio_name": {
      "type": "string",
      "description": "The name of the portfolio to add to, as the person names it (exact, case does not matter). Optional."
    }
  },
  "required": [
    "rows",
    "confirm"
  ],
  "additionalProperties": false
}

Output Schema

{
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "previewed",
        "committed",
        "portfolio_not_found",
        "preview_mismatch"
      ]
    },
    "preview_id": {
      "type": "string"
    },
    "portfolio_id": {
      "type": "string"
    },
    "portfolio_name": {
      "type": "string"
    },
    "is_default": {
      "type": [
        "null",
        "boolean"
      ]
    },
    "portfolio_count": {
      "type": [
        "null",
        "integer"
      ]
    },
    "company_count": {
      "type": [
        "null",
        "integer"
      ]
    },
    "summary": {
      "type": [
        "null",
        "object"
      ],
      "properties": {
        "added": {
          "type": "integer"
        },
        "already_in_portfolio": {
          "type": "integer"
        },
        "repeated": {
          "type": "integer"
        },
        "ambiguous": {
          "type": "integer"
        },
        "unsupported_instrument": {
          "type": "integer"
        },
        "not_found": {
          "type": "integer"
        },
        "not_covered": {
          "type": "integer"
        },
        "over_capacity": {
          "type": "integer"
        },
        "failed": {
          "type": "integer"
        }
      },
      "required": [
        "added",
        "already_in_portfolio",
        "repeated",
        "ambiguous",
        "unsupported_instrument",
        "not_found",
        "not_covered",
        "over_capacity",
        "failed"
      ],
      "additionalProperties": false
    },
    "summary_line": {
      "type": "string"
    },
    "capacity": {
      "type": [
        "null",
        "object"
      ],
      "properties": {
        "limit": {
          "type": [
            "null",
            "integer"
          ]
        },
        "remaining": {
          "type": [
            "null",
            "integer"
          ]
        }
      },
      "additionalProperties": false
    },
    "message": {
      "type": "string"
    },
    "reason": {
      "type": "string",
      "enum": [
        "unknown",
        "expired",
        "portfolio",
        "rows"
      ]
    },
    "rows": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "type": "object",
        "properties": {
          "index": {
            "type": "integer"
          },
          "input": {
            "type": "string"
          },
          "outcome": {
            "type": "string",
            "enum": [
              "added",
              "already_in_portfolio",
              "ambiguous",
              "unsupported_instrument",
              "not_found",
              "not_covered",
              "over_capacity",
              "failed"
            ]
          },
          "label": {
            "type": "string"
          },
          "listing": {
            "type": [
              "null",
              "object"
            ],
            "properties": {
              "ticker": {
                "type": "string"
              },
              "exchange": {
                "type": "string"
              },
              "company_name": {
                "type": "string"
              }
            },
            "required": [
              "ticker",
              "exchange"
            ],
            "additionalProperties": false
          },
          "candidates": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "object",
              "properties": {
                "ticker": {
                  "type": "string"
                },
                "exchange": {
                  "type": "string"
                },
                "company_name": {
                  "type": "string"
                }
              },
              "required": [
                "ticker",
                "exchange"
              ],
              "additionalProperties": false
            }
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "index",
          "input",
          "outcome"
        ],
        "additionalProperties": false
      }
    },
    "portfolios": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "type": "object",
        "properties": {
          "portfolio_id": {
            "type": "string"
          },
          "portfolio_name": {
            "type": "string"
          },
          "is_default": {
            "type": "boolean"
          },
          "company_count": {
            "type": "integer"
          }
        },
        "required": [
          "portfolio_id",
          "portfolio_name",
          "is_default",
          "company_count"
        ],
        "additionalProperties": false
      }
    },
    "next_step": {
      "type": [
        "null",
        "object"
      ],
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "call_tool",
            "ask_user",
            "human_action"
          ]
        },
        "tool": {
          "type": "string"
        },
        "arguments": {
          "type": [
            "null",
            "object"
          ],
          "properties": {
            "ticker": {
              "type": "string"
            },
            "exchange": {
              "type": "string"
            }
          },
          "required": [
            "ticker"
          ],
          "additionalProperties": false
        },
        "options": {
          "type": [
            "null",
            "array"
          ],
          "items": {
            "type": "string"
          }
        },
        "description": {
          "type": "string"
        }
      },
      "required": [
        "kind"
      ],
      "additionalProperties": false
    },
    "scope": {
      "type": "string",
      "enum": [
        "user_watchlist_batch"
      ]
    }
  },
  "required": [
    "status",
    "scope"
  ],
  "additionalProperties": false
}
🟢discover_stocks(macro_in, exchange_in, sector_in, industry_in, market_cap_band, ...)

Screen the companies StockLens scores nightly by region, exchange, sector, industry, market-cap band and trading volume, sorted by one of the six StockLens scores or by market cap, volume or ticker, and return the top or bottom N. Popularity ordering is unavailable: analysis_volume and user_volume are retired and return VALIDATION_ERROR without running a screen. For a popularity request, ask the person to choose a supported ordering. Use it for any top N, best, worst, highest, lowest or filtered request across the companies StockLens scores, and never build such a list from get_market_summary or general knowledge; to compare only companies the person names, call get_market_summary for each instead. It has no valuation, price-target or growth filter; say so rather than calling a score sort one. status ranked means the requested order was used. When a ranked result carries message, relay it; it states what the ranking covers, so never present the rows as a ranking of more than that. browse_substituted means a score order was asked for and market-cap order with scores hidden was returned, so never describe those rows as ranked by score. locked means no companies are named; relay message verbatim. What the caller can sort and how far it reaches is in access_tier and reach_capped_at; signed_in_as names the account they belong to. Report only the rows returned. It does not trade and gives no personal recommendations.

Input Schema

{
  "type": "object",
  "properties": {
    "macro_in": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "type": "string",
        "enum": [
          "US",
          "CA",
          "EU",
          "CH",
          "GB",
          "JP"
        ]
      },
      "description": "Restrict to these macro regions. Omitted = no restriction."
    },
    "exchange_in": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "type": "string",
        "enum": [
          "NYSE",
          "NASDAQ",
          "AMEX",
          "OTC",
          "CBOE",
          "TSX",
          "TSXV",
          "CNQ",
          "NEO",
          "MEX",
          "B3",
          "SANTIAGO",
          "BUE",
          "BVC",
          "LSE",
          "EURONEXT_PARIS",
          "EURONEXT_AMSTERDAM",
          "EURONEXT_BRUSSELS",
          "EURONEXT_LISBON",
          "EURONEXT_DUBLIN",
          "XETRA",
          "SIX",
          "BME",
          "MILAN",
          "OSLO",
          "OMX_STOCKHOLM",
          "OMX_HELSINKI",
          "OMX_COPENHAGEN",
          "WSE",
          "VIE",
          "ATH",
          "PRA",
          "BUD",
          "IST",
          "ICE",
          "RIS",
          "TAL",
          "MCX",
          "TSE",
          "HKEX",
          "SHANGHAI",
          "SHENZHEN",
          "ASX",
          "TWSE",
          "SGX",
          "NSE",
          "KRX",
          "BSE",
          "KOE",
          "JKT",
          "KLS",
          "SET",
          "NZE",
          "HOSE",
          "TWO",
          "TADAWUL",
          "JSE",
          "TLV",
          "DFM",
          "EGX",
          "DOH",
          "KUW"
        ]
      },
      "description": "Restrict to these exchanges. Omitted = no restriction."
    },
    "sector_in": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "type": "string",
        "enum": [
          "BASIC_MATERIALS",
          "COMMUNICATION_SERVICES",
          "CONSUMER_CYCLICAL",
          "CONSUMER_DEFENSIVE",
          "ENERGY",
          "FINANCIAL_SERVICES",
          "HEALTHCARE",
          "INDUSTRIALS",
          "REAL_ESTATE",
          "TECHNOLOGY",
          "UTILITIES",
          "UNKNOWN"
        ]
      },
      "description": "Restrict to these GICS sectors. Omitted = no restriction."
    },
    "industry_in": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "type": "string",
        "enum": [
          "STEEL",
          "SILVER",
          "OTHER_PRECIOUS_METALS",
          "GOLD",
          "COPPER",
          "ALUMINUM",
          "PAPER_LUMBER_FOREST_PRODUCTS",
          "INDUSTRIAL_MATERIALS",
          "CONSTRUCTION_MATERIALS",
          "CHEMICALS_SPECIALTY",
          "CHEMICALS",
          "AGRICULTURAL_INPUTS",
          "TELECOMMUNICATIONS_SERVICES",
          "INTERNET_CONTENT_INFORMATION",
          "PUBLISHING",
          "BROADCASTING",
          "ADVERTISING_AGENCIES",
          "ENTERTAINMENT",
          "TRAVEL_LODGING",
          "TRAVEL_SERVICES",
          "SPECIALTY_RETAIL",
          "LUXURY_GOODS",
          "HOME_IMPROVEMENT",
          "RESIDENTIAL_CONSTRUCTION",
          "DEPARTMENT_STORES",
          "PERSONAL_PRODUCTS_SERVICES",
          "LEISURE",
          "GAMBLING_RESORTS_CASINOS",
          "FURNISHINGS_FIXTURES_APPLIANCES",
          "RESTAURANTS",
          "AUTO_PARTS",
          "AUTO_MANUFACTURERS",
          "AUTO_RECREATIONAL_VEHICLES",
          "AUTO_DEALERSHIPS",
          "APPAREL_RETAIL",
          "APPAREL_MANUFACTURERS",
          "APPAREL_FOOTWEAR_ACCESSORIES",
          "PACKAGING_CONTAINERS",
          "TOBACCO",
          "GROCERY_STORES",
          "DISCOUNT_STORES",
          "HOUSEHOLD_PERSONAL_PRODUCTS",
          "PACKAGED_FOODS",
          "FOOD_DISTRIBUTION",
          "FOOD_CONFECTIONERS",
          "AGRICULTURAL_FARM_PRODUCTS",
          "EDUCATION_TRAINING_SERVICES",
          "BEVERAGES_WINERIES_DISTILLERIES",
          "BEVERAGES_NON_ALCOHOLIC",
          "BEVERAGES_ALCOHOLIC",
          "URANIUM",
          "SOLAR",
          "OIL_GAS_REFINING_MARKETING",
          "OIL_GAS_MIDSTREAM",
          "OIL_GAS_INTEGRATED",
          "OIL_GAS_EXPLORATION_PRODUCTION",
          "OIL_GAS_EQUIPMENT_SERVICES",
          "OIL_GAS_ENERGY",
          "OIL_GAS_DRILLING",
          "COAL",
          "SHELL_COMPANIES",
          "INVESTMENT_BANKING_INVESTMENT_SERVICES",
          "INSURANCE_SPECIALTY",
          "INSURANCE_REINSURANCE",
          "INSURANCE_PROPERTY_CASUALTY",
          "INSURANCE_LIFE",
          "INSURANCE_DIVERSIFIED",
          "INSURANCE_BROKERS",
          "FINANCIAL_MORTGAGES",
          "FINANCIAL_DIVERSIFIED",
          "FINANCIAL_DATA_STOCK_EXCHANGES",
          "FINANCIAL_CREDIT_SERVICES",
          "FINANCIAL_CONGLOMERATES",
          "FINANCIAL_CAPITAL_MARKETS",
          "BANKS_REGIONAL",
          "BANKS_DIVERSIFIED",
          "BANKS",
          "ASSET_MANAGEMENT",
          "ASSET_MANAGEMENT_BONDS",
          "ASSET_MANAGEMENT_INCOME",
          "ASSET_MANAGEMENT_LEVERAGED",
          "ASSET_MANAGEMENT_CRYPTOCURRENCY",
          "ASSET_MANAGEMENT_GLOBAL",
          "MEDICAL_SPECIALTIES",
          "MEDICAL_PHARMACEUTICALS",
          "MEDICAL_INSTRUMENTS_SUPPLIES",
          "MEDICAL_HEALTHCARE_PLANS",
          "MEDICAL_HEALTHCARE_INFORMATION_SERVICES",
          "MEDICAL_EQUIPMENT_SERVICES",
          "MEDICAL_DISTRIBUTION",
          "MEDICAL_DIAGNOSTICS_RESEARCH",
          "MEDICAL_DEVICES",
          "MEDICAL_CARE_FACILITIES",
          "DRUG_MANUFACTURERS_SPECIALTY_GENERIC",
          "DRUG_MANUFACTURERS_GENERAL",
          "BIOTECHNOLOGY",
          "WASTE_MANAGEMENT",
          "TRUCKING",
          "RAILROADS",
          "AEROSPACE_DEFENSE",
          "MARINE_SHIPPING",
          "INTEGRATED_FREIGHT_LOGISTICS",
          "AIRLINES_AIRPORTS_AIR_SERVICES",
          "GENERAL_TRANSPORTATION",
          "MANUFACTURING_TOOLS_ACCESSORIES",
          "MANUFACTURING_TEXTILES",
          "MANUFACTURING_MISCELLANEOUS",
          "MANUFACTURING_METAL_FABRICATION",
          "INDUSTRIAL_DISTRIBUTION",
          "INDUSTRIAL_SPECIALTIES",
          "INDUSTRIAL_POLLUTION_TREATMENT_CONTROLS",
          "ENVIRONMENTAL_SERVICES",
          "INDUSTRIAL_MACHINERY",
          "INDUSTRIAL_INFRASTRUCTURE_OPERATIONS",
          "INDUSTRIAL_CAPITAL_GOODS",
          "CONSULTING_SERVICES",
          "BUSINESS_EQUIPMENT_SUPPLIES",
          "STAFFING_EMPLOYMENT_SERVICES",
          "RENTAL_LEASING_SERVICES",
          "ENGINEERING_CONSTRUCTION",
          "SECURITY_PROTECTION_SERVICES",
          "SPECIALTY_BUSINESS_SERVICES",
          "CONSTRUCTION",
          "CONGLOMERATES",
          "ELECTRICAL_EQUIPMENT_PARTS",
          "AGRICULTURAL_MACHINERY",
          "AGRICULTURAL_COMMODITIES_MILLING",
          "REIT_SPECIALTY",
          "REIT_RETAIL",
          "REIT_RESIDENTIAL",
          "REIT_OFFICE",
          "REIT_MORTGAGE",
          "REIT_INDUSTRIAL",
          "REIT_HOTEL_MOTEL",
          "REIT_HEALTHCARE_FACILITIES",
          "REIT_DIVERSIFIED",
          "REAL_ESTATE_SERVICES",
          "REAL_ESTATE_DIVERSIFIED",
          "REAL_ESTATE_DEVELOPMENT",
          "REAL_ESTATE_GENERAL",
          "INFORMATION_TECHNOLOGY_SERVICES",
          "HARDWARE_EQUIPMENT_PARTS",
          "COMPUTER_HARDWARE",
          "ELECTRONIC_GAMING_MULTIMEDIA",
          "SOFTWARE_SERVICES",
          "SOFTWARE_INFRASTRUCTURE",
          "SOFTWARE_APPLICATION",
          "SEMICONDUCTORS",
          "MEDIA_ENTERTAINMENT",
          "COMMUNICATION_EQUIPMENT",
          "TECHNOLOGY_DISTRIBUTORS",
          "CONSUMER_ELECTRONICS",
          "RENEWABLE_UTILITIES",
          "REGULATED_WATER",
          "REGULATED_GAS",
          "REGULATED_ELECTRIC",
          "INDEPENDENT_POWER_PRODUCERS",
          "DIVERSIFIED_UTILITIES",
          "GENERAL_UTILITIES",
          "UNKNOWN"
        ]
      },
      "description": "Restrict to these GICS industries. Omitted = no restriction."
    },
    "market_cap_band": {
      "type": "string",
      "description": "Restrict to this market-cap band. Omitted = no cap restriction.",
      "enum": [
        "MEGA",
        "LARGE",
        "MID",
        "SMALL",
        "MICRO"
      ]
    },
    "volume_floor": {
      "type": "string",
      "description": "Minimum average trading volume. Omitted = no floor.",
      "enum": [
        "100K",
        "500K",
        "1M",
        "5M"
      ]
    },
    "sort_by": {
      "type": "string",
      "description": "One of the 6 StockLens scores, market_cap, volume or ticker. Default composite_score. Popularity ordering is unavailable.",
      "enum": [
        "composite_score",
        "fundamental_score",
        "technical_score",
        "risk_score",
        "sentiment_score",
        "macro_score",
        "ticker",
        "market_cap",
        "volume"
      ]
    },
    "direction": {
      "type": "string",
      "description": "top = highest first, bottom = lowest first. Default top.",
      "enum": [
        "top",
        "bottom"
      ]
    },
    "limit": {
      "type": "integer",
      "description": "Number of matches to return (the N in top/bottom N), 1 to 100. Default 10.",
      "minimum": 1,
      "maximum": 100
    },
    "page": {
      "type": "integer",
      "description": "0-based page of results, 0 to 500. Default 0.",
      "minimum": 0,
      "maximum": 500
    },
    "search_text": {
      "type": "string",
      "description": "Free-text company name/ticker search, up to 80 characters."
    }
  },
  "additionalProperties": false
}

Output Schema

{
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "ranked",
        "browse_substituted",
        "locked"
      ]
    },
    "rows": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "type": "object",
        "properties": {
          "rank": {
            "type": "integer"
          },
          "ticker": {
            "type": "string"
          },
          "exchange": {
            "type": "string"
          },
          "company_name": {
            "type": [
              "null",
              "string"
            ]
          },
          "sector": {
            "type": [
              "null",
              "string"
            ]
          },
          "industry": {
            "type": [
              "null",
              "string"
            ]
          },
          "macro_code": {
            "type": [
              "null",
              "string"
            ],
            "description": "Listing geography of the exchange (US, CA, EU, CH, GB, JP, or GLOBAL when unmapped), the same value macro_in filters on."
          },
          "market_cap": {
            "type": [
              "null",
              "integer"
            ]
          },
          "volume": {
            "type": [
              "null",
              "integer"
            ]
          },
          "composite_score": {
            "type": [
              "null",
              "number"
            ]
          },
          "fundamental_score": {
            "type": [
              "null",
              "number"
            ]
          },
          "technical_score": {
            "type": [
              "null",
              "number"
            ]
          },
          "risk_score": {
            "type": [
              "null",
              "number"
            ]
          },
          "sentiment_score": {
            "type": [
              "null",
              "number"
            ]
          },
          "macro_score": {
            "type": [
              "null",
              "number"
            ]
          },
          "rating": {
            "type": [
              "null",
              "string"
            ]
          },
          "above_universe_median": {
            "type": [
              "null",
              "boolean"
            ]
          }
        },
        "required": [
          "rank",
          "ticker",
          "exchange"
        ],
        "additionalProperties": false
      }
    },
    "scores_locked": {
      "type": "boolean"
    },
    "hard_locked": {
      "type": "boolean"
    },
    "access_tier": {
      "type": "string",
      "enum": [
        "FREE",
        "PRO",
        "MAX"
      ]
    },
    "signed_in_as": {
      "type": "string"
    },
    "message": {
      "type": [
        "null",
        "string"
      ]
    },
    "reach_capped_at": {
      "type": [
        "null",
        "integer"
      ]
    },
    "rows_returned": {
      "type": "integer"
    },
    "total_matches": {
      "type": [
        "null",
        "integer"
      ]
    },
    "effective_sort": {
      "type": "string"
    },
    "sort_substituted": {
      "type": "boolean"
    },
    "effective_direction": {
      "type": "string"
    },
    "as_of_date": {
      "type": [
        "null",
        "string"
      ]
    },
    "config_context": {
      "type": "object",
      "properties": {
        "bucket_type": {
          "type": "string"
        },
        "term": {
          "type": "string"
        }
      },
      "required": [
        "bucket_type",
        "term"
      ],
      "additionalProperties": false
    },
    "data_source": {
      "type": "string"
    },
    "quota_remaining_today": {
      "type": [
        "null",
        "integer"
      ]
    },
    "next_step": {
      "type": [
        "null",
        "object"
      ],
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "call_tool",
            "ask_user",
            "human_action"
          ]
        },
        "tool": {
          "type": "string"
        },
        "arguments": {
          "type": [
            "null",
            "object"
          ],
          "properties": {
            "ticker": {
              "type": "string"
            },
            "exchange": {
              "type": "string"
            }
          },
          "required": [
            "ticker"
          ],
          "additionalProperties": false
        },
        "options": {
          "type": [
            "null",
            "array"
          ],
          "items": {
            "type": "string"
          }
        },
        "description": {
          "type": "string"
        }
      },
      "required": [
        "kind"
      ],
      "additionalProperties": false
    },
    "scope": {
      "type": "string",
      "enum": [
        "screened_universe"
      ]
    }
  },
  "required": [
    "status",
    "rows",
    "scores_locked",
    "hard_locked",
    "access_tier",
    "rows_returned",
    "effective_sort",
    "effective_direction",
    "config_context",
    "data_source",
    "scope"
  ],
  "additionalProperties": false
}
🟢fetch_analysis_result(analysis_id)

Return the progress or result of an analysis started with initiate_analysis, by its analysis_id. Each call returns the current state once and does not wait. While status is in_progress, or narrative.status is pending or running, check again only when the person asks, and no sooner than retry_after_seconds. A failed status is an answer; relay error_message. A complete result is the saved report: the composite score and rating word, the evidence word (Full, Core or Low), each domain's score, grade word and contribution (cornerstone, major, supporting or contextual), its key_drivers (up to three, each with its evidence), lens and domain_coverage, and its written summaries (domain conclusions, synthesis, key strengths and challenges) at either depth once narrative.status is ready. Until then relay message: pending or running means they are still being written, and you may briefly summarize the scores and evidence supplied but never write a summary, cause or reason the result does not contain; failed means they could not be completed, and the scores and evidence stand. It omits the web reader's factor cards, charts and per-anchor Explain views. Offer report_url as Open saved report to inspect factor values, peer context and ranked contributors where supplied; sign in to the owning StockLens account. It can open before the written summaries finish, and opening it does not start another run. Say how much a domain counts only with its contribution word, never as a number or share. It does not accept a ticker and does not rank companies.

Input Schema

{
  "type": "object",
  "properties": {
    "analysis_id": {
      "type": "string",
      "description": "The analysis_id returned by initiate_analysis"
    }
  },
  "required": [
    "analysis_id"
  ],
  "additionalProperties": false
}

Output Schema

{
  "type": "object",
  "properties": {
    "analysis_id": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "in_progress",
        "complete",
        "failed"
      ]
    },
    "progress_pct": {
      "type": [
        "null",
        "integer"
      ]
    },
    "retry_after_seconds": {
      "type": [
        "null",
        "integer"
      ]
    },
    "message": {
      "type": "string",
      "description": "A sentence to relay as given, present when the written summaries of a complete result are not ready: they are still being written, or could not be completed."
    },
    "narrative": {
      "type": [
        "null",
        "object"
      ],
      "properties": {
        "status": {
          "type": "string",
          "description": "pending or running: still being written, and not in this result. ready: in this result. failed: could not be completed; the scores and evidence are unaffected.",
          "enum": [
            "pending",
            "running",
            "ready",
            "failed"
          ]
        },
        "revision": {
          "type": "integer",
          "description": "Rises with every change of the summaries' state; a higher revision is the newer answer."
        },
        "ready_at": {
          "type": "string",
          "description": "When the written summaries became ready (ISO 8601)."
        },
        "failed_at": {
          "type": "string",
          "description": "When the written summaries failed (ISO 8601)."
        },
        "error_code": {
          "type": "string",
          "description": "Why the written summaries failed, as a diagnostic code.",
          "enum": [
            "DEADLINE_EXCEEDED",
            "DELIVERY_BUDGET_EXHAUSTED",
            "PROVIDER_UNAVAILABLE",
            "PROVIDER_REJECTED",
            "INVALID_NARRATIVE",
            "UNSUPPORTED_CONSUMER",
            "CORRUPT_PAYLOAD",
            "INTERNAL_FAILURE"
          ]
        }
      },
      "description": "The state of the written summaries (the domain conclusions, the synthesis, and the key strengths and challenges) of a complete result.",
      "required": [
        "status",
        "revision"
      ],
      "additionalProperties": false
    },
    "base_digest": {
      "type": "string",
      "description": "Identifies the saved scores and evidence of a complete result. It stays the same when the written summaries arrive."
    },
    "deterministic_ready_at": {
      "type": "string",
      "description": "When the scores and evidence were saved, ahead of the written summaries (ISO 8601). Absent when the report was saved together with its summaries."
    },
    "result": {
      "type": [
        "null",
        "object"
      ],
      "properties": {
        "symbol": {
          "type": "string"
        },
        "exchange": {
          "type": "string"
        },
        "analysis_source_exchange": {
          "type": [
            "null",
            "string"
          ]
        },
        "canonical_company_key": {
          "type": [
            "null",
            "string"
          ]
        },
        "company_name": {
          "type": "string"
        },
        "risk_tolerance": {
          "type": "string"
        },
        "credit_type": {
          "type": "string"
        },
        "current_price": {
          "type": [
            "null",
            "number"
          ]
        },
        "price_change": {
          "type": [
            "null",
            "number"
          ]
        },
        "price_change_percent": {
          "type": [
            "null",
            "number"
          ]
        },
        "currency": {
          "type": "string"
        },
        "time_range_display": {
          "type": "string"
        },
        "risk_tolerance_display": {
          "type": "string"
        },
        "analysis_date": {
          "type": "string"
        },
        "exchange_timezone": {
          "type": "string"
        },
        "display_composite_score": {
          "type": [
            "null",
            "integer"
          ]
        },
        "display_rating": {
          "type": [
            "null",
            "string"
          ]
        },
        "evidence": {
          "type": "string"
        },
        "domains": {
          "type": [
            "null",
            "array"
          ],
          "items": {
            "type": "object",
            "properties": {
              "domain": {
                "type": "string"
              },
              "score": {
                "type": "integer"
              },
              "grade": {
                "type": "string"
              },
              "contribution": {
                "type": "string"
              },
              "analysis": {
                "type": [
                  "null",
                  "string"
                ]
              },
              "insider_key_metrics": {
                "type": [
                  "null",
                  "array"
                ],
                "items": {
                  "type": "object",
                  "properties": {
                    "label": {
                      "type": "string"
                    },
                    "value": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "label",
                    "value"
                  ],
                  "additionalProperties": false
                }
              },
              "news_key_articles": {
                "type": [
                  "null",
                  "array"
                ],
                "items": {
                  "type": "object",
                  "properties": {
                    "title": {
                      "type": "string"
                    },
                    "publisher": {
                      "type": "string"
                    },
                    "url": {
                      "type": "string"
                    },
                    "published_at": {
                      "type": "string"
                    },
                    "tone": {
                      "type": "string"
                    },
                    "conviction": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "title",
                    "publisher",
                    "url",
                    "published_at",
                    "tone",
                    "conviction"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "domain",
              "score",
              "grade"
            ],
            "additionalProperties": false
          }
        },
        "key_drivers": {
          "type": [
            "null",
            "array"
          ],
          "items": {
            "type": "object",
            "properties": {
              "domain": {
                "type": [
                  "null",
                  "string"
                ]
              },
              "kind": {
                "type": "string",
                "enum": [
                  "SUPPORTIVE",
                  "HEADWIND",
                  "MIXED",
                  "COVERAGE_GAP",
                  "NEUTRAL_NOT_MATERIAL"
                ]
              },
              "label": {
                "type": "string"
              },
              "context": {
                "type": [
                  "null",
                  "string"
                ]
              },
              "metric": {
                "type": [
                  "null",
                  "string"
                ]
              },
              "peer_group": {
                "type": [
                  "null",
                  "string"
                ]
              }
            },
            "required": [
              "kind",
              "label"
            ],
            "additionalProperties": false
          }
        },
        "lens": {
          "type": [
            "null",
            "object"
          ],
          "properties": {
            "label": {
              "type": "string"
            }
          },
          "required": [
            "label"
          ],
          "additionalProperties": false
        },
        "domain_coverage": {
          "type": [
            "null",
            "object"
          ],
          "properties": {
            "not_scored": {
              "type": [
                "null",
                "array"
              ],
              "items": {
                "type": "string",
                "enum": [
                  "Fundamental",
                  "Technical",
                  "Risk",
                  "Sentiment",
                  "Macro"
                ]
              }
            },
            "sentiment_sources_note": {
              "type": "string",
              "description": "The Sentiment evidence this reading did not use and why, as one sentence to relay as given, for example: Evidence not read in this analysis: earnings calls (none found recently)."
            }
          },
          "additionalProperties": false
        },
        "synthesis_report": {
          "type": [
            "null",
            "string"
          ]
        },
        "key_strengths": {
          "type": [
            "null",
            "array"
          ],
          "items": {
            "type": "object",
            "properties": {
              "domain": {
                "type": [
                  "null",
                  "string"
                ]
              },
              "point": {
                "type": "string"
              },
              "impact": {
                "type": "string"
              }
            },
            "required": [
              "point",
              "impact"
            ],
            "additionalProperties": false
          }
        },
        "key_challenges": {
          "type": [
            "null",
            "array"
          ],
          "items": {
            "type": "object",
            "properties": {
              "domain": {
                "type": [
                  "null",
                  "string"
                ]
              },
              "point": {
                "type": "string"
              },
              "impact": {
                "type": "string"
              }
            },
            "required": [
              "point",
              "impact"
            ],
            "additionalProperties": false
          }
        },
        "evidence_history_family": {
          "type": [
            "null",
            "string"
          ]
        },
        "analysis_emphasis": {
          "type": [
            "null",
            "string"
          ]
        },
        "requested_time_range": {
          "type": [
            "null",
            "string"
          ]
        },
        "capacity_assessed": {
          "type": [
            "null",
            "boolean"
          ]
        },
        "predictive_status": {
          "type": [
            "null",
            "string"
          ]
        },
        "filing_facts_note": {
          "type": "string"
        },
        "filing_facts": {
          "type": [
            "null",
            "array"
          ],
          "items": {
            "type": "object",
            "properties": {
              "fact_type": {
                "type": "string"
              },
              "reading": {
                "type": "string"
              },
              "form_type": {
                "type": "string"
              },
              "filing_date": {
                "type": "string"
              },
              "quote": {
                "type": "string"
              }
            },
            "required": [
              "fact_type",
              "reading",
              "form_type",
              "filing_date",
              "quote"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "symbol",
        "exchange",
        "company_name",
        "risk_tolerance",
        "credit_type",
        "time_range_display",
        "risk_tolerance_display",
        "analysis_date",
        "exchange_timezone",
        "domains"
      ],
      "additionalProperties": false
    },
    "error_message": {
      "type": [
        "null",
        "string"
      ]
    },
    "report_url": {
      "type": "string",
      "description": "Open this saved report for factor values, peer context and ranked contributors through Explain where supplied. Sign in to the owning StockLens account. Reading it does not start another analysis. Present with every complete result, which has passed ownership checks; the report can open before its written summaries finish."
    },
    "scope": {
      "type": "string",
      "enum": [
        "single_analysis_result"
      ]
    }
  },
  "required": [
    "analysis_id",
    "status",
    "scope"
  ],
  "additionalProperties": false
}
🟢get_market_summary(ticker, exchange)

One company's latest nightly StockLens score: the composite score (0 to 100) and its rating word, the domain scores with their grade words, the named signals that most shaped the reading (up to three, each with its evidence), the business-model lens where one applies, and any domain that was not scored in it. Use the rating word for the company and grade words only for a domain. A higher Risk score means a stronger risk posture and less downside concern. Without an account, scores answer for the 600 largest companies by market value; a signed-in account also reaches any company in its own portfolios. A result with a status other than scored is an answer, not an error; do not retry it unchanged. Relay its message; not_in_surface means the company is scored and outside the caller's reach, never that StockLens has no analysis. Then act on next_step: for ask_user, ask the person and call the named tool only if they agree; mention an offer on a scored result at most once per conversation. Every result carries freshness; a stale result is StockLens's last computed reading for that listing, not last night's, and should be quoted with its date. When freshness.requested_ticker is present, say which listing was served and what was asked. If the person asks for factor values, peer context or ranked contributors beyond this snapshot, explain that a fresh analysis provides a saved web report with that evidence where available. It requires sign-in and may use an Analysis credit; ask whether they want one before calling initiate_analysis. A snapshot request alone is never permission to start a run. One ticker per call. To compare companies the person names, call it once for each. For any other top, best, worst or filtered request call discover_stocks, and never choose the companies for a ranking yourself.

Input Schema

{
  "type": "object",
  "properties": {
    "ticker": {
      "type": "string",
      "description": "Stock ticker symbol (e.g. AAPL MSFT TSLA). Exactly one ticker per call.",
      "pattern": "^[A-Za-z0-9][A-Za-z0-9.\\-]{0,19}$"
    },
    "exchange": {
      "type": "string",
      "description": "Exchange code (e.g. NASDAQ NYSE). Optional. Resolved automatically if omitted.",
      "enum": [
        "NYSE",
        "NASDAQ",
        "AMEX",
        "OTC",
        "CBOE",
        "TSX",
        "TSXV",
        "CNQ",
        "NEO",
        "MEX",
        "B3",
        "SANTIAGO",
        "BUE",
        "BVC",
        "LSE",
        "EURONEXT_PARIS",
        "EURONEXT_AMSTERDAM",
        "EURONEXT_BRUSSELS",
        "EURONEXT_LISBON",
        "EURONEXT_DUBLIN",
        "XETRA",
        "SIX",
        "BME",
        "MILAN",
        "OSLO",
        "OMX_STOCKHOLM",
        "OMX_HELSINKI",
        "OMX_COPENHAGEN",
        "WSE",
        "VIE",
        "ATH",
        "PRA",
        "BUD",
        "IST",
        "ICE",
        "RIS",
        "TAL",
        "MCX",
        "TSE",
        "HKEX",
        "SHANGHAI",
        "SHENZHEN",
        "ASX",
        "TWSE",
        "SGX",
        "NSE",
        "KRX",
        "BSE",
        "KOE",
        "JKT",
        "KLS",
        "SET",
        "NZE",
        "HOSE",
        "TWO",
        "TADAWUL",
        "JSE",
        "TLV",
        "DFM",
        "EGX",
        "DOH",
        "KUW"
      ]
    }
  },
  "required": [
    "ticker"
  ],
  "additionalProperties": false
}

Output Schema

{
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "scored",
        "not_in_surface",
        "not_covered",
        "ambiguous",
        "not_found"
      ]
    },
    "ticker": {
      "type": "string"
    },
    "exchange": {
      "type": "string"
    },
    "company_name": {
      "type": "string"
    },
    "sector": {
      "type": "string"
    },
    "industry": {
      "type": "string"
    },
    "composite_score": {
      "type": [
        "null",
        "number"
      ]
    },
    "rating": {
      "type": [
        "null",
        "string"
      ]
    },
    "domain_scores": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "type": "object",
        "properties": {
          "domain": {
            "type": "string"
          },
          "score": {
            "type": "number"
          },
          "grade": {
            "type": "string"
          }
        },
        "required": [
          "domain",
          "score",
          "grade"
        ],
        "additionalProperties": false
      }
    },
    "key_drivers": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "type": "object",
        "properties": {
          "domain": {
            "type": [
              "null",
              "string"
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "SUPPORTIVE",
              "HEADWIND",
              "MIXED",
              "COVERAGE_GAP",
              "NEUTRAL_NOT_MATERIAL"
            ]
          },
          "label": {
            "type": "string"
          },
          "context": {
            "type": [
              "null",
              "string"
            ]
          },
          "metric": {
            "type": [
              "null",
              "string"
            ]
          },
          "peer_group": {
            "type": [
              "null",
              "string"
            ]
          }
        },
        "required": [
          "kind",
          "label"
        ],
        "additionalProperties": false
      }
    },
    "lens": {
      "type": [
        "null",
        "object"
      ],
      "properties": {
        "label": {
          "type": "string"
        }
      },
      "required": [
        "label"
      ],
      "additionalProperties": false
    },
    "domain_coverage": {
      "type": [
        "null",
        "object"
      ],
      "properties": {
        "not_scored": {
          "type": [
            "null",
            "array"
          ],
          "items": {
            "type": "string",
            "enum": [
              "Fundamental",
              "Technical",
              "Risk",
              "Sentiment",
              "Macro"
            ]
          }
        },
        "sentiment_sources_note": {
          "type": "string",
          "description": "The Sentiment evidence this reading did not use and why, as one sentence to relay as given, for example: Evidence not read in this analysis: earnings calls (none found recently)."
        }
      },
      "additionalProperties": false
    },
    "analysis_date": {
      "type": "string"
    },
    "freshness": {
      "type": [
        "null",
        "object"
      ],
      "properties": {
        "state": {
          "type": "string",
          "enum": [
            "current",
            "aging",
            "stale"
          ]
        },
        "last_scored": {
          "type": "string"
        },
        "age_days": {
          "type": "integer"
        },
        "requested_ticker": {
          "type": "string"
        }
      },
      "required": [
        "state",
        "last_scored",
        "age_days"
      ],
      "additionalProperties": false
    },
    "config_context": {
      "type": [
        "null",
        "object"
      ],
      "properties": {
        "time_range": {
          "type": "string"
        },
        "risk_tolerance": {
          "type": "string"
        }
      },
      "required": [
        "time_range",
        "risk_tolerance"
      ],
      "additionalProperties": false
    },
    "message": {
      "type": "string"
    },
    "candidates": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "type": "object",
        "properties": {
          "ticker": {
            "type": "string"
          },
          "exchange": {
            "type": "string"
          },
          "company_name": {
            "type": "string"
          },
          "scored": {
            "type": [
              "null",
              "boolean"
            ]
          }
        },
        "required": [
          "ticker",
          "exchange",
          "company_name"
        ],
        "additionalProperties": false
      }
    },
    "next_step": {
      "type": [
        "null",
        "object"
      ],
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "call_tool",
            "ask_user",
            "human_action"
          ]
        },
        "tool": {
          "type": "string"
        },
        "arguments": {
          "type": [
            "null",
            "object"
          ],
          "properties": {
            "ticker": {
              "type": "string"
            },
            "exchange": {
              "type": "string"
            }
          },
          "required": [
            "ticker"
          ],
          "additionalProperties": false
        },
        "options": {
          "type": [
            "null",
            "array"
          ],
          "items": {
            "type": "string"
          }
        },
        "description": {
          "type": "string"
        }
      },
      "required": [
        "kind"
      ],
      "additionalProperties": false
    },
    "watchlist_offered": {
      "type": "boolean"
    },
    "analysis_offered": {
      "type": "boolean"
    },
    "scope": {
      "type": "string",
      "enum": [
        "single_ticker"
      ]
    }
  },
  "required": [
    "status",
    "ticker",
    "scope"
  ],
  "additionalProperties": false
}
🟢get_portfolio_insights(portfolio_id, portfolio_name)

Read one of the person's StockLens portfolios: every company in it, each marked holding or watching with its score and rating word, and the portfolio's average score and rating word, its change over 7 and 30 nights, its largest sector share and its biggest movers over 7 nights, each with a driver of its latest reading that points the same way. Without portfolio_id or portfolio_name it reads the default portfolio. portfolios lists every portfolio the person owns and appears only when there is more than one: then name the portfolio you read once and offer the others by name. With one portfolio, never name it. A portfolio the person does not own returns portfolio_not_found with the choices; never guess. Relay message, caption, trust and concentration as written. If a window says insufficient_data, say so; do not estimate a change. config_changed marks a window in which StockLens changed how it scores, so part of that change is the method, not the market. The scores are the ones get_market_summary serves, as of as_of. It does not rank or screen companies outside the portfolio; call discover_stocks for that. It holds no money figures and gives no personal advice.

Input Schema

{
  "type": "object",
  "properties": {
    "portfolio_id": {
      "type": "string",
      "description": "The id of the portfolio to read, as a portfolios list gives it. Optional: without it or portfolio_name the default portfolio is read."
    },
    "portfolio_name": {
      "type": "string",
      "description": "The name of the portfolio to read, as the person names it (exact, case does not matter). Optional."
    }
  },
  "additionalProperties": false
}

Output Schema

{
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "ok",
        "empty",
        "portfolio_not_found"
      ]
    },
    "message": {
      "type": "string"
    },
    "portfolio_id": {
      "type": "string"
    },
    "portfolio_name": {
      "type": "string"
    },
    "is_default": {
      "type": [
        "null",
        "boolean"
      ]
    },
    "portfolio_count": {
      "type": [
        "null",
        "integer"
      ]
    },
    "portfolios": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "type": "object",
        "properties": {
          "portfolio_id": {
            "type": "string"
          },
          "portfolio_name": {
            "type": "string"
          },
          "is_default": {
            "type": "boolean"
          },
          "company_count": {
            "type": "integer"
          }
        },
        "required": [
          "portfolio_id",
          "portfolio_name",
          "is_default",
          "company_count"
        ],
        "additionalProperties": false
      }
    },
    "caption": {
      "type": "string"
    },
    "trust": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "type": "string"
      }
    },
    "population": {
      "type": "string"
    },
    "company_count": {
      "type": [
        "null",
        "integer"
      ]
    },
    "scored_company_count": {
      "type": [
        "null",
        "integer"
      ]
    },
    "holdings_count": {
      "type": "integer"
    },
    "scored_holdings_count": {
      "type": "integer"
    },
    "fund_count": {
      "type": "integer"
    },
    "average_composite_score": {
      "type": [
        "null",
        "integer"
      ]
    },
    "rating": {
      "type": "string"
    },
    "window_change": {
      "type": [
        "null",
        "object"
      ],
      "properties": {
        "1w": {
          "type": [
            "null",
            "object"
          ],
          "properties": {
            "change": {
              "type": [
                "null",
                "number"
              ]
            },
            "insufficient_data": {
              "type": "boolean"
            },
            "config_changed": {
              "type": "boolean"
            }
          },
          "additionalProperties": false
        },
        "1m": {
          "type": [
            "null",
            "object"
          ],
          "properties": {
            "change": {
              "type": [
                "null",
                "number"
              ]
            },
            "insufficient_data": {
              "type": "boolean"
            },
            "config_changed": {
              "type": "boolean"
            }
          },
          "additionalProperties": false
        }
      },
      "additionalProperties": false
    },
    "concentration": {
      "type": [
        "null",
        "object"
      ],
      "properties": {
        "lead": {
          "type": "string"
        },
        "note": {
          "type": "string"
        },
        "sectors": {
          "type": [
            "null",
            "array"
          ],
          "items": {
            "type": "object",
            "properties": {
              "sector": {
                "type": "string"
              },
              "companies": {
                "type": "integer"
              }
            },
            "required": [
              "sector",
              "companies"
            ],
            "additionalProperties": false
          }
        }
      },
      "additionalProperties": false
    },
    "movers_window": {
      "type": "string",
      "enum": [
        "7_nights"
      ]
    },
    "top_movers": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "type": "object",
        "properties": {
          "ticker": {
            "type": "string"
          },
          "mode": {
            "type": "string",
            "enum": [
              "holding",
              "watching"
            ]
          },
          "change": {
            "type": "number"
          },
          "composite_score": {
            "type": "number"
          },
          "rating": {
            "type": "string"
          },
          "driver": {
            "type": [
              "null",
              "object"
            ],
            "properties": {
              "domain": {
                "type": [
                  "null",
                  "string"
                ]
              },
              "kind": {
                "type": "string",
                "enum": [
                  "SUPPORTIVE",
                  "HEADWIND",
                  "MIXED",
                  "COVERAGE_GAP",
                  "NEUTRAL_NOT_MATERIAL"
                ]
              },
              "label": {
                "type": "string"
              },
              "context": {
                "type": [
                  "null",
                  "string"
                ]
              },
              "metric": {
                "type": [
                  "null",
                  "string"
                ]
              },
              "peer_group": {
                "type": [
                  "null",
                  "string"
                ]
              }
            },
            "required": [
              "kind",
              "label"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "ticker",
          "mode",
          "change",
          "composite_score",
          "rating"
        ],
        "additionalProperties": false
      }
    },
    "companies": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "type": "object",
        "properties": {
          "ticker": {
            "type": "string"
          },
          "company_name": {
            "type": "string"
          },
          "exchange": {
            "type": "string"
          },
          "mode": {
            "type": "string",
            "enum": [
              "holding",
              "watching"
            ]
          },
          "instrument": {
            "type": "string",
            "enum": [
              "fund"
            ]
          },
          "composite_score": {
            "type": [
              "null",
              "number"
            ]
          },
          "rating": {
            "type": "string"
          },
          "freshness": {
            "type": "string",
            "enum": [
              "aging",
              "stale"
            ]
          },
          "last_scored": {
            "type": "string"
          }
        },
        "required": [
          "ticker",
          "exchange",
          "mode"
        ],
        "additionalProperties": false
      }
    },
    "tier_limited": {
      "type": [
        "null",
        "boolean"
      ]
    },
    "as_of": {
      "type": "string"
    },
    "next_step": {
      "type": [
        "null",
        "object"
      ],
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "call_tool",
            "ask_user",
            "human_action"
          ]
        },
        "tool": {
          "type": "string"
        },
        "arguments": {
          "type": [
            "null",
            "object"
          ],
          "properties": {
            "ticker": {
              "type": "string"
            },
            "exchange": {
              "type": "string"
            }
          },
          "required": [
            "ticker"
          ],
          "additionalProperties": false
        },
        "options": {
          "type": [
            "null",
            "array"
          ],
          "items": {
            "type": "string"
          }
        },
        "description": {
          "type": "string"
        }
      },
      "required": [
        "kind"
      ],
      "additionalProperties": false
    },
    "scope": {
      "type": "string",
      "enum": [
        "user_watchlist"
      ]
    }
  },
  "required": [
    "status",
    "scope"
  ],
  "additionalProperties": false
}
🔴initiate_analysis(ticker, exchange, time_range, risk_tolerance, evidence_history_family, ...)

Start a fresh StockLens analysis of one company, only when the person asks for one or agrees to an offer of one in a get_market_summary result. A new run may use one Analysis credit, or one Plus Analysis credit when depth is plus; the result says if the person's plan does not include it. Use it for a requested evidence gap beyond the nightly snapshot, such as factor values, peer context or ranked contributors. Both depths include written domain summaries and synthesis when produced; Plus adds deeper synthesis and extra web cards where available. The assistant result is condensed; the saved web report has the factor cards and Explain views. It returns an analysis_id at once and finishes asynchronously; fetch the result with fetch_analysis_result when the person asks for it. new_run_started and reused_existing say whether a recent matching analysis was reused. One ticker per call. It does not rank or compare companies, and does not trade or move money.

Input Schema

{
  "type": "object",
  "properties": {
    "ticker": {
      "type": "string",
      "description": "Stock ticker symbol (e.g. AAPL). Exactly one ticker per call.",
      "pattern": "^[A-Za-z0-9][A-Za-z0-9.\\-]{0,19}$"
    },
    "exchange": {
      "type": "string",
      "description": "Exchange code (e.g. NASDAQ). Optional. Resolved automatically if omitted.",
      "enum": [
        "NYSE",
        "NASDAQ",
        "AMEX",
        "OTC",
        "CBOE",
        "TSX",
        "TSXV",
        "CNQ",
        "NEO",
        "MEX",
        "B3",
        "SANTIAGO",
        "BUE",
        "BVC",
        "LSE",
        "EURONEXT_PARIS",
        "EURONEXT_AMSTERDAM",
        "EURONEXT_BRUSSELS",
        "EURONEXT_LISBON",
        "EURONEXT_DUBLIN",
        "XETRA",
        "SIX",
        "BME",
        "MILAN",
        "OSLO",
        "OMX_STOCKHOLM",
        "OMX_HELSINKI",
        "OMX_COPENHAGEN",
        "WSE",
        "VIE",
        "ATH",
        "PRA",
        "BUD",
        "IST",
        "ICE",
        "RIS",
        "TAL",
        "MCX",
        "TSE",
        "HKEX",
        "SHANGHAI",
        "SHENZHEN",
        "ASX",
        "TWSE",
        "SGX",
        "NSE",
        "KRX",
        "BSE",
        "KOE",
        "JKT",
        "KLS",
        "SET",
        "NZE",
        "HOSE",
        "TWO",
        "TADAWUL",
        "JSE",
        "TLV",
        "DFM",
        "EGX",
        "DOH",
        "KUW"
      ]
    },
    "time_range": {
      "type": "string",
      "description": "Time horizon. It shapes which signals the analysis weighs most (shorter horizons favor price action, momentum and news; longer favor fundamentals and quality). Not a price forecast. One window per calibrated band: short_2_wk (Short-term), medium_1_mo (Medium-term), long_1_yr (Long-term). Default medium_1_mo. The legacy medium_2_mo and long_2_yr aliases are still accepted and resolve to medium_1_mo and long_1_yr respectively.",
      "enum": [
        "short_2_wk",
        "medium_1_mo",
        "medium_2_mo",
        "long_1_yr",
        "long_2_yr"
      ]
    },
    "risk_tolerance": {
      "type": "string",
      "description": "Analysis focus. It reweights how much the analysis weighs downside/quality risk vs. growth/fundamentals. NOT a personal risk or suitability assessment, and it never changes the company's underlying facts. low=Defensive, medium=Balanced, high=Growth. Default medium.",
      "enum": [
        "low",
        "medium",
        "high"
      ]
    },
    "evidence_history_family": {
      "type": "string",
      "description": "Optional. SHORT_HISTORY | MEDIUM_HISTORY | LONG_HISTORY. Must agree with the family implied by time_range (short_2_wk->SHORT_HISTORY, medium_1_mo/medium_2_mo->MEDIUM_HISTORY, long_1_yr/long_2_yr->LONG_HISTORY); a mismatch is rejected as a validation error before any credit is consumed. Does not select a representative range on its own.",
      "enum": [
        "SHORT_HISTORY",
        "MEDIUM_HISTORY",
        "LONG_HISTORY"
      ]
    },
    "analysis_emphasis": {
      "type": "string",
      "description": "Optional. RISK_EMPHASIS | BALANCED | FUNDAMENTAL_GROWTH_EMPHASIS. Must agree with the emphasis implied by risk_tolerance (low->RISK_EMPHASIS, medium->BALANCED, high->FUNDAMENTAL_GROWTH_EMPHASIS); a mismatch is rejected as a validation error before any credit is consumed.",
      "enum": [
        "RISK_EMPHASIS",
        "BALANCED",
        "FUNDAMENTAL_GROWTH_EMPHASIS"
      ]
    },
    "depth": {
      "type": "string",
      "description": "Analysis depth: standard or plus. Both include written domain summaries and synthesis when produced. Plus uses deeper synthesis and adds extra cards in the web report where available. Standard uses an Analysis credit (LENS_AI); Plus uses a Plus Analysis credit (LENS_AI_PLUS). Default standard.",
      "enum": [
        "standard",
        "plus"
      ]
    }
  },
  "required": [
    "ticker"
  ],
  "additionalProperties": false
}

Output Schema

{
  "type": "object",
  "properties": {
    "analysis_id": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "in_progress",
        "complete",
        "failed"
      ]
    },
    "estimated_seconds": {
      "type": "integer"
    },
    "depth": {
      "type": "string",
      "enum": [
        "standard",
        "plus"
      ]
    },
    "credit_type": {
      "type": "string",
      "enum": [
        "LENS_AI",
        "LENS_AI_PLUS"
      ]
    },
    "new_run_started": {
      "type": "boolean"
    },
    "reused_existing": {
      "type": "boolean"
    },
    "scope": {
      "type": "string",
      "enum": [
        "single_analysis_receipt"
      ]
    }
  },
  "required": [
    "analysis_id",
    "status",
    "estimated_seconds",
    "depth",
    "credit_type",
    "new_run_started",
    "reused_existing",
    "scope"
  ],
  "additionalProperties": false
}
🟢ping

Health check. Returns pong.

Input Schema

{
  "type": "object",
  "additionalProperties": false
}

Output Schema

{
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "description": "Connectivity status: \"ok\" when the MCP server is reachable"
    }
  },
  "required": [
    "status"
  ],
  "additionalProperties": false
}
🔴remove_from_watchlist(ticker, exchange, portfolio_id, portfolio_name)

Remove one company from one of the person's StockLens portfolios. Call it only when the person has asked for it. Without portfolio_id or portfolio_name it removes from the default portfolio, and the result names the portfolio. Relay the result's message. A status other than removed is an answer, not an error. A holding with recorded transactions is not removed here; the result says where to do it. One ticker per call. It does not trade or delete transactions.

Input Schema

{
  "type": "object",
  "properties": {
    "ticker": {
      "type": "string",
      "description": "Stock ticker symbol (e.g. AAPL). Exactly one ticker per call.",
      "pattern": "^[A-Za-z0-9][A-Za-z0-9.\\-]{0,19}$"
    },
    "exchange": {
      "type": "string",
      "description": "Exchange code (e.g. NASDAQ). Optional. When omitted, the ticker is matched against the portfolio; if it is there on more than one exchange you will be asked which.",
      "enum": [
        "NYSE",
        "NASDAQ",
        "AMEX",
        "OTC",
        "CBOE",
        "TSX",
        "TSXV",
        "CNQ",
        "NEO",
        "MEX",
        "B3",
        "SANTIAGO",
        "BUE",
        "BVC",
        "LSE",
        "EURONEXT_PARIS",
        "EURONEXT_AMSTERDAM",
        "EURONEXT_BRUSSELS",
        "EURONEXT_LISBON",
        "EURONEXT_DUBLIN",
        "XETRA",
        "SIX",
        "BME",
        "MILAN",
        "OSLO",
        "OMX_STOCKHOLM",
        "OMX_HELSINKI",
        "OMX_COPENHAGEN",
        "WSE",
        "VIE",
        "ATH",
        "PRA",
        "BUD",
        "IST",
        "ICE",
        "RIS",
        "TAL",
        "MCX",
        "TSE",
        "HKEX",
        "SHANGHAI",
        "SHENZHEN",
        "ASX",
        "TWSE",
        "SGX",
        "NSE",
        "KRX",
        "BSE",
        "KOE",
        "JKT",
        "KLS",
        "SET",
        "NZE",
        "HOSE",
        "TWO",
        "TADAWUL",
        "JSE",
        "TLV",
        "DFM",
        "EGX",
        "DOH",
        "KUW"
      ]
    },
    "portfolio_id": {
      "type": "string",
      "description": "The id of the portfolio to remove from, as get_portfolio_insights lists it. Optional: without it or portfolio_name the default portfolio is used."
    },
    "portfolio_name": {
      "type": "string",
      "description": "The name of the portfolio to remove from, as the person names it (exact, case does not matter). Optional."
    }
  },
  "required": [
    "ticker"
  ],
  "additionalProperties": false
}

Output Schema

{
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "removed",
        "not_in_portfolio",
        "has_transactions",
        "ambiguous_listing",
        "portfolio_not_found"
      ]
    },
    "ticker": {
      "type": "string"
    },
    "exchange": {
      "type": "string"
    },
    "mode": {
      "type": "string",
      "enum": [
        "holding",
        "watching"
      ]
    },
    "portfolio_id": {
      "type": "string"
    },
    "portfolio_name": {
      "type": "string"
    },
    "is_default": {
      "type": [
        "null",
        "boolean"
      ]
    },
    "portfolio_count": {
      "type": [
        "null",
        "integer"
      ]
    },
    "company_count": {
      "type": [
        "null",
        "integer"
      ]
    },
    "message": {
      "type": "string"
    },
    "portfolios": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "type": "object",
        "properties": {
          "portfolio_id": {
            "type": "string"
          },
          "portfolio_name": {
            "type": "string"
          },
          "is_default": {
            "type": "boolean"
          },
          "company_count": {
            "type": "integer"
          }
        },
        "required": [
          "portfolio_id",
          "portfolio_name",
          "is_default",
          "company_count"
        ],
        "additionalProperties": false
      }
    },
    "next_step": {
      "type": [
        "null",
        "object"
      ],
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "call_tool",
            "ask_user",
            "human_action"
          ]
        },
        "tool": {
          "type": "string"
        },
        "arguments": {
          "type": [
            "null",
            "object"
          ],
          "properties": {
            "ticker": {
              "type": "string"
            },
            "exchange": {
              "type": "string"
            }
          },
          "required": [
            "ticker"
          ],
          "additionalProperties": false
        },
        "options": {
          "type": [
            "null",
            "array"
          ],
          "items": {
            "type": "string"
          }
        },
        "description": {
          "type": "string"
        }
      },
      "required": [
        "kind"
      ],
      "additionalProperties": false
    },
    "scope": {
      "type": "string",
      "enum": [
        "user_watchlist_update"
      ]
    }
  },
  "required": [
    "status",
    "message",
    "scope"
  ],
  "additionalProperties": false
}

Community

Rate this Server

Evidence

Recent observations

verifiedversion not recorded9 tools
verifiedversion not recorded9 tools
verifiedversion not recorded8 tools
verifiedversion not recorded8 tools
verifiedversion not recorded8 tools
verifiedversion not recorded8 tools