Skip to main content
Glama

query

Execute read-only SQL SELECT queries on quantitative finance data including stocks, financials, real-time quotes, and historical K-lines. Supports cross-table JOINs with single-statement validation, returning up to 10,000 rows.

Instructions

对量化数据库执行只读 SQL 查询。

支持表:dim_stock、fact_daily、finance_income/balance/cashflow、 realtime_quote、stock_basic、daily_kline(ODS 表用 ods. 前缀)。 仅允许单条 SELECT/WITH;写语句与多语句会被拒绝;最多返回 10000 行。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sqlYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

No annotations are provided, but the description fully compensates by disclosing read-only behavior, statement restrictions, and the row limit. It also clarifies supported tables and the ODS prefix, which are important operational context. This exceeds typical descriptions.

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?

Three terse sentences carry all key information: read-only, supported tables, and constraints. No filler or redundancy.

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 single-parameter SQL tool with an output schema, the description covers the essential operational aspects: target database, allowed query forms, table names, and result limits. There are no obvious gaps that would prevent correct invocation.

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

Parameters5/5

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

The schema only defines sql as a string with no description (0% coverage). The description adds crucial semantics: it defines the acceptable SQL dialect (single SELECT/WITH), enumerates permissible tables, and states the 10,000-row cap. This substantially compensates for the sparse schema.

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 uses a specific verb ('执行只读 SQL 查询' – execute read-only SQL queries) and identifies the resource ('量化数据库' – quantitative database), clearly distinguishing it as a query tool. It goes beyond a tautology by specifying supported tables and constraints.

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?

It provides explicit usage boundaries: only single SELECT/WITH statements are allowed, write and multi-statement queries are rejected, and result size is limited to 10,000 rows. It also enumerates supported tables, giving the agent clear criteria for when this tool applies. No sibling tools exist, so alternative tool guidance is not applicable.

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/openbot-coder/quantdb-mcp'

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