Skip to main content
Glama

lts__ListHistorySql

Queries a user's historical SQL statements in Huawei Cloud LTS for a specified project, log group, and log stream.

Instructions

[LTS] 查询用户历史sql

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": {
      "log_group_id": "<log_group_id>",
      "log_stream_id": "<log_stream_id>",
      "project_id": "<project_id>"
    },
    "name": "lts__ListHistorySql"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYes项目ID,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID。
log_group_idYes日志组id
log_stream_idYes日志流id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.5/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure, and it provides almost none. It does not state that this is a read-only listing, whether results are paginated, whether there is a time-range or result-count limit, or what permissions the caller needs. Only the bare act of querying is conveyed.

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

Conciseness3/5

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

A single bracketed tag plus a short phrase, with zero wasted words and the resource front-loaded. Conciseness is fine, but it shades into under-specification rather than economical writing.

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

Completeness2/5

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

The tool requires three identifiers, has no output schema, and has no annotations, so the description is the only place scope, return shape, and pagination could be explained. It covers none of these, leaving an agent unable to predict what comes back or how to bound the query.

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 description coverage is 100%, with each of project_id, log_group_id, and log_stream_id documented in the input schema. The description adds no further meaning beyond the schema (for example, whether log_stream_id scopes the SQL history or how project_id relates to the other two), so the baseline 3 applies.

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

Purpose3/5

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

The description supplies a verb (查询/query) and a resource (用户历史sql / user historical SQL), so the general intent is discernible. However, it never clarifies what 'history SQL' means concretely (query history in a log stream? an SQL audit trail?), what scope of user is covered, or how it differs from the sibling SQL-alarm tools such as lts__ListSqlAlarmRules. That ambiguity keeps it at minimum-viable rather than a clear 4.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no preconditions (e.g. that log_group_id and log_stream_id must be known up front), and no mention of alternatives. An agent must infer entirely from the tool name that this retrieves SQL query history for a given log stream.

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