Skip to main content
Glama

Score position drift

score_position_drift
Read-only

Score how a single position's regime fit has drifted since entry. Returns regime_at_entry, regime_now, fit_score_at_entry, fit_score_now, drift_score (now - entry), drift_label (improved/stable/deteriorated/review_now), explanation, and review_questions. No buy/sell recommendation — output is observational. Supports Chapter 4 Mode 4.2 (Position Retrospective) for single-name regime-fit review and Mode 4.3 (Thesis Status Sweep) for per-position drift across the book.

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": {
      "symbol": "<symbol>",
      "asset_class": "<asset_class>",
      "entry_date": "<entry_date>"
    },
    "name": "score_position_drift"
  }
}

Input Schema

NameRequiredDescriptionDefault
symbolYesTicker or instrument (e.g. AAPL, BTC, TLT)
thesisNoOriginal thesis text. Echoed back word-for-word in review questions.
convictionNoUser-supplied conviction 1–10. Drives conviction_gap if a meaningful gap exists vs the regime fit score.
entry_dateYesISO date (YYYY-MM-DD) when the position was opened
asset_classYesAsset class for fit-score lookup, drawn from the holding's actual exposure (Chapter 2 Mode 2.1) rather than from the current regime. A hybrid holding is scored per sleeve and weight-blended. Drives the regime-fit calculation.
symbol_typeNoPrice-API hint. Inferred from asset_class if omitted.

Output Schema

NameRequiredDescriptionDefault
symbolNo
price_nowNo
as_of_dateNo
entry_dateNo
regime_nowNo
asset_classNo
drift_labelNo
drift_scoreNo
explanationNo
fit_score_nowNo
conviction_gapNo
price_at_entryNo
terms_glossaryNo
regime_at_entryNo
staleness_flagsNo
review_questionsNo
total_return_pctNo
fit_score_at_entryNo
regime_at_entry_sourceNo
classification_warningsNo
algorithm_version_at_entryNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / algorithm_version_at_entry
      Added value: +{
      +  "anyOf": [
      +    {
      +      "anyOf": [
      +        {
      +          "not": {}
      +        },
      +        {
      +          "type": "string"
      +        }
      +      ]
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / regime_at_entry_source
      Added value: +{
      +  "anyOf": [
      +    {
      +      "anyOf": [
      +        {
      +          "not": {}
      +        },
      +        {
      +          "type": "string"
      +        }
      +      ]
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
  2. Changed1 schema field changed
    • changedOutput schema / additionalProperties
      Previous value: -falseNew value: +true
  3. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already establish readOnly, non-destructive, closed-world behavior, so the description need not repeat safety. It adds real behavioral context instead: 'No buy/sell recommendation — output is observational' and the drift_label vocabulary (improved/stable/deteriorated/review_now) tell the agent how to interpret and how not to over-read the result.

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?

Front-loaded with the core action, then scope, then workflow mapping. The long enumeration of return fields is somewhat wasteful given an output schema exists, but the rest of the text is tight and well ordered.

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?

For a single-position scoring tool with full schema coverage, an output schema, and read-only annotations, the description covers purpose, scope, interpretation, and workflow placement. The only gap is the absence of a contrast with get_drift_alerts for book-wide use cases.

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 description coverage is 100%, so all six parameters (including the asset_class enum and conviction range) are already documented in the schema. The description adds no parameter-level meaning such as how entry_date interacts with historical regime lookups, so the baseline of 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: 'Score how a single position's regime fit has drifted since entry.' The word 'single' plus the drift framing distinguishes it from the sibling get_drift_alerts (book-level alerts) without needing to open either schema.

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?

Names the concrete workflows it serves: Chapter 4 Mode 4.2 (Position Retrospective) for single-name review and Mode 4.3 (Thesis Status Sweep) for per-position drift across the book. That is clear when-to-use context, but there are no explicit exclusions or a directive to prefer a sibling when the agent wants a portfolio-wide view.

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