Skip to main content
Glama
nichuan

sql-template-mcp

by nichuan

record_template_usage

Record that a SQL template was used by incrementing its usage count and refreshing the last-used time, enabling evaluation of template value and optimizing retrieval ranking.

Instructions

记录某模板被实际使用一次(使用次数 +1,刷新最近使用时间)。

在技能复用模板生成最终 SQL 后调用,用于评估模板价值、优化检索排序。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
template_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries the burden of disclosing side effects. It clearly states that calling this tool increments the usage count and refreshes the last-used timestamp, which is essential behavioral information for a mutating tool.

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 two short sentences. The first sentence front-loads the core behavior and side effect; the second provides the invocation context and business rationale. Every word earns its place.

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

Completeness4/5

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

For a simple one-parameter tool, the description covers what it does, when to call it, and why it matters. An output schema exists, so not explaining return values is acceptable. It could mention error cases or idempotency, but these are not critical for basic invocation.

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?

The schema has only one required parameter, template_id, with no description, and schema coverage is 0%. The description does mention '某模板' (a template), which indirectly ties to the parameter, but it does not explain the parameter's source or constraints. Given the self-explanatory parameter name, this is adequate but not exceptional.

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 clearly states the tool's action: recording a template usage by incrementing the usage count and refreshing the last-used timestamp. This specific behavior distinguishes it from sibling CRUD/search tools like get_sql_template or update_sql_template.

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?

The description explicitly says to call this tool after a skill-reuse template generates final SQL, giving a clear invocation context. It does not explicitly list exclusions or alternative tools, but the context is strong enough for correct selection.

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/nichuan/sql-template-mcp'

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