Skip to main content
Glama
zhouweico

mcp-kubevela

by zhouweico

vela_velaql_query

Read-onlyIdempotent

Run VelaQL queries to retrieve runtime data such as pod lists, container logs, resource topology, and service endpoints.

Instructions

执行 VelaQL 查询(Pod 列表、容器日志、资源拓扑等运行时数据)。

对应 API:GET /api/v1/query?velaql= 使用 view 枚举 + 结构化 params (见各 view 的 ParamSchema 描述), 由服务器拼装 velaql 字符串。错误以结构化文本返回, LLM 可直接 parse 修复后重试。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
viewYes视图。必须是受支持 view 之一。
paramsYes视图参数 (JSON 对象)。键名见 view 描述: service-endpoints-view / application-resource-tree-view / service-applied-resources-view / component-pod-view -> {appNs, appName}; component-service-view -> {appNs, appName, [name, cluster, clusterNs]}; service-view -> {appNs, appName, [cluster, clusterNs]}; pod-view -> {cluster, namespace, name}; application-resource-detail-view -> {cluster, namespace, name, kind, apiVersion}; collect-logs -> {cluster, namespace, pod, container, [previous, timestamps, tailLines]}
clusterNo多集群覆盖; 应用层 view 忽略此参数 (应用通过 target 决定集群), pod-view / collect-logs 此参数为必填 (在 params 之外, 此处供未来 cluster 路由优化)
response_formatNomarkdown

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, covering the safety profile. The description adds meaningful behavioral detail: '错误以结构化文本返回, LLM 可直接 parse 修复后重试' and that the server assembles the velaql string, which informs error recovery and invocation expectations. No contradiction with annotations.

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 sentences with a clear lead action, API endpoint, usage pattern, and error-handling note. Every sentence adds distinct value with no filler or repetition.

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 tool with a view enum and nested params, the description plus rich schema/annotations covers the essential context: what it does, how it works, and error recovery. It doesn't enumerate all views, but the schema does, so the description is sufficient for selection and 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 tool description itself only points to 'ParamSchema' descriptions and does not explain parameters, but the input schema provides detailed per-view key mappings (75% coverage). The schema carries the semantic burden, so the description adds little beyond the pointer, keeping this at the baseline 3.

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 opens with '执行 VelaQL 查询' and lists concrete runtime data examples (Pod list, container logs, resource topology), clearly defining the tool's function. It also cites the exact API endpoint (GET /api/v1/query?velaql=), which helps distinguish it from sibling resource-listing tools.

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

Usage Guidelines3/5

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

The description explains the query mechanism (view enum + structured params, server-assembled VelaQL) but does not explicitly state when to prefer this tool over sibling list/get tools, nor does it provide exclusions. Usage is implied rather than explicit, so guidance is present but not fully fleshed out.

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/zhouweico/mcp-kubevela'

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