| name | alphagbm-investment-thesis |
| description | > Use when this capability is needed. |
AlphaGBM Investment Thesis
Turn "I bought this becauseโฆ" into a tracked, monitored record. Each thesis pairs a prose buy-reason with structured sell conditions so the system can auto-detect when the reasoning no longer holds.
When to use
- User wants to document why they bought a stock
- User wants to set exit triggers (price, PE, fundamental breach)
- User asks which theses are still valid vs triggered
- User asks to update / refine an existing thesis
- User mentions "่ฎบๆฎ" / "ไนฐๅ
ฅ็็ฑ" / "ๅๅบๆกไปถ" / "thesis" / "exit trigger"
Prerequisites
- API Key: env
ALPHAGBM_API_KEY (format agbm_xxxxโฆ).
- Base URL: default
https://alphagbm.zeabur.app. Override via ALPHAGBM_BASE_URL.
- Profile required: A thesis must attach to an existing company profile. If the user hasn't created a profile for the ticker, call
POST /api/research/profiles first (see alphagbm-company-profile).
API Endpoints
All endpoints require Authorization: Bearer $ALPHAGBM_API_KEY.
1. List theses
GET /api/research/theses?status=active
| Query | Values | Description |
|---|
status | active / triggered / closed | Optional filter |
Response:
{
"success": true,
"theses": [
{ "id": 12, "ticker": "NVDA", "buy_thesis": "...", "status": "active", ... }
]
}
2. Get thesis by ticker
GET /api/research/theses/<TICKER>
Returns the active thesis for a ticker. 404 if none exists.
3. Create thesis
POST /api/research/theses
Content-Type: application/json
{
"ticker": "NVDA",
"buy_thesis": "AI capex cycle; data-center GPU moat; FCF > $60B.",
"sell_conditions": [
{ "type": "price_drop_pct", "value": 20 },
{ "type": "pe_above", "value": 60 },
{ "type": "growth_below", "value": 15 },
{ "type": "thesis_breach", "value": "cloud capex guidance cut > 20%" }
]
}
| Parameter | Type | Required | Description |
|---|
ticker | string | yes | Must match an existing profile |
buy_thesis | string | yes | Free-form prose, recommend 2-4 sentences |
sell_conditions | array | no | Structured triggers (see types below) |
Common sell_conditions types:
price_drop_pct โ drop from purchase/peak %
pe_above / pb_above โ valuation ceiling
growth_below โ revenue/earnings growth threshold
thesis_breach โ free-text qualitative trigger (monitored manually)
4. Update thesis (by id)
PUT /api/research/theses/<THESIS_ID>
Content-Type: application/json
{"buy_thesis": "updated prose", "sell_conditions": [...], "status": "closed"}
Partial updates allowed. Note: uses thesis_id (int), not ticker โ read the id from a prior list or get.
5. Delete thesis (by id)
DELETE /api/research/theses/<THESIS_ID>
Hard-delete. Also uses numeric id.
Response schema โ full thesis
{
id, ticker,
buy_thesis, // prose
sell_conditions, // [{type, value}]
status, // "active" | "triggered" | "closed"
thesis_score, // AI confidence 0-100 (if scored)
ai_feedback, // AI critique of the thesis (markdown)
triggered_at, trigger_detail, // populated when status flips
created_at, updated_at
}
Status lifecycle
active โโ(sell condition fires)โโโถ triggered
โ โ
โโโโโโโโโ(user closes)โโโถ closed โโโโ
When status = "triggered", trigger_detail shows which condition fired. Surface this to the user โ it's the whole point of the system.
Typical Workflow
1. User: "I'm buying NVDA because AI capex is still accelerating"
โ (ensure profile exists โ see alphagbm-company-profile)
โ POST /api/research/theses with buy_thesis + sell_conditions
โ Confirm: "Saved. Monitoring: price drop > 20%, PE > 60, growth < 15%."
2. User: "What are my active theses?"
โ GET /api/research/theses?status=active
โ Table: ticker ยท one-line thesis ยท conditions ยท score
3. User: "Any theses triggered?"
โ GET /api/research/theses?status=triggered
โ Alert list with trigger_detail explaining why
4. User: "Update my NVDA thesis โ exit if PE > 70 instead of 60"
โ GET /api/research/theses/NVDA to find id
โ PUT /api/research/theses/<id> with revised sell_conditions
Output Formatting Tips
When presenting a thesis to the user, highlight:
- Ticker + status (with color/emoji: active=green, triggered=red, closed=gray)
- Buy thesis โ first 2 sentences verbatim
- Sell conditions โ bulleted, human-phrased ("Exit if price drops 20%")
- If triggered โ which trigger fired, lead with that
- AI feedback / score โ if present, show as a pull-quote
- Age โ "written 3 weeks ago, reviewed 2 days ago"
Related Skills
- alphagbm-company-profile โ Prerequisite. A thesis attaches to a profile.
- alphagbm-health-check โ Surfaces theses that may have drifted from their original premise
- alphagbm-stock-analysis โ Run a fresh analysis to sanity-check a thesis
Powered by AlphaGBM โ Real-data options & research intelligence for traders and AI agents. 10K+ users.
Source: AlphaGBM/skills โ distributed by TomeVault.