Skip to main content
Glama

Initiate Analysis

initiate_analysis
Destructive

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 inspect_reading for already-produced evidence when its exact reference is available; an evidence question alone never authorizes a run. 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 waits up to 9 seconds for the analysis's scores and returns them in result with its analysis_id when they are ready, otherwise its analysis_id and current status. When there is no result, or narrative.status is pending or running, call fetch_analysis_result with that analysis_id right away; it waits for what is still being written. new_run_started says whether a new run started; present an existing one as the person's analysis, with its date. Present a returned result as fetch_analysis_result describes. One ticker per call. It does not rank or compare companies, and does not trade or move money.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "ticker": "<ticker>"
    },
    "name": "initiate_analysis"
  }
}

Input Schema

NameRequiredDescriptionDefault
depthNoAnalysis 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.
tickerYesStock ticker symbol (e.g. AAPL). Exactly one ticker per call.
exchangeNoExchange code (e.g. NASDAQ). Optional. Resolved automatically if omitted.
time_rangeNoIntended holding period, looking forward from the analysis date. Shorter horizons give recent price action, momentum and news more emphasis than longer ones; longer horizons give business fundamentals and quality more emphasis. Input history can span longer periods. Does not predict price or returns. 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.
analysis_focusNoAnalysis focus: low=Defensive, medium=Balanced, high=Growth. Default medium. Reweights downside/quality risk versus growth/fundamentals, never the underlying facts. Not a personal risk or suitability assessment.
risk_toleranceNoDeprecated compatibility alias for analysis_focus. Use analysis_focus for new calls. If both are supplied they must agree (case-insensitive).
analysis_emphasisNoOptional. RISK_EMPHASIS | BALANCED | FUNDAMENTAL_GROWTH_EMPHASIS. Must agree with the emphasis implied by analysis_focus (low->RISK_EMPHASIS, medium->BALANCED, high->FUNDAMENTAL_GROWTH_EMPHASIS); a mismatch is rejected as a validation error before any credit is consumed.
evidence_history_familyNoOptional. 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.

Output Schema

NameRequiredDescriptionDefault
depthYes
scopeYes
resultNoThe analysis's saved result, as fetch_analysis_result returns it, when its scores were stored while this call waited; absent when the status is pending
statusYes
tickerNoThe listing the analysis is of: its ticker as StockLens holds it
messageNoWhich analysis was started or reused, naming the company, ticker and exchange; relay it as written
exchangeNoThe listing's exchange code
analysis_idYes
credit_typeYes
company_nameNoThe listing's company name, when resolution named it
new_run_startedYes
reused_existingYes
estimated_secondsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedOutput schema / properties / result / properties / result / properties / findings / properties / first_answer / properties / ref / description
      Previous value: -"This finding's reference within this reading only; never an inspect_reading selector."New value: +"This finding's reference within this reading only."
    • changedOutput schema / properties / result / properties / result / properties / findings / properties / leading / items / properties / ref / description
      Previous value: -"This finding's reference within this reading only; never an inspect_reading selector."New value: +"This finding's reference within this reading only."
    • changedOutput schema / properties / result / properties / result / properties / findings / properties / next_looks / items / properties / ref / description
      Previous value: -"This finding's reference within this reading only; never an inspect_reading selector."New value: +"This finding's reference within this reading only."
  2. Changed7 schema fields changed
    • changedOutput schema / properties / result / properties / inspection / properties / label / description
      Previous value: -"Subject label for selecting a view; read the selected result for its material context and bindings."New value: +"Navigation metadata for selecting a view, not text for the person: never quote it. Read the selected result for its material context and bindings."
    • addedOutput schema / properties / result / properties / result / properties / findings
      Added value: +{
      +  "properties": {
      +    "claim": {
      +      "description": "How strongly the leading findings may be described. strongest: both moved this score most. strongest_first: the first moved it most and the second is another factor. explained: describe what the available evidence shows, with no biggest-mover sentence.",
      +      "type": "string"
      +    },
      +    "first_answer": {
      +      "description": "One more finding the answer must carry: a counterpoint (a material finding pointing the other way) or another material finding pointing the same way. Never leave it for a question.",
      +      "properties": {
      +        "driver": {
      +          "properties": {
      +            "company_figure": {
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            },
      +            "context": {
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            },
      +            "domain": {
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            },
      +            "event_date": {
      +              "description": "That event's own day (ISO): name it with the event, e.g. On the Oct 29 earnings call; never the reading's date.",
      +              "type": "string"
      +            },
      +            "event_kind": {
      +              "description": "A certified discrete source (earnings_call, sec_filing, insider_transaction) or measured window (insider_activity, news_coverage, analyst_activity, edinet_large_holding).",
      +              "type": "string"
      +            },
      +            "event_window_end": {
      +              "description": "A measured aggregate's window end (ISO).",
      +              "type": "string"
      +            },
      +            "event_window_start": {
      +              "description": "A measured aggregate's window start (ISO); name the window, never one report.",
      +              "type": "string"
      +            },
      +            "kind": {
      +              "type": "string"
      +            },
      +            "label": {
      +              "type": "string"
      +            },
      +            "latest_material_event_date": {
      +              "description": "The latest material event inside an aggregate's window (ISO).",
      +              "type": "string"
      +            },
      +            "metric": {
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            },
      +            "peer_group": {
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            }
      +          },
      +          "required": [
      +            "kind",
      +            "label"
      +          ],
      +          "type": "object"
      +        },
      +        "fact": {
      +          "description": "This finding's certified figure with its own period and unit; give the figure with that period, which can differ from the reading's date.",
      +          "properties": {
      +            "company_figure": {
      +              "type": "string"
      +            },
      +            "family": {
      +              "description": "peer_comparison or stated_figure.",
      +              "type": "string"
      +            },
      +            "peer_figure": {
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            },
      +            "peer_group": {
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            },
      +            "peer_statistic": {
      +              "description": "Which statistic of the peers peer_figure is, such as median.",
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            },
      +            "period": {
      +              "description": "The window or point in time the figures describe, as written.",
      +              "type": "string"
      +            },
      +            "unit": {
      +              "description": "The figures' unit as written; absent when the figure has none.",
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            }
      +          },
      +          "required": [
      +            "family",
      +            "company_figure",
      +            "period"
      +          ],
      +          "type": [
      +            "null",
      +            "object"
      +          ]
      +        },
      +        "measure": {
      +          "description": "The readable measure the finding is about: the only quantity a question about it may ask about.",
      +          "type": [
      +            "null",
      +            "string"
      +          ]
      +        },
      +        "qualification": {
      +          "properties": {
      +            "applied": {
      +              "description": "true: the qualifying figure eased how StockLens weighed this P/E. false: it changed nothing here and is context at most, never a mitigation.",
      +              "type": "boolean"
      +            },
      +            "company_figure": {
      +              "description": "The company's qualifying figure, as written.",
      +              "type": "string"
      +            },
      +            "pe_figure": {
      +              "type": "string"
      +            },
      +            "peer_basis": {
      +              "description": "observed: a median of observed peer companies. blended: a blended peer mark, never to be called a median of companies.",
      +              "type": "string"
      +            },
      +            "peer_group": {
      +              "type": "string"
      +            },
      +            "peer_median": {
      +              "type": "string"
      +            },
      +            "period_end": {
      +              "description": "The end of the trailing period the figures describe (ISO date).",
      +              "type": "string"
      +            },
      +            "position": {
      +              "description": "above, below or at: the P/E against the stated peer figure.",
      +              "type": "string"
      +            },
      +            "qualifying_measure": {
      +              "description": "The qualifying measure's name, as StockLens says it.",
      +              "type": "string"
      +            },
      +            "qualifying_ref": {
      +              "description": "The ref of another finding in this answer on the qualifying measure: the same figure, so say it once.",
      +              "type": "string"
      +            },
      +            "qualifying_topic": {
      +              "type": "string"
      +            },
      +            "remaining_assessment": {
      +              "description": "headwind, neutral or supportive: how this P/E still reads at this valuation node.",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "qualifying_topic",
      +            "qualifying_measure",
      +            "company_figure",
      +            "period_end",
      +            "pe_figure",
      +            "peer_median",
      +            "peer_group",
      +            "peer_basis",
      +            "position",
      +            "applied",
      +            "remaining_assessment"
      +          ],
      +          "type": [
      +            "null",
      +            "object"
      +          ]
      +        },
      +        "ref": {
      +          "description": "This finding's reference within this reading only; never an inspect_reading selector.",
      +          "type": "string"
      +        },
      +        "role": {
      +          "description": "counterpoint, reinforcing or contrasting; reinforcing means another material finding pointing the same way, never that one fact supports the other.",
      +          "type": "string"
      +        },
      +        "topic": {
      +          "description": "The finding's public topic, stable across readings of this listing; use it to avoid repeating a finding in the conversation.",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "ref",
      +        "driver"
      +      ],
      +      "type": [
      +        "null",
      +        "object"
      +      ]
      +    },
      +    "leading": {
      +      "description": "This reading's strongest distinct, material, explainable influences on its score, in order (0 to 2). An empty list supplies no findings question. A separately carried next_step still applies.",
      +      "items": {
      +        "properties": {
      +          "driver": {
      +            "properties": {
      +              "company_figure": {
      +                "type": [
      +                  "null",
      +                  "string"
      +                ]
      +              },
      +              "context": {
      +                "type": [
      +                  "null",
      +                  "string"
      +                ]
      +              },
      +              "domain": {
      +                "type": [
      +                  "null",
      +                  "string"
      +                ]
      +              },
      +              "event_date": {
      +                "description": "That event's own day (ISO): name it with the event, e.g. On the Oct 29 earnings call; never the reading's date.",
      +                "type": "string"
      +              },
      +              "event_kind": {
      +                "description": "A certified discrete source (earnings_call, sec_filing, insider_transaction) or measured window (insider_activity, news_coverage, analyst_activity, edinet_large_holding).",
      +                "type": "string"
      +              },
      +              "event_window_end": {
      +                "description": "A measured aggregate's window end (ISO).",
      +                "type": "string"
      +              },
      +              "event_window_start": {
      +                "description": "A measured aggregate's window start (ISO); name the window, never one report.",
      +                "type": "string"
      +              },
      +              "kind": {
      +                "type": "string"
      +              },
      +              "label": {
      +                "type": "string"
      +              },
      +              "latest_material_event_date": {
      +                "description": "The latest material event inside an aggregate's window (ISO).",
      +                "type": "string"
      +              },
      +              "metric": {
      +                "type": [
      +                  "null",
      +                  "string"
      +                ]
      +              },
      +              "peer_group": {
      +                "type": [
      +                  "null",
      +                  "string"
      +                ]
      +              }
      +            },
      +            "required": [
      +              "kind",
      +              "label"
      +            ],
      +            "type": "object"
      +          },
      +          "fact": {
      +            "description": "This finding's certified figure with its own period and unit; give the figure with that period, which can differ from the reading's date.",
      +            "properties": {
      +              "company_figure": {
      +                "type": "string"
      +              },
      +              "family": {
      +                "description": "peer_comparison or stated_figure.",
      +                "type": "string"
      +              },
      +              "peer_figure": {
      +                "type": [
      +                  "null",
      +                  "string"
      +                ]
      +              },
      +              "peer_group": {
      +                "type": [
      +                  "null",
      +                  "string"
      +                ]
      +              },
      +              "peer_statistic": {
      +                "description": "Which statistic of the peers peer_figure is, such as median.",
      +                "type": [
      +                  "null",
      +                  "string"
      +                ]
      +              },
      +              "period": {
      +                "description": "The window or point in time the figures describe, as written.",
      +                "type": "string"
      +              },
      +              "unit": {
      +                "description": "The figures' unit as written; absent when the figure has none.",
      +                "type": [
      +                  "null",
      +                  "string"
      +                ]
      +              }
      +            },
      +            "required": [
      +              "family",
      +              "company_figure",
      +              "period"
      +            ],
      +            "type": [
      +              "null",
      +              "object"
      +            ]
      +          },
      +          "measure": {
      +            "description": "The readable measure the finding is about: the only quantity a question about it may ask about.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "qualification": {
      +            "properties": {
      +              "applied": {
      +                "description": "true: the qualifying figure eased how StockLens weighed this P/E. false: it changed nothing here and is context at most, never a mitigation.",
      +                "type": "boolean"
      +              },
      +              "company_figure": {
      +                "description": "The company's qualifying figure, as written.",
      +                "type": "string"
      +              },
      +              "pe_figure": {
      +                "type": "string"
      +              },
      +              "peer_basis": {
      +                "description": "observed: a median of observed peer companies. blended: a blended peer mark, never to be called a median of companies.",
      +                "type": "string"
      +              },
      +              "peer_group": {
      +                "type": "string"
      +              },
      +              "peer_median": {
      +                "type": "string"
      +              },
      +              "period_end": {
      +                "description": "The end of the trailing period the figures describe (ISO date).",
      +                "type": "string"
      +              },
      +              "position": {
      +                "description": "above, below or at: the P/E against the stated peer figure.",
      +                "type": "string"
      +              },
      +              "qualifying_measure": {
      +                "description": "The qualifying measure's name, as StockLens says it.",
      +                "type": "string"
      +              },
      +              "qualifying_ref": {
      +                "description": "The ref of another finding in this answer on the qualifying measure: the same figure, so say it once.",
      +                "type": "string"
      +              },
      +              "qualifying_topic": {
      +                "type": "string"
      +              },
      +              "remaining_assessment": {
      +                "description": "headwind, neutral or supportive: how this P/E still reads at this valuation node.",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "qualifying_topic",
      +              "qualifying_measure",
      +              "company_figure",
      +              "period_end",
      +              "pe_figure",
      +              "peer_median",
      +              "peer_group",
      +              "peer_basis",
      +              "position",
      +              "applied",
      +              "remaining_assessment"
      +            ],
      +            "type": [
      +              "null",
      +              "object"
      +            ]
      +          },
      +          "ref": {
      +            "description": "This finding's reference within this reading only; never an inspect_reading selector.",
      +            "type": "string"
      +          },
      +          "role": {
      +            "description": "counterpoint, reinforcing or contrasting; reinforcing means another material finding pointing the same way, never that one fact supports the other.",
      +            "type": "string"
      +          },
      +          "topic": {
      +            "description": "The finding's public topic, stable across readings of this listing; use it to avoid repeating a finding in the conversation.",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "ref",
      +          "driver"
      +        ],
      +        "type": "object"
      +      },
      +      "type": [
      +        "null",
      +        "array"
      +      ]
      +    },
      +    "next_looks": {
      +      "description": "Up to two unused findings this result can answer, best first, each with an approved closing question; present at most one. Absent when an offer or another ask takes the closing line.",
      +      "items": {
      +        "properties": {
      +          "answer": {
      +            "description": "The certified facts that answer a yes, relayed as given with their period.",
      +            "properties": {
      +              "company_figure": {
      +                "type": "string"
      +              },
      +              "family": {
      +                "description": "peer_comparison or stated_figure.",
      +                "type": "string"
      +              },
      +              "peer_figure": {
      +                "type": [
      +                  "null",
      +                  "string"
      +                ]
      +              },
      +              "peer_group": {
      +                "type": [
      +                  "null",
      +                  "string"
      +                ]
      +              },
      +              "peer_statistic": {
      +                "description": "Which statistic of the peers peer_figure is, such as median.",
      +                "type": [
      +                  "null",
      +                  "string"
      +                ]
      +              },
      +              "period": {
      +                "description": "The window or point in time the figures describe, as written.",
      +                "type": "string"
      +              },
      +              "unit": {
      +                "description": "The figures' unit as written; absent when the figure has none.",
      +                "type": [
      +                  "null",
      +                  "string"
      +                ]
      +              }
      +            },
      +            "required": [
      +              "family",
      +              "company_figure",
      +              "period"
      +            ],
      +            "type": "object"
      +          },
      +          "event_date": {
      +            "description": "That event's own day (ISO): name it with the event, e.g. On the Oct 29 earnings call; never the reading's date.",
      +            "type": "string"
      +          },
      +          "event_kind": {
      +            "description": "A certified discrete source (earnings_call, sec_filing, insider_transaction) or measured window (insider_activity, news_coverage, analyst_activity, edinet_large_holding).",
      +            "type": "string"
      +          },
      +          "event_window_end": {
      +            "description": "A measured aggregate's window end (ISO).",
      +            "type": "string"
      +          },
      +          "event_window_start": {
      +            "description": "A measured aggregate's window start (ISO); name the window, never one report.",
      +            "type": "string"
      +          },
      +          "latest_material_event_date": {
      +            "description": "The latest material event inside an aggregate's window (ISO).",
      +            "type": "string"
      +          },
      +          "measure": {
      +            "type": "string"
      +          },
      +          "question": {
      +            "description": "An approved closing question this result can answer, worded for the assistant to ask; ask it as written or in your own words about the same measure.",
      +            "type": "string"
      +          },
      +          "ref": {
      +            "description": "This finding's reference within this reading only; never an inspect_reading selector.",
      +            "type": "string"
      +          },
      +          "role": {
      +            "description": "reinforcing or contrasting, relative to the first leading finding.",
      +            "type": "string"
      +          },
      +          "topic": {
      +            "description": "The finding's public topic; never ask about a topic already covered for this company in the conversation.",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "question",
      +          "ref",
      +          "topic",
      +          "measure",
      +          "answer"
      +        ],
      +        "type": "object"
      +      },
      +      "type": [
      +        "null",
      +        "array"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "claim",
      +    "leading"
      +  ],
      +  "type": [
      +    "null",
      +    "object"
      +  ]
      +}
    • addedOutput schema / properties / result / properties / result / properties / key_drivers / items / properties / event_date
      Added value: +{
      +  "description": "That event's own day (ISO): name it with the event, e.g. On the Oct 29 earnings call; never the reading's date.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / result / properties / result / properties / key_drivers / items / properties / event_kind
      Added value: +{
      +  "description": "A certified discrete source (earnings_call, sec_filing, insider_transaction) or measured window (insider_activity, news_coverage, analyst_activity, edinet_large_holding).",
      +  "type": "string"
      +}
    • addedOutput schema / properties / result / properties / result / properties / key_drivers / items / properties / event_window_end
      Added value: +{
      +  "description": "A measured aggregate's window end (ISO).",
      +  "type": "string"
      +}
    • addedOutput schema / properties / result / properties / result / properties / key_drivers / items / properties / event_window_start
      Added value: +{
      +  "description": "A measured aggregate's window start (ISO); name the window, never one report.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / result / properties / result / properties / key_drivers / items / properties / latest_material_event_date
      Added value: +{
      +  "description": "The latest material event inside an aggregate's window (ISO).",
      +  "type": "string"
      +}
  3. Changed1 schema field changed
    • addedOutput schema / properties / result / properties / result / properties / key_drivers / items / properties / company_figure
      Added value: +{
      +  "type": [
      +    "null",
      +    "string"
      +  ]
      +}
  4. Changed1 schema field changed
    • addedOutput schema / properties / result / properties / result / properties / canonical_url
      Added value: +{
      +  "description": "Public company page for this listing. It shows the current nightly reading.",
      +  "type": "string"
      +}
  5. Changed1 schema field changed
    • addedOutput schema / properties / result / properties / signed_in_as
      Added value: +{
      +  "description": "The StockLens account that owns report_url, its email masked: the report opens on stocklens.com when this account is signed in. Present only with report_url.",
      +  "type": "string"
      +}
  6. Changed1 schema field changed
    • addedOutput schema / properties / result
      Added value: +{
      +  "description": "The analysis's saved result, as fetch_analysis_result returns it, when its scores were stored while this call waited; absent when the status is pending",
      +  "properties": {
      +    "analysis_id": {
      +      "type": "string"
      +    },
      +    "base_digest": {
      +      "description": "Identifies the saved scores and evidence of a complete result. It stays the same when the written summaries arrive.",
      +      "type": "string"
      +    },
      +    "deterministic_ready_at": {
      +      "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.",
      +      "type": "string"
      +    },
      +    "error_message": {
      +      "type": [
      +        "null",
      +        "string"
      +      ]
      +    },
      +    "inspection": {
      +      "properties": {
      +        "arguments": {
      +          "properties": {
      +            "reading_ref": {
      +              "description": "Exact reading_ref returned by StockLens. Never reconstruct from a ticker or date.",
      +              "type": "string"
      +            },
      +            "selector": {
      +              "description": "Copy the selector from inspection.arguments, including an optional overview continuation. Required for other views.",
      +              "type": "string"
      +            },
      +            "view": {
      +              "description": "Copy from inspection.arguments; default overview. Only overview, finding, assessment or observation.",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "reading_ref"
      +          ],
      +          "type": "object"
      +        },
      +        "label": {
      +          "description": "Subject label for selecting a view; read the selected result for its material context and bindings.",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "label",
      +        "arguments"
      +      ],
      +      "type": [
      +        "null",
      +        "object"
      +      ]
      +    },
      +    "message": {
      +      "description": "A sentence to relay as given: while in_progress, the analysis's actual stage; on a complete result, whether its written summaries are still being written or could not be completed. Never invent or rotate progress narration.",
      +      "type": "string"
      +    },
      +    "narrative": {
      +      "description": "The state of the written summaries (the domain conclusions, the synthesis, and the key strengths and challenges) of a complete result.",
      +      "properties": {
      +        "error_code": {
      +          "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"
      +          ],
      +          "type": "string"
      +        },
      +        "failed_at": {
      +          "description": "When the written summaries failed (ISO 8601).",
      +          "type": "string"
      +        },
      +        "ready_at": {
      +          "description": "When the written summaries became ready (ISO 8601).",
      +          "type": "string"
      +        },
      +        "revision": {
      +          "description": "Rises with every change of the summaries' state; a higher revision is the newer answer.",
      +          "type": "integer"
      +        },
      +        "status": {
      +          "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"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "status",
      +        "revision"
      +      ],
      +      "type": [
      +        "null",
      +        "object"
      +      ]
      +    },
      +    "progress_pct": {
      +      "type": [
      +        "null",
      +        "integer"
      +      ]
      +    },
      +    "reading_ref": {
      +      "type": "string"
      +    },
      +    "report_url": {
      +      "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.",
      +      "type": "string"
      +    },
      +    "result": {
      +      "anyOf": [
      +        {
      +          "required": [
      +            "analysis_focus",
      +            "analysis_focus_display"
      +          ]
      +        },
      +        {
      +          "required": [
      +            "risk_tolerance",
      +            "risk_tolerance_display"
      +          ]
      +        }
      +      ],
      +      "properties": {
      +        "analysis_date": {
      +          "type": "string"
      +        },
      +        "analysis_emphasis": {
      +          "type": [
      +            "null",
      +            "string"
      +          ]
      +        },
      +        "analysis_focus": {
      +          "type": "string"
      +        },
      +        "analysis_focus_display": {
      +          "type": "string"
      +        },
      +        "analysis_source_exchange": {
      +          "type": [
      +            "null",
      +            "string"
      +          ]
      +        },
      +        "canonical_company_key": {
      +          "type": [
      +            "null",
      +            "string"
      +          ]
      +        },
      +        "capacity_assessed": {
      +          "type": [
      +            "null",
      +            "boolean"
      +          ]
      +        },
      +        "company_name": {
      +          "type": "string"
      +        },
      +        "credit_type": {
      +          "type": "string"
      +        },
      +        "currency": {
      +          "type": "string"
      +        },
      +        "current_price": {
      +          "type": [
      +            "null",
      +            "number"
      +          ]
      +        },
      +        "display_composite_score": {
      +          "type": [
      +            "null",
      +            "integer"
      +          ]
      +        },
      +        "display_rating": {
      +          "type": [
      +            "null",
      +            "string"
      +          ]
      +        },
      +        "domain_coverage": {
      +          "properties": {
      +            "not_scored": {
      +              "items": {
      +                "enum": [
      +                  "Fundamental",
      +                  "Technical",
      +                  "Risk",
      +                  "Sentiment",
      +                  "Macro"
      +                ],
      +                "type": "string"
      +              },
      +              "type": [
      +                "null",
      +                "array"
      +              ]
      +            },
      +            "sentiment_sources_note": {
      +              "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).",
      +              "type": "string"
      +            }
      +          },
      +          "type": [
      +            "null",
      +            "object"
      +          ]
      +        },
      +        "domains": {
      +          "items": {
      +            "properties": {
      +              "analysis": {
      +                "type": [
      +                  "null",
      +                  "string"
      +                ]
      +              },
      +              "contribution": {
      +                "type": "string"
      +              },
      +              "domain": {
      +                "type": "string"
      +              },
      +              "grade": {
      +                "type": "string"
      +              },
      +              "insider_key_metrics": {
      +                "items": {
      +                  "properties": {
      +                    "label": {
      +                      "type": "string"
      +                    },
      +                    "value": {
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "label",
      +                    "value"
      +                  ],
      +                  "type": "object"
      +                },
      +                "type": [
      +                  "null",
      +                  "array"
      +                ]
      +              },
      +              "news_key_articles": {
      +                "items": {
      +                  "properties": {
      +                    "conviction": {
      +                      "type": "number"
      +                    },
      +                    "published_at": {
      +                      "type": "string"
      +                    },
      +                    "publisher": {
      +                      "type": "string"
      +                    },
      +                    "title": {
      +                      "type": "string"
      +                    },
      +                    "tone": {
      +                      "type": "string"
      +                    },
      +                    "url": {
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "title",
      +                    "publisher",
      +                    "url",
      +                    "published_at",
      +                    "tone",
      +                    "conviction"
      +                  ],
      +                  "type": "object"
      +                },
      +                "type": [
      +                  "null",
      +                  "array"
      +                ]
      +              },
      +              "score": {
      +                "type": "integer"
      +              }
      +            },
      +            "required": [
      +              "domain",
      +              "score",
      +              "grade"
      +            ],
      +            "type": "object"
      +          },
      +          "type": [
      +            "null",
      +            "array"
      +          ]
      +        },
      +        "evidence": {
      +          "type": "string"
      +        },
      +        "evidence_history_family": {
      +          "type": [
      +            "null",
      +            "string"
      +          ]
      +        },
      +        "exchange": {
      +          "type": "string"
      +        },
      +        "exchange_timezone": {
      +          "type": "string"
      +        },
      +        "filing_facts": {
      +          "items": {
      +            "properties": {
      +              "fact_type": {
      +                "type": "string"
      +              },
      +              "filing_date": {
      +                "type": "string"
      +              },
      +              "form_type": {
      +                "type": "string"
      +              },
      +              "quote": {
      +                "type": "string"
      +              },
      +              "reading": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "fact_type",
      +              "reading",
      +              "form_type",
      +              "filing_date",
      +              "quote"
      +            ],
      +            "type": "object"
      +          },
      +          "type": [
      +            "null",
      +            "array"
      +          ]
      +        },
      +        "filing_facts_note": {
      +          "type": "string"
      +        },
      +        "key_challenges": {
      +          "items": {
      +            "properties": {
      +              "domain": {
      +                "type": [
      +                  "null",
      +                  "string"
      +                ]
      +              },
      +              "impact": {
      +                "type": "string"
      +              },
      +              "point": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "point",
      +              "impact"
      +            ],
      +            "type": "object"
      +          },
      +          "type": [
      +            "null",
      +            "array"
      +          ]
      +        },
      +        "key_drivers": {
      +          "items": {
      +            "properties": {
      +              "context": {
      +                "type": [
      +                  "null",
      +                  "string"
      +                ]
      +              },
      +              "domain": {
      +                "type": [
      +                  "null",
      +                  "string"
      +                ]
      +              },
      +              "kind": {
      +                "enum": [
      +                  "SUPPORTIVE",
      +                  "HEADWIND",
      +                  "MIXED",
      +                  "COVERAGE_GAP",
      +                  "NEUTRAL_NOT_MATERIAL"
      +                ],
      +                "type": "string"
      +              },
      +              "label": {
      +                "type": "string"
      +              },
      +              "metric": {
      +                "type": [
      +                  "null",
      +                  "string"
      +                ]
      +              },
      +              "peer_group": {
      +                "type": [
      +                  "null",
      +                  "string"
      +                ]
      +              }
      +            },
      +            "required": [
      +              "kind",
      +              "label"
      +            ],
      +            "type": "object"
      +          },
      +          "type": [
      +            "null",
      +            "array"
      +          ]
      +        },
      +        "key_strengths": {
      +          "items": {
      +            "properties": {
      +              "domain": {
      +                "type": [
      +                  "null",
      +                  "string"
      +                ]
      +              },
      +              "impact": {
      +                "type": "string"
      +              },
      +              "point": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "point",
      +              "impact"
      +            ],
      +            "type": "object"
      +          },
      +          "type": [
      +            "null",
      +            "array"
      +          ]
      +        },
      +        "lens": {
      +          "properties": {
      +            "label": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "label"
      +          ],
      +          "type": [
      +            "null",
      +            "object"
      +          ]
      +        },
      +        "predictive_status": {
      +          "type": [
      +            "null",
      +            "string"
      +          ]
      +        },
      +        "price_change": {
      +          "type": [
      +            "null",
      +            "number"
      +          ]
      +        },
      +        "price_change_percent": {
      +          "type": [
      +            "null",
      +            "number"
      +          ]
      +        },
      +        "requested_time_range": {
      +          "type": [
      +            "null",
      +            "string"
      +          ]
      +        },
      +        "risk_tolerance": {
      +          "description": "Historical response alias for analysis_focus; new responses use the canonical key.",
      +          "type": "string"
      +        },
      +        "risk_tolerance_display": {
      +          "description": "Historical response alias for analysis_focus_display; new responses use the canonical key.",
      +          "type": "string"
      +        },
      +        "symbol": {
      +          "type": "string"
      +        },
      +        "synthesis_report": {
      +          "type": [
      +            "null",
      +            "string"
      +          ]
      +        },
      +        "time_range_display": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "symbol",
      +        "exchange",
      +        "company_name",
      +        "credit_type",
      +        "time_range_display",
      +        "analysis_date",
      +        "exchange_timezone",
      +        "domains"
      +      ],
      +      "type": [
      +        "null",
      +        "object"
      +      ]
      +    },
      +    "retry_after_seconds": {
      +      "type": [
      +        "null",
      +        "integer"
      +      ]
      +    },
      +    "scope": {
      +      "enum": [
      +        "single_analysis_result"
      +      ],
      +      "type": "string"
      +    },
      +    "status": {
      +      "enum": [
      +        "in_progress",
      +        "complete",
      +        "failed"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "analysis_id",
      +    "status",
      +    "scope"
      +  ],
      +  "type": "object"
      +}
  7. Changed5 schema fields changed
    • removedOutput schema / additionalProperties
      Removed value: -false
    • addedOutput schema / properties / company_name
      Added value: +{
      +  "description": "The listing's company name, when resolution named it",
      +  "type": "string"
      +}
    • addedOutput schema / properties / exchange
      Added value: +{
      +  "description": "The listing's exchange code",
      +  "type": "string"
      +}
    • addedOutput schema / properties / message
      Added value: +{
      +  "description": "Which analysis was started or reused, naming the company, ticker and exchange; relay it as written",
      +  "type": "string"
      +}
    • addedOutput schema / properties / ticker
      Added value: +{
      +  "description": "The listing the analysis is of: its ticker as StockLens holds it",
      +  "type": "string"
      +}
  8. Changed3 schema fields changed
    • changedInput schema / properties / analysis_emphasis / description
      Previous value: -"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."New value: +"Optional. RISK_EMPHASIS | BALANCED | FUNDAMENTAL_GROWTH_EMPHASIS. Must agree with the emphasis implied by analysis_focus (low->RISK_EMPHASIS, medium->BALANCED, high->FUNDAMENTAL_GROWTH_EMPHASIS); a mismatch is rejected as a validation error before any credit is consumed."
    • addedInput schema / properties / analysis_focus
      Added value: +{
      +  "description": "Analysis focus: low=Defensive, medium=Balanced, high=Growth. Default medium. Reweights downside/quality risk versus growth/fundamentals, never the underlying facts. Not a personal risk or suitability assessment.",
      +  "enum": [
      +    "low",
      +    "medium",
      +    "high"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / risk_tolerance / description
      Previous value: -"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."New value: +"Deprecated compatibility alias for analysis_focus. Use analysis_focus for new calls. If both are supplied they must agree (case-insensitive)."
  9. Changed1 schema field changed
    • changedInput schema / properties / time_range / description
      Previous value: -"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."New value: +"Intended holding period, looking forward from the analysis date. Shorter horizons give recent price action, momentum and news more emphasis than longer ones; longer horizons give business fundamentals and quality more emphasis. Input history can span longer periods. Does not predict price or returns. 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."
  10. Changed1 schema field changed
    • changedInput schema / properties / depth / description
      Previous value: -"Analysis depth: standard or plus. Standard consumes an Analysis credit (LENS_AI). Plus consumes a Plus Analysis credit (LENS_AI_PLUS) and may add AI narratives. Default standard."New value: +"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."
  11. Changed1 schema field changed
    • changedInput schema / properties / ticker / pattern
      Previous value: -"^[A-Za-z][A-Za-z.\\-]{0,9}$"New value: +"^[A-Za-z0-9][A-Za-z0-9.\\-]{0,19}$"
  12. Changed5 schema fields changed
    • changedInput schema / properties / exchange / description
      Previous value: -"Exchange code (e.g. NASDAQ). Optional - resolved automatically if omitted."New value: +"Exchange code (e.g. NASDAQ). Optional. Resolved automatically if omitted."
    • addedInput schema / properties / exchange / enum
      Added value: +[
      +  "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"
      +]
    • changedInput schema / properties / risk_tolerance / description
      Previous value: -"Analysis focus — 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."New value: +"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."
    • changedInput schema / properties / ticker / description
      Previous value: -"Stock ticker symbol (e.g. AAPL)"New value: +"Stock ticker symbol (e.g. AAPL). Exactly one ticker per call."
    • changedInput schema / properties / time_range / description
      Previous value: -"Time horizon — 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."New value: +"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."
  13. Changed1 schema field changed
    • changedInput schema / properties / exchange / description
      Previous value: -"Exchange code (e.g. NASDAQ). Optional."New value: +"Exchange code (e.g. NASDAQ). Optional - resolved automatically if omitted."
  14. Changed3 schema fields changed
    • addedInput schema / properties / ticker / pattern
      Added value: +"^[A-Za-z][A-Za-z.\\-]{0,9}$"
    • addedOutput schema / properties / scope
      Added value: +{
      +  "enum": [
      +    "single_analysis_receipt"
      +  ],
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "analysis_id",
      -  "status",
      -  "estimated_seconds",
      -  "depth",
      -  "credit_type",
      -  "new_run_started",
      -  "reused_existing"
      -]New value: +[
      +  "analysis_id",
      +  "status",
      +  "estimated_seconds",
      +  "depth",
      +  "credit_type",
      +  "new_run_started",
      +  "reused_existing",
      +  "scope"
      +]
  15. Changed1 schema field changed
    • changedInput schema / properties / depth / description
      Previous value: -"Analysis depth: standard or plus. Standard uses LENS_AI credit. Plus uses LENS_AI_PLUS credit and may add AI narratives. Default standard."New value: +"Analysis depth: standard or plus. Standard consumes an Analysis credit (LENS_AI). Plus consumes a Plus Analysis credit (LENS_AI_PLUS) and may add AI narratives. Default standard."
  16. First observed

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well beyond the annotations by disclosing credit consumption (Analysis vs Plus Analysis credit), plan eligibility failure, and a bounded 9-second wait with a possible pending/running status. The destructiveHint=true cost model is largely explained, though it never says whether a consumed credit is refundable or a run cancellable — the one material gap for a non-idempotent, credit-spending call.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The authorization condition is correctly front-loaded and most sentences carry unique operational content (credits, wait window, status handling, follow-up call, presentation rules). It is dense and somewhat run-on, and the depth explanation duplicates the schema verbatim, which is wasted text.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Complete for a mutating, credit-consuming initiation tool: it covers authorization, cost, timing, partial-result handling, the mandatory fetch_analysis_result follow-up, the new_run_started flag, and presentation rules. With an output schema present, no return-value description is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so all eight parameters are already documented in structured form. The description restates the depth trade-off already present in the depth enum and adds only the "one ticker per call" constraint, so it contributes marginal meaning beyond the schema; baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource ("Start a fresh StockLens analysis of one company") and immediately scopes it to a single ticker. It also draws the line against two siblings by name — inspect_reading for existing evidence and fetch_analysis_result for retrieval — so an agent can route correctly without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit gating: only when the person asks or accepts an offer in a get_market_summary result, and "an evidence question alone never authorizes a run." It names the alternative (inspect_reading) with the exact condition that selects it, and states exclusions — no ranking, comparison, or trading.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources