Skip to main content
Glama
PaulieB14

Limitless MCP

get_market_daily_snapshots

Retrieve daily trading data including volume, trades, and fees for a specific market over a defined period to analyze market performance trends.

Instructions

Get daily volume, trades, and fees for a specific market over time.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
conditionIdYesMarket conditionId
daysNo

Implementation Reference

  • Tool registration for get_market_daily_snapshots
    server.registerTool(
      "get_market_daily_snapshots",
      {
        description:
          "Get daily volume, trades, and fees for a specific market over time.",
        inputSchema: {
          conditionId: z.string().describe("Market conditionId"),
          days: z.number().default(30),
        },
      },
  • The handler logic for get_market_daily_snapshots, which queries market daily snapshots from both simple and negrisk sources.
    async ({ conditionId, days }) => {
      try {
        const snapshotQuery = `{
          marketDailySnapshots(
            where: { market: "${conditionId}" }
            first: ${days}
            orderBy: dayId
            orderDirection: desc
          ) {
            dayId date tradesCount volumeUSD buyVolumeUSD sellVolumeUSD feesUSD
          }
        }`;
    
        const [simpleData, negriskData, name] = await Promise.all([
          querySimple(snapshotQuery).catch(() => ({ marketDailySnapshots: [] })),
          queryNegRisk(snapshotQuery).catch(() => ({ marketDailySnapshots: [] })),
          getMarketName(conditionId),
        ]);
    
        const snapshots =
          simpleData.marketDailySnapshots?.length > 0
            ? simpleData.marketDailySnapshots
            : negriskData.marketDailySnapshots || [];
    
        return textResult({ market: name, conditionId, snapshots });
      } catch (e) {
        return errorResult(e);
      }
Behavior3/5

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

No annotations provided, so description carries full disclosure burden. Mentions daily granularity and metric types (volume, trades, fees) which helps understand output shape. However, lacks critical operational details: pagination behavior, maximum days limit, error cases (invalid conditionId), or data freshness.

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?

Single 10-word sentence with action-oriented front-loading. Zero redundancy. Appropriate density for a focused data retrieval tool.

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

Completeness3/5

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

Adequate for a 2-parameter tool but leaves gaps given zero annotations and no output schema. Mentions what metrics are returned, which partially compensates for missing output schema, but omits temporal limits and response structure details expected for time-series data tools.

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 50% (conditionId described, days not). Description adds semantic context: 'daily' and 'over time' imply the days parameter controls time range, while 'specific market' clarifies conditionId. However, doesn't explicitly document that days specifies the lookback window or its default value.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Specific verb 'Get' with clear resource (daily snapshots) and metrics (volume, trades, fees). Differentiates from siblings like get_daily_protocol_stats by specifying 'for a specific market' rather than global data.

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

Usage Guidelines2/5

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

No explicit when-to-use guidance or alternatives mentioned. While 'specific market' implies usage context, it doesn't contrast with get_market_analytics or state prerequisites like needing a valid conditionId first.

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/PaulieB14/limitless-subgraphs'

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