Skip to main content
Glama
danielbres

massive-mcp

by danielbres

get_all_snapshots

Retrieve real-time snapshots for US stocks, with optional ticker filtering to limit data size.

Instructions

Real-time snapshot for multiple/all US stocks. Use tickers to filter — calling with no filter returns the entire market and may be very large.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tickersNoOptional list of symbols. If None, returns all.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler function for the get_all_snapshots tool. Calls the Massive API at /v2/snapshot/locale/us/markets/stocks/tickers with an optional comma-separated tickers filter.
    @mcp.tool()
    async def get_all_snapshots(tickers: list[str] | None = None) -> dict[str, Any]:
        """Real-time snapshot for multiple/all US stocks. Use `tickers` to filter — calling with no
        filter returns the entire market and may be very large.
    
        Args:
            tickers: Optional list of symbols. If None, returns all.
        """
        params = {"tickers": ",".join(tickers)} if tickers else None
        return await client.get("/v2/snapshot/locale/us/markets/stocks/tickers", params)
  • The tool is registered via the @mcp.tool() decorator in the register() function, which is called from server.py.
    @mcp.tool()
    async def get_all_snapshots(tickers: list[str] | None = None) -> dict[str, Any]:
  • Input schema: accepts an optional list of ticker strings. If None, returns snapshots for all stocks.
    async def get_all_snapshots(tickers: list[str] | None = None) -> dict[str, Any]:
  • Helper logic: serializes tickers list to comma-separated string for the API query parameter, or passes None for no filter.
    params = {"tickers": ",".join(tickers)} if tickers else None
    return await client.get("/v2/snapshot/locale/us/markets/stocks/tickers", params)
Behavior2/5

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

No annotations are provided, so the description carries full burden. It mentions 'Real-time' and gives a size warning, but lacks disclosure on rate limits, data freshness, what a 'snapshot' includes, or any potential side effects. For a tool with no annotations, this is insufficient.

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

Conciseness5/5

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

Two sentences provide clear purpose and usage note. No extra words, front-loaded, and every sentence adds value. Ideal conciseness.

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?

Given the presence of an output schema, return values need not be described. The description covers purpose and key usage warning. It could briefly mention that it's real-time, but that is implied. A small gap is lack of explicit differentiation from siblings beyond the scope phrasing.

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%, and the description adds context about filtering and the large result when no filter is applied. This reinforces the schema's description but does not add new semantic depth beyond usage guidance. Baseline 3 is appropriate.

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 uses a specific verb 'get' and resource 'snapshot' with clear scope 'multiple/all US stocks'. It distinguishes from the sibling 'get_snapshot' which is singular, and from other data retrieval tools like 'get_quotes' and 'get_trades'.

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 description clearly explains that the 'tickers' parameter is for filtering and warns that calling with no filter returns the entire market which can be large. This provides explicit usage context, though it does not name alternative tools or state when not to use this tool.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/danielbres/Massive-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server