Skip to main content
Glama
deriv-market-mcp

deriv-market-mcp

by thegreatola

Get trading hours

get_trading_hours
Read-onlyIdempotent

Retrieves a symbol's current trading hours in UTC, active trading days, and upcoming holidays or early closes, so you can check when a Deriv market is open before placing or planning trades.

Instructions

Today's opening and closing times (UTC), trading days and upcoming holidays or early closes for one symbol.

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": {
      "symbol": "<symbol>"
    },
    "name": "get_trading_hours"
  }
}

Input Schema

NameRequiredDescriptionDefault
symbolYesA Deriv symbol code ("frxEURUSD", "R_75", "cryBTCUSD") or its name ("EUR/USD", "Volatility 75 Index"). Use list_markets to find codes.

Output Schema

NameRequiredDescriptionDefault
nameYes
opensYes
closesYes
eventsYes
symbolYes
tradingDaysYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so safety is covered. The description adds useful behavioral scope beyond that: the data is scoped to today only, expressed in UTC, and includes forward-looking holiday and early-close information rather than just static session hours.

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?

One tightly written sentence that front-loads the returned values and ends with the scope constraint. There is no filler, hedging, or redundant restatement of the title.

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?

With a rich annotation set, a fully documented single parameter, and an output schema, the description covers what an agent needs to decide to call it. Minor gaps remain around refresh cadence or staleness of 'today's' data, but nothing essential is missing.

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 description coverage is 100% and the single parameter already documents accepted code and name formats plus a pointer to list_markets. The description adds only the cardinality constraint 'for one symbol', which is consistent but marginal beyond the schema, so the baseline of 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 specific resource (trading hours for one symbol) and enumerates exactly what is returned: today's opening and closing times in UTC, trading days, and upcoming holidays or early closes. This clearly separates it from price/candle siblings like get_price and get_candles, which return market data rather than schedule metadata.

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?

Usage is implied by the content ('today's' times, holidays) rather than stated as explicit when-to-use guidance, and no alternatives or exclusions are named. The only routing hint is inside the schema ('Use list_markets to find codes'), not in the description itself.

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