Skip to main content
Glama
chestnutsheep

DeepFusion MCP Server

公共行情SQL刷新

market_data_refresh

Refresh missing daily K-line data for Chinese stocks and indexes into market_data.db. Supports full-market, specific codes, indexes, or name/info updates via mode parameter.

Instructions

联网补齐个股/指数日 K 到公共 SQL market_data.db(唯一联网入口)。mode=full 刷指数+代码名称(轻量);mode=stock 补指定代码;mode=index 仅指数;mode=info 仅代码名称;mode=prime 全市场当日补齐(重活,仅收盘后低峰)。所有上层任务禁止直连 gtimg/Sina/akshare 现拉 K 线,需数据先查库,缺失再调本工具。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dbNomarket_data.db 路径/app/data/market_data.db
daysNo历史深度(交易日近似)
modeNofull/index/stock/info/primefull
codesNostock 模式的代码列表,逗号分隔

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden, and it does well: it discloses that this is a networked operation, that it writes/refreshes data into a shared SQL database, and that certain modes are heavy workloads. However, it does not mention failure behavior, rate limits, or whether repeated calls are safe/idempotent, which would make it fully transparent.

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 compact and well-structured: one sentence for core purpose, one sentence enumerating modes, and one sentence for usage policy. Every sentence earns its place and key information is front-loaded.

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?

Given the output schema exists and all four parameters are documented in the schema, the description covers the necessary operational context: network access policy, mode semantics, and workload constraints. An agent has enough information to decide when and how to invoke this tool correctly.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3. The description adds meaningful value beyond the schema by explaining what each mode actually does (e.g., full is lightweight index+name refresh, prime is a heavy full-market refresh) and by framing the codes parameter in context. It stops short of describing edge cases or detailed interactions between parameters, so it does not reach 5.

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 action ('联网补齐'/online refresh) and a precise resource (daily K-line data for stocks/indices into the shared market_data.db). It also clearly differentiates this tool from siblings by declaring itself the '唯一联网入口' (the only online entry point), making its role unmistakable.

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

Usage Guidelines5/5

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

The description gives explicit usage rules: all upper-level tasks must first query the database and only call this tool when data is missing; direct connections to gtimg/Sina/akshare are prohibited. It also enumerates each mode and when each should be used, including the heavy 'prime' mode being restricted to after-market low-peak periods.

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

Deploy Server

Other Tools