Skip to main content
Glama
24mlight

A Share MCP

by 24mlight

get_deposit_rate_data

Retrieve benchmark deposit rate data for A-share market analysis. Specify date ranges to access historical rates for financial research and comparison.

Instructions

Benchmark deposit rates.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
start_dateNo
end_dateNo
limitNo
formatNomarkdown

Implementation Reference

  • The primary tool handler for 'get_deposit_rate_data'. It is decorated with @app.tool() which defines the tool schema from its signature and docstring. The handler delegates to the use case function with standardized error handling via run_tool_with_handling.
    @app.tool()
    def get_deposit_rate_data(start_date: Optional[str] = None, end_date: Optional[str] = None, limit: int = 250, format: str = "markdown") -> str:
        """Benchmark deposit rates."""
        return run_tool_with_handling(
            lambda: fetch_deposit_rate_data(active_data_source, start_date=start_date, end_date=end_date, limit=limit, format=format),
            context="get_deposit_rate_data",
        )
  • mcp_server.py:55-55 (registration)
    Registration of the macroeconomic tools module, which includes the 'get_deposit_rate_data' tool, called during app initialization.
    register_macroeconomic_tools(app, active_data_source)
  • Abstract method in FinancialDataSource interface defining the expected signature for fetching deposit rate data, serving as a contract/schema for implementations.
    @abstractmethod
    def get_deposit_rate_data(self, start_date: Optional[str] = None, end_date: Optional[str] = None) -> pd.DataFrame:
        """Fetches benchmark deposit rates."""
  • Helper use case function that orchestrates validation, data fetching from data source, and output formatting for the deposit rate tool.
    def fetch_deposit_rate_data(data_source: FinancialDataSource, *, start_date: Optional[str], end_date: Optional[str], limit: int, format: str) -> str:
        validate_output_format(format)
        df = data_source.get_deposit_rate_data(start_date=start_date, end_date=end_date)
        meta = {"dataset": "deposit_rate", "start_date": start_date, "end_date": end_date}
        return format_table_output(df, format=format, max_rows=limit, meta=meta)
  • Implementation of the data source method using Baostock's query_deposit_rate_data API, wrapped by a generic macro data fetcher.
    def get_deposit_rate_data(self, start_date: Optional[str] = None, end_date: Optional[str] = None) -> pd.DataFrame:
        """Fetches benchmark deposit rates using Baostock."""
        return _fetch_macro_data(bs.query_deposit_rate_data, "Deposit Rate", start_date, end_date)
Behavior1/5

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

No annotations are provided, so the description carries full burden for behavioral disclosure. 'Benchmark deposit rates' gives no indication of whether this is a read-only query, a calculation, or a write operation. It doesn't mention authentication needs, rate limits, data freshness, or what format/scope the results will have. The description fails to provide any behavioral context beyond the minimal name.

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 extremely concise at just three words. While this represents severe under-specification rather than optimal conciseness, it contains no redundant information and is front-loaded with the core concept. Every word earns its place, even though more words are needed for completeness.

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

Completeness1/5

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

For a tool with 4 parameters, no annotations, no output schema, and 0% schema description coverage, the description is completely inadequate. It doesn't explain what the tool does, how to use it, what the parameters mean, or what to expect in return. The minimal description fails to compensate for the lack of structured documentation.

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

Parameters1/5

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

With 4 parameters and 0% schema description coverage, the schema provides only titles and types without explaining what the parameters mean. The description adds zero information about parameters - it doesn't mention date ranges, limits, output formats, or any of the actual inputs. This leaves all parameter semantics undocumented.

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

Purpose2/5

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

The description 'Benchmark deposit rates' is a tautology that essentially restates the tool name 'get_deposit_rate_data'. It doesn't specify what action is performed (e.g., retrieve, calculate, compare) or what resource is accessed. While it hints at financial data, it lacks the specificity needed to distinguish it from sibling tools like 'get_loan_rate_data' or 'get_required_reserve_ratio_data'.

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

Usage Guidelines1/5

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

The description provides no guidance on when to use this tool versus alternatives. There are no contextual cues about appropriate scenarios, prerequisites, or comparisons to sibling tools like 'get_loan_rate_data' or other financial data tools. Users must infer usage entirely from the name and parameters.

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/24mlight/a-share-mcp-is-just-i-need'

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