Skip to main content
Glama

Agent Data Tools: Prices and DeFi

Is the stock market open right now: NYSE, Nasdaq, LSE

market_is_open
Read-only

Is the stock market open right now? For the NYSE and Nasdaq (default) or the London Stock Exchange: open or closed, the session (regular, pre-market, after-hours) and why (weekend, holiday by name, early close), today's open and close, the next open and close in UTC and minutes until the next change. Computed from published hours, holidays and early closes; at asks about another moment. Use before trading, scheduling orders or alerts. Example: exchange=NYSE. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "market_is_open"
  }
}

Input Schema

NameRequiredDescriptionDefault
atNoMoment to ask about, ISO 8601 (default: now)
exchangeNoNYSE (default), NASDAQ or LSE; also accepts US, UK, London

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description reinforces this with "Reads or computes only and changes nothing." It adds genuinely new behavioral context the annotations cannot convey: per-call pricing ($0.01 via x402 USDC or card key, first 10 free, failed calls free) and that repeats are billed, which explains the non-idempotent cost profile. Return format is also pre-described since no output schema exists.

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?

The core question is front-loaded in the first clause, and each subsequent sentence adds the return shape, computation basis, and pricing. The final pricing sentence is a dense run-on that slightly dilutes readability, but there is little wasted verbiage.

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

Completeness5/5

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

For a two-optional-param, no-output-schema tool, the description fully specifies what is returned (state, session, reason, boundaries, next change) and the computation basis, so an agent needs nothing more before calling. Pricing and safety profile round out completeness.

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?

With 100% schema description coverage, the schema already documents both parameters, and the description largely restates them (NYSE default, LSE/NASDAQ, `at` for another moment). It adds little syntax or format detail beyond the schema, so the baseline 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?

The description states a precise question the tool answers, the covered exchanges (NYSE/Nasdaq default, LSE), the returned facets (session, reason, open/close times, next change countdown), and how it differs from a general holiday lookup. An agent can identify exactly what it gets without inspecting 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?

It gives explicit usage context: "Use before trading, scheduling orders or alerts," and explains that `at` asks about another moment. It does not name an alternative sibling (e.g. `holidays`) or state when not to use this tool, which keeps it below a 5.

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.