Skip to main content
Glama

cbr__ShowVaultResourceInstances

Filter CBR vault resource instances by tags to return matching records or total counts for inventory and compliance checks.

Instructions

[CBR] 使用标签过滤实例

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": {
      "action": "<action>",
      "project_id": "<project_id>"
    },
    "name": "cbr__ShowVaultResourceInstances"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNo包含标签。
limitNo查询记录数(action为count时无此参数)如果action为filter时,默认为1000,limit最小值为1,limit最大值为1000, 不在范围内报错。返回的结果中记录数不超过limit。
actionYes操作标识取值范围为:"filter", "count"。如果是filter就是分页查询,如果是count只需按照条件将总条数返回即可
offsetNo索引位置(action为count时无此参数)如果action为filter时,默认为0,offset最小值为0。返回的结果中第一条记录为符合查询条件的第offset+1条记录。
matchesNo资源本身支持的查询条件。
not_tagsNo不包含标签。
sys_tagsNo仅op_service权限可以使用此字段做资源实例过滤条件。
tags_anyNo包含任一标签。
cloud_typeNo云类型
project_idYes项目id
object_typeNo资源类型
not_tags_anyNo不包含任一标签。
without_any_tagNo不包含任意一个标签,该字段为true时查询所有不带标签的资源,此时忽略 “tags”、“tags_any”、“not_tags”、“not_tags_any”字段。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.1/5.0
Behavior1/5

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

With no annotations, the description carries the full behavioral burden and discloses nothing: it doesn't say this is a read-only query, that action=count returns only a total, that tags/tags_any/not_tags are alternative predicates, or that without_any_tag overrides the other tag fields. An agent calling it blind can easily build a self-contradictory filter.

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

Conciseness2/5

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

The single eight-word sentence is not wasteful, but this is under-specification rather than conciseness — it front-loads nothing about modes, filters, or scoping and leaves the tool effectively undescribed.

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?

For a 13-parameter query tool with no annotations and no output schema, a one-line description is drastically incomplete. The agent must read the raw schema to learn the mutually exclusive tag-predicate semantics and the filter-vs-count modes.

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 parameters such as limit, offset, action, object_type, and sys_tags have detailed inline descriptions, so the schema does the heavy lifting. The description adds no additional meaning about any of the 13 parameters, which matches the baseline of 3 when the schema is complete.

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?

"[CBR] 使用标签过滤实例" gives a verb (filter) and a resource (instances), but the resource is ambiguous — nothing states these are CBR vault resources as opposed to the instances exposed by the many cbr__/as__/ccm__ siblings. It doesn't mention the filter/count action split that defines the tool's two modes.

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: nothing says when to pick this over cbr__ShowVaultTag, cbr__ShowVaultProjectTag, or as__ListResourceInstances, and no prerequisite (e.g. project scoping, op_service permission for sys_tags) is stated.

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