Skip to main content
Glama

Batch stock lookup: a portfolio or watchlist by market regime, one payment

lookup_batch
Read-onlyIdempotent

How have the stocks and coins in this portfolio typically done in markets like today's? Returns a batch stock lookup: for up to 100 stock or crypto symbols in one request and one payment, each one's typical return and how often it rose over 1 to 12 months from the current regime. Symbols without a regimecard.com page are listed, not charged. $0.01 per covered symbol in USDC on Base, Polygon or Solana (x402). Settled figures, updated after each US close (coins daily). The exact total for a request is stated before any payment. Useful when an agent needs a portfolio check, a watchlist scan or stock data in bulk by market regime.

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": {
      "symbols": "<symbols>"
    },
    "name": "lookup_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
symbolsYesUp to 100 stock or crypto symbols, any case.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "oneOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "asOf": {
      +          "description": "The trading session this response describes (YYYY-MM-DD, US Eastern).",
      +          "format": "date",
      +          "type": "string"
      +        },
      +        "charged": {
      +          "additionalProperties": false,
      +          "description": "What this call cost. Only the symbols in results are charged.",
      +          "properties": {
      +            "perSymbolUsd": {
      +              "description": "The price per served symbol, in US dollars.",
      +              "type": "string"
      +            },
      +            "symbols": {
      +              "description": "How many symbols were served and charged: the length of results.",
      +              "maximum": 100,
      +              "minimum": 1,
      +              "type": "integer"
      +            },
      +            "totalUsd": {
      +              "description": "What this call cost, in US dollars: the amount the 402 stated for it.",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "symbols",
      +            "perSymbolUsd",
      +            "totalUsd"
      +          ],
      +          "type": "object"
      +        },
      +        "disclaimer": {
      +          "const": "For informational purposes only. Not investment advice.",
      +          "description": "Always the same sentence.",
      +          "type": "string"
      +        },
      +        "lookupOnly": {
      +          "description": "Stocks outside the ones with a page on regimecard.com. The batch does not compute them; the single-symbol lookup serves each one, one symbol per call. Not charged.",
      +          "items": {
      +            "description": "A symbol, upper case, a dotted share class with its dash (BRK.B is BRK-B). An entry that is not a symbol is shown with \"?\" for each character a symbol cannot carry, cut to 20 characters.",
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "notCovered": {
      +          "description": "What Regime Card cannot serve at all: a stock whose price series stopped, or an entry that is not a symbol. Not charged.",
      +          "items": {
      +            "description": "A symbol, upper case, a dotted share class with its dash (BRK.B is BRK-B). An entry that is not a symbol is shown with \"?\" for each character a symbol cannot carry, cut to 20 characters.",
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "record": {
      +          "additionalProperties": false,
      +          "description": "The public, hash-linked record of the daily settled regime reading: its percentile and its regime label. It covers nothing else in this response: not the stress gate, stock or coin figures, the scorecard, or a live intraday reading. The same on every response.",
      +          "properties": {
      +            "covers": {
      +              "const": "the daily settled regime reading",
      +              "description": "The reading it covers: the percentile and the regime label of each daily settled reading, and nothing else in this response.",
      +              "type": "string"
      +            },
      +            "ledger": {
      +              "const": "https://regimecard.com/api/ledger",
      +              "description": "Every entry as JSON, each with the hash of the entry before it.",
      +              "format": "uri",
      +              "type": "string"
      +            },
      +            "note": {
      +              "const": "Each settled regime reading is added to a public, hash-linked record the day it is published; a correction is a new entry, never an edit.",
      +              "description": "The same facts in one plain sentence.",
      +              "type": "string"
      +            },
      +            "verify": {
      +              "const": "https://regimecard.com/verify",
      +              "description": "The page that explains the hash chain and checks every entry in the browser.",
      +              "format": "uri",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "verify",
      +            "ledger",
      +            "covers",
      +            "note"
      +          ],
      +          "type": "object"
      +        },
      +        "regime": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "key": {
      +              "description": "The regime, as a stable key.",
      +              "enum": [
      +                "risk_off",
      +                "mildly_off",
      +                "neutral",
      +                "mildly_on",
      +                "risk_on"
      +              ],
      +              "type": "string"
      +            },
      +            "label": {
      +              "description": "The regime, as the card prints it.",
      +              "enum": [
      +                "RISK-OFF",
      +                "MILDLY OFF",
      +                "NEUTRAL",
      +                "MILDLY ON",
      +                "RISK-ON"
      +              ],
      +              "type": "string"
      +            },
      +            "name": {
      +              "description": "The regime, in sentence case.",
      +              "enum": [
      +                "Risk-Off",
      +                "Mildly Off",
      +                "Neutral",
      +                "Mildly On",
      +                "Risk-On"
      +              ],
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "key",
      +            "label",
      +            "name"
      +          ],
      +          "type": "object"
      +        },
      +        "related": {
      +          "description": "The other paid routes: for each, its path, the question it answers and its price per call. Each is a separate call.",
      +          "items": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "path": {
      +                "description": "The route's path on this origin.",
      +                "type": "string"
      +              },
      +              "per": {
      +                "description": "What the price is for: one call, or each covered symbol of one call.",
      +                "enum": [
      +                  "call",
      +                  "covered symbol"
      +                ],
      +                "type": "string"
      +              },
      +              "priceUsd": {
      +                "description": "The price in US dollars, paid in USDC.",
      +                "type": "string"
      +              },
      +              "question": {
      +                "description": "The question the route answers.",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "path",
      +              "question",
      +              "priceUsd",
      +              "per"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "research": {
      +          "additionalProperties": false,
      +          "description": "A published Regime Card study of the current regime. Present only when one exists for it.",
      +          "properties": {
      +            "title": {
      +              "description": "The study's title.",
      +              "type": "string"
      +            },
      +            "url": {
      +              "description": "The study on regimecard.com.",
      +              "format": "uri",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "title",
      +            "url"
      +          ],
      +          "type": "object"
      +        },
      +        "results": {
      +          "description": "One entry per symbol served, in the order asked, with the fields a single lookup returns for it.",
      +          "items": {
      +            "additionalProperties": false,
      +            "description": "One entry: the symbol asked for.",
      +            "properties": {
      +              "asOf": {
      +                "description": "The session of the symbol's newest price in the figures (YYYY-MM-DD).",
      +                "format": "date",
      +                "type": "string"
      +              },
      +              "covered": {
      +                "description": "False when Regime Card cannot serve this symbol: it has no price history, or its price series stopped. Never an error.",
      +                "type": "boolean"
      +              },
      +              "horizons": {
      +                "description": "One row per holding period, for the current regime.",
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "history": {
      +                      "description": "How much history is behind the row: full, limited, or none (too little to print a figure).",
      +                      "enum": [
      +                        "full",
      +                        "limited",
      +                        "none"
      +                      ],
      +                      "type": "string"
      +                    },
      +                    "horizon": {
      +                      "description": "The holding period.",
      +                      "enum": [
      +                        "1m",
      +                        "2m",
      +                        "3m",
      +                        "6m",
      +                        "12m"
      +                      ],
      +                      "type": "string"
      +                    },
      +                    "roseSharePct": {
      +                      "description": "How often the symbol rose over the period when it started in the current regime, in percent of past periods.",
      +                      "type": [
      +                        "number",
      +                        "null"
      +                      ]
      +                    },
      +                    "typicalReturnPct": {
      +                      "description": "The typical (median) return over the period when it started in the current regime, in percent.",
      +                      "type": [
      +                        "number",
      +                        "null"
      +                      ]
      +                    }
      +                  },
      +                  "required": [
      +                    "horizon",
      +                    "typicalReturnPct",
      +                    "roseSharePct",
      +                    "history"
      +                  ],
      +                  "type": "object"
      +                },
      +                "type": "array"
      +              },
      +              "name": {
      +                "description": "The stock's or coin's name.",
      +                "type": "string"
      +              },
      +              "page": {
      +                "const": false,
      +                "description": "Present, and false, on a US stock served on demand: it is outside the stocks that have a page on regimecard.com, so it carries no url and no peers.",
      +                "type": "boolean"
      +              },
      +              "peers": {
      +                "description": "For a stock: up to 5 peer symbols from the symbol's page. Symbols only, no figures.",
      +                "items": {
      +                  "description": "A peer's symbol.",
      +                  "type": "string"
      +                },
      +                "maxItems": 5,
      +                "minItems": 1,
      +                "type": "array"
      +              },
      +              "peersNote": {
      +                "description": "Present with peers: what a peer's figures cost.",
      +                "type": "string"
      +              },
      +              "sensitivity": {
      +                "description": "For a stock: how much its typical 3-month return moves from one regime to another, as a multiple of the S&P 500's. The figure on the symbol's page. Absent when the page prints none.",
      +                "exclusiveMinimum": 0,
      +                "type": "number"
      +              },
      +              "symbol": {
      +                "description": "The symbol as asked, upper case, a dotted share class with its dash (BRK.B is BRK-B).",
      +                "type": "string"
      +              },
      +              "type": {
      +                "description": "What it is.",
      +                "enum": [
      +                  "stock",
      +                  "etf",
      +                  "crypto"
      +                ],
      +                "type": "string"
      +              },
      +              "url": {
      +                "description": "The symbol's page on regimecard.com, with the same figures. Absent for a stock served on demand.",
      +                "format": "uri",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "symbol",
      +              "covered"
      +            ],
      +            "type": "object"
      +          },
      +          "maxItems": 100,
      +          "minItems": 1,
      +          "type": "array"
      +        },
      +        "source": {
      +          "const": "https://regimecard.com",
      +          "description": "Where the reading is published.",
      +          "type": "string"
      +        },
      +        "status": {
      +          "description": "\"live\": computed during the session and still provisional. \"settled\": final for its session.",
      +          "enum": [
      +            "live",
      +            "settled"
      +          ],
      +          "type": "string"
      +        },
      +        "unavailable": {
      +          "description": "Covered symbols whose figures could not be built right now. Not charged.",
      +          "items": {
      +            "description": "A symbol, upper case, a dotted share class with its dash (BRK.B is BRK-B). An entry that is not a symbol is shown with \"?\" for each character a symbol cannot carry, cut to 20 characters.",
      +            "type": "string"
      +          },
      +          "type": "array"
      +        }
      +      },
      +      "required": [
      +        "asOf",
      +        "status",
      +        "regime",
      +        "results",
      +        "notCovered",
      +        "unavailable",
      +        "lookupOnly",
      +        "charged",
      +        "related",
      +        "record",
      +        "disclaimer",
      +        "source"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "additionalProperties": false,
      +      "description": "The answer for a request in which no symbol can be served, unless every one of them is only unavailable right now (a 503). It is free: no payment is asked for it, and a payment that was attached is never verified or settled. It carries no regime and no charge: each symbol is in the list that says why it was not served.",
      +      "properties": {
      +        "asOf": {
      +          "description": "The trading session this response describes (YYYY-MM-DD, US Eastern).",
      +          "format": "date",
      +          "type": "string"
      +        },
      +        "disclaimer": {
      +          "const": "For informational purposes only. Not investment advice.",
      +          "description": "Always the same sentence.",
      +          "type": "string"
      +        },
      +        "lookupOnly": {
      +          "description": "Stocks outside the ones with a page on regimecard.com. The batch does not compute them; the single-symbol lookup serves each one, one symbol per call. Not charged.",
      +          "items": {
      +            "description": "A symbol, upper case, a dotted share class with its dash (BRK.B is BRK-B). An entry that is not a symbol is shown with \"?\" for each character a symbol cannot carry, cut to 20 characters.",
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "notCovered": {
      +          "description": "What Regime Card cannot serve at all: a stock whose price series stopped, or an entry that is not a symbol. Not charged.",
      +          "items": {
      +            "description": "A symbol, upper case, a dotted share class with its dash (BRK.B is BRK-B). An entry that is not a symbol is shown with \"?\" for each character a symbol cannot carry, cut to 20 characters.",
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "results": {
      +          "description": "Empty: no symbol in the request could be served.",
      +          "maxItems": 0,
      +          "type": "array"
      +        },
      +        "source": {
      +          "const": "https://regimecard.com",
      +          "description": "Where the reading is published.",
      +          "type": "string"
      +        },
      +        "status": {
      +          "description": "\"live\": computed during the session and still provisional. \"settled\": final for its session.",
      +          "enum": [
      +            "live",
      +            "settled"
      +          ],
      +          "type": "string"
      +        },
      +        "unavailable": {
      +          "description": "Covered symbols whose figures could not be built right now. Not charged.",
      +          "items": {
      +            "description": "A symbol, upper case, a dotted share class with its dash (BRK.B is BRK-B). An entry that is not a symbol is shown with \"?\" for each character a symbol cannot carry, cut to 20 characters.",
      +            "type": "string"
      +          },
      +          "type": "array"
      +        }
      +      },
      +      "required": [
      +        "asOf",
      +        "status",
      +        "results",
      +        "notCovered",
      +        "unavailable",
      +        "lookupOnly",
      +        "disclaimer",
      +        "source"
      +      ],
      +      "type": "object"
      +    }
      +  ],
      +  "type": "object"
      +}
  2. Changed3 schema fields changed
    • changedInput schema / description
      Previous value: -"A JSON object with one field: symbols."New value: +"The symbols."
    • changedInput schema / properties / symbols / description
      Previous value: -"Stock or crypto symbols, any case. At most 100 per request."New value: +"Up to 100 stock or crypto symbols, any case."
    • changedInput schema / properties / symbols / items / maxLength
      Previous value: -10New value: +40
  3. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent and non-destructive behavior, and the description adds substantial extra context: $0.01 per covered symbol in USDC on Base/Polygon/Solana via x402, uncovered symbols listed but not charged, and the exact total stated before payment. It also discloses data freshness (settled figures updated after each US close, coins daily), which matters for interpreting results.

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-loads the core outcome and then packs pricing, freshness and use cases densely with little waste. The opening rhetorical question and the slightly redundant 'Returns a batch stock lookup' restatement of the title cost a bit of tightness.

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?

An output schema exists, so return-value detail is rightly omitted, and the description covers cost, freshness, exclusions and scope. It leaves the notion of 'market regime' and its currency/coverage limits unstated, which an agent would need in order to predict which symbols get charged.

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% for the single symbols parameter, so the baseline is 3. The description still adds real meaning — the 100-symbol ceiling, mixed stock/crypto acceptance, and the fact that billing is per covered symbol — which goes beyond the schema's 'Up to 100 stock or crypto symbols, any case.'

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?

States a specific verb and resource — returns typical return and hit-rate figures for up to 100 stock or crypto symbols from the current market regime. The 'batch ... in bulk' framing implicitly separates it from single-symbol siblings like lookup_symbols, so an agent can tell what it does without opening the 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?

The closing sentence gives clear use contexts: portfolio check, watchlist scan, or bulk stock data by market regime. It stops short of naming an alternative (e.g. a single-symbol lookup) or stating when not to use it, so routing is contextual rather than explicit.

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