Skip to main content
Glama

contivo-trader

跑只读 SQL 取数

query_sql

Contivo 交易员:受限只读 SQL:只允许 SELECT / WITH,拦截写语句与 DDL,行数自动截断。用于目录外的临时取数。

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": {
      "sql": "<sql>"
    },
    "name": "query_sql"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqlYesSELECT/WITH 查询
limitNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does so well: it discloses the read-only enforcement, the SELECT/WITH-only restriction, that write and DDL statements are blocked, and that rows are auto-truncated. It does not say what permissions or credentials are required, whether the query runs against a timeout, or what an error response looks like.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Extremely economical – three short clauses, with the access restriction front-loaded before the use case. The stacked-colon style is slightly telegraphic, but no sentence is wasted.

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

Completeness3/5

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

For a two-parameter query tool with no annotations and no output schema, the description covers the safety model well but leaves the return shape (column/row format, how truncation is signalled to the caller) and the `limit`/truncation interaction unaddressed. Adequate to call correctly, incomplete for interpreting results.

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 coverage is 50%: `sql` is self-documented and `limit` has only a default of 100 with no description anywhere. The description reinforces that `sql` must be SELECT/WITH, but '行数自动截断' does not clarify whether the automatic truncation is governed by, or overrides, the `limit` parameter – the one genuinely ambiguous piece of the schema is left unresolved.

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 names a concrete capability (restricted read-only SQL limited to SELECT/WITH) and scopes it to ad-hoc retrieval outside the catalog, which implicitly separates it from the catalog-driven siblings such as get_prices or list_datasets. It stops short of naming an explicit alternative, but the verb-plus-resource-plus-scope combination is unambiguous.

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

Usage Guidelines4/5

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

'用于目录外的临时取数' gives a clear selection condition: use this when the data is not in the catalog and the need is ad-hoc. What is missing is the reverse rule – an explicit statement that catalog-backed questions should go to the structured siblings instead – so the exclusion is only implied.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.