Skip to main content
Glama

next_trading_day

Returns the next A-share trading day after a specified date, helping you schedule trades and avoid non-trading dates.

Instructions

Get the next trading day after the given date.

Input Schema

NameRequiredDescriptionDefault
dateYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.8/5.0
Behavior2/5

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

With no annotations provided, the description carries full burden but only states the basic action without behavioral details. It doesn't disclose what 'trading day' means (e.g., market holidays, weekends), error handling for invalid dates, timezone considerations, or output format. This leaves significant gaps for a tool that likely involves calendar logic and financial market rules.

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?

The description is a single, efficient sentence that front-loads the core purpose without fluff. Every word earns its place, making it easy to parse quickly. No structural issues or redundancy are present.

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

Completeness2/5

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

Given no annotations, no output schema, and low parameter coverage, the description is incomplete. It doesn't explain return values (e.g., date string, object), error cases, or dependencies on market data. For a tool that likely involves non-trivial date logic, this lacks necessary context for reliable agent use.

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?

The schema has 0% description coverage, with one required parameter 'date' undocumented in schema. The description adds minimal semantics by implying 'date' is an input for calculation but doesn't specify format (e.g., YYYY-MM-DD), constraints (e.g., past/future dates), or examples. It fails to compensate for the low schema coverage, leaving parameter meaning vague.

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?

The description clearly states the verb 'Get' and the resource 'next trading day', specifying it operates 'after the given date'. It distinguishes from siblings like 'get_last_n_trading_days' or 'previous_trading_day' by focusing on a single forward date. However, it doesn't explicitly differentiate from 'get_trade_dates' or 'is_trading_day', which could provide similar date-related information.

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 guidance is provided on when to use this tool versus alternatives. It doesn't mention siblings like 'previous_trading_day' for backward lookups, 'get_trade_dates' for ranges, or 'is_trading_day' for validation. The description implies usage for date advancement but offers no context on prerequisites, exclusions, or comparative scenarios.

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