Skip to main content
Glama

Share an analysis

share_analysis
Destructive

Create (or stop) a public link to one of the signed-in user's saved InvestIQ stock analyses — the app's Share button. Pass a ticker to share the user's latest saved analysis of it, or an analysis_id from get_stock_analysis. Anyone with the link can open the page: it shows the conviction score, its 5 components, the date it was computed and the 'not investment advice' notice — nothing about the user or their account — and search engines don't index it. It does not run a new analysis and costs no credit; the result gives the analysis date. Pass stop_sharing: true to turn the link(s) off. Example: "give me a link to my NVDA analysis for a friend" → ticker NVDA.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "share_analysis"
  }
}

Input Schema

NameRequiredDescriptionDefault
tickerNoTicker of a stock the user has analysed, e.g. NVDA or MC.PA.
analysis_idNoA specific saved analysis (id from get_stock_analysis). Takes precedence over ticker.
stop_sharingNotrue turns the public link off (for the ticker: every link of that stock).

Output Schema

NameRequiredDescriptionDefault
okYesfalse on an error; then `error` says what happened and what to do.
cardNoThe in-chat InvestIQ card, in English and French.
dataNoThe tool's own result fields.
toolYes
as_ofYesISO time the data was computed (a stored analysis: when it was computed).
errorNo
linksNoInvestIQ pages for this result.
degradedNotrue when part of the data was missing.
viz_specNoThe recommended chart's series (data only).
disclaimerYes
data_qualityNoWhat was requested, what was used, and why anything was left out.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations flag destructiveHint=true and openWorldHint=true, and the description earns that by spelling out exactly what becomes publicly visible (conviction score, its 5 components, computation date, disclaimer) and what does not (nothing about the user or account), plus non-indexing by search engines. It also discloses two non-obvious behavioral facts the annotations can't convey: the share is reversible via stop_sharing, and the call costs no credit because no new analysis runs.

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?

Scope, selection rules, disclosure of what gets published, and the cost/no-new-analysis caveat are all front-loaded before the example, which sits correctly at the end. It is dense but every sentence carries information; slight redundancy between '(or stop)' in the opening and the later stop_sharing sentence is the only minor waste.

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

Completeness4/5

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

With an output schema present, the description rightly avoids enumerating return fields yet still notes that the result gives the analysis date; the public-visibility and reversibility details cover the risky parts of an openWorld, destructive-hinted tool. The one gap is that all three parameters are optional and the description never says what happens if neither ticker nor analysis_id is supplied.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning beyond the schema: ticker resolves to the user's *latest saved* analysis of that stock, and stop_sharing on a ticker revokes *every* link for that stock. It also maps a colloquial user request onto the ticker parameter, which the schema alone cannot do.

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?

The description opens with a specific verb and resource — 'Create (or stop) a public link to one of the signed-in user's saved InvestIQ stock analyses' — and anchors it to a familiar UI affordance ('the app's Share button'). It explicitly separates itself from analysis-producing siblings by stating 'It does not run a new analysis' and names get_stock_analysis as the source of analysis_id.

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

Usage Guidelines4/5

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

It gives clear selection rules: ticker for the latest saved analysis of a stock, analysis_id for a specific one, and stop_sharing: true to revoke, plus a natural-language intent example ('give me a link to my NVDA analysis for a friend' → ticker NVDA). What's missing is an explicit named alternative for the complementary need — an agent told 'analyze NVDA' gets only the implicit signal 'does not run a new analysis', with no sibling named to route to.

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