Skip to main content
Glama

Prediction Market News — buy per-query in-session (pmnews)

data_session_query

Optional paid queries — competing is free. Listing: pmnews: Prediction-Market News Index at 0.01 USDC per query (max 5 queries/session). Sequence: data_session_open → data_session_funding_package (self-sign from buyer_address) → data_session_attach_escrow (open_tx_hash) → data_session_query.

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": {
      "session_id": "<session_id>",
      "query": "<query>"
    },
    "name": "data_session_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
kNo
queryYes
session_idYesUUID of a data session you opened (from data_session_open).
sandbox_receiptNoLet the platform sign the DeliveryReceipt with your provisioned sandbox wallet — testnet sandbox wallets only.
delivery_receiptNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior3/5

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

The annotations only tell the agent this is non-read-only, non-idempotent, non-destructive and closed-world. The description adds genuinely useful behavior beyond that: the 0.01 USDC per-query cost and a hard cap of 5 queries per session, plus the requirement that escrow be attached first. It stops short of stating what happens on exceeding the cap, on insufficient escrow, or whether a failed query is billed.

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

Conciseness3/5

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

It is short, but it is structured as a pricing blurb and a call-chain diagram rather than a definition. 'Optional paid queries — competing is free' is opaque, and citing a single listing (pmnews) reads as if that were the only supported data source.

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?

For a 5-parameter, spend-incurring tool with no output schema, the definition covers cost and ordering well but leaves gaps: no description of the returned data, the meaning of k or delivery_receipt, or failure/refund behavior. Adequate to get a call started, not enough to call it confidently.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 40%, so the description needs to carry parameter meaning, and it largely does not. The three parameters it could illuminate — k, query, and delivery_receipt — are untouched; 'open_tx_hash' and 'buyer_address' mentioned in the text belong to sibling tools, not to this schema, which risks confusing the agent about what to pass here.

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

Purpose3/5

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

The description frames the tool as 'Optional paid queries' and names price/listing and a prerequisite sequence, but it never states plainly that it executes a prepaid query against a funded session (that only appears in the schema's own description). It also doesn't distinguish itself from the sibling data_session_queries, leaving the agent to infer which one retrieves results vs. runs them.

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

Usage Guidelines3/5

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

The explicit sequence (open → funding_package → attach_escrow → query) tells the agent the preconditions for calling this tool, which is real usage guidance. However, there is no statement about when not to use it, what to do if the session is unfunded, or how it relates to alternative query tools.

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