Skip to main content
Glama

lts__CreateAccessConfig

Creates a Huawei Cloud LTS log access configuration to collect ECS or CCE logs into a selected log group and stream, including parsing and collection rules.

Instructions

[LTS] 创建日志接入

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": {
      "access_config_detail": "<access_config_detail>",
      "access_config_name": "<access_config_name>",
      "access_config_type": "<access_config_type>",
      "log_info": "<log_info>",
      "project_id": "<project_id>"
    },
    "name": "lts__CreateAccessConfig"
  }
}

Input Schema

NameRequiredDescriptionDefault
demo_logNo示例日志
log_infoYes日志接入基础日志信息。
log_splitNo日志拆分
cluster_idNoCCE集群ID,当CCE类型时,为必填
processorsNoIC结构化解析器
project_idYes项目ID,获取方式请参见:[获取帐号租户ID、项目资源集ID、日志组ID、日志流ID](lts_api_0006.xml)。None
demo_fieldsNo示例日志解析字段
component_idNoServiceStage组件ID
application_idNoServiceStage应用ID
binary_collectNo二进制采集
environment_idNoServiceStage环境ID
processor_typeNoIC结构化解析类型包括 :SINGLE_LINE 单行全文,MULTI_LINE 多行全文,REGEX 单行正则,MULTI_REGEX 多行正则,SPLIT 分隔符,JSON JSON解析,NGINX nginx解析, COMPOSE组合解析
encoding_formatNo编码格式,支持UTF-8,GDB默认UTF-8
host_group_infoNo日志接入主机组ID列表
access_config_tagNo标签信息。KEY不能重复,最多20个标签
access_config_nameYes日志接入名称。
access_config_typeYes日志接入类型。AGENT:ECS接入,K8S_CCE:CCE接入
incremental_collectNo是否增量采集 true 为是 false为否(全量采集)
access_config_detailYes日志接入详细信息
access_config_type_sourceNo日志接入自建软件来源

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.2/5.0
Behavior1/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it discloses nothing beyond the name: not whether the call is destructive or reversible, what permissions/agency are required, whether it is idempotent on name collision, or what it returns. For a 20-parameter creation mutation with deeply nested CCE/Windows/processor options, this is a complete gap.

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?

The single line is front-loaded and free of filler, but it is sized for a trivial tool rather than a 20-parameter create with nested objects. Brevity here reads as under-specification rather than efficiency.

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

Completeness1/5

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

Given 20 parameters, 5 required fields, deep nesting, enum-gated type branches (AGENT vs K8S_CCE), no annotations, and no output schema, a one-line description leaves an agent without the conditional logic needed to build a valid request.

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% and every property, including nested processor and access_config_detail fields, is documented inline. The description adds no meaning beyond that schema, 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 gives a verb+resource ('创建日志接入' / create log access), so the basic operation is identifiable. However it carries no scope, no field-level detail, and no differentiation from siblings such as lts__UpdateAccessConfig or lts__CreateStructConfig, which an agent would need to pick correctly.

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 at all: no mention of when to create versus update an existing config, no prerequisites (project_id, log group/stream, AGENT vs K8S_CCE selection), and no pointer to any alternative tool.

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