Skip to main content
Glama

config__ShowResourceRelations

Query a resource's relationships with other resources by resource ID and direction (in or out); resource recorder must be enabled.

Instructions

[CONFIG] 指定资源ID,查询该资源与其他资源的关联关系,可以指定关系方向为"in" 或者"out"。资源关系依赖开启资源记录器。

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": {
      "direction": "<direction>",
      "domain_id": "<domain_id>",
      "resource_id": "<resource_id>"
    },
    "name": "config__ShowResourceRelations"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo最大的返回数量
markerNo分页参数,通过上一个请求中返回的marker信息作为输入,获取当前页
directionYes资源关系的指向
domain_idYes帐号ID
resource_idYes资源ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It usefully discloses the dependency on an enabled resource recorder, which is real behavioral context an agent needs. It does not describe pagination behavior, result ordering, or what happens when the recorder has never been enabled (empty set vs error), which are the remaining gaps.

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

Conciseness4/5

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

Two compact sentences, front-loaded with the identifying verb and resource, and the prerequisite is appended without preamble. The [CONFIG] service tag is mild clutter but the body has no redundant wording.

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 five-parameter read tool with full schema coverage, no output schema, and no annotations, the description covers what the tool does, the required direction choice, and the recorder prerequisite. Only the pagination/return-shape behavior is left implicit, which the schema's marker and limit fields largely cover.

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% — every parameter, including direction's in/out enum, limit, marker, domain_id and resource_id, is documented in the schema itself. The description restates resource_id and the direction values but adds no format, constraint, or interaction detail beyond that. Baseline 3 applies.

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

Purpose4/5

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

States a specific verb and resource: query the relations of a given resource ID to other resources, with a direction filter. An agent can tell it is a relation-lookup tool. It does not, however, distinguish itself from the sibling config__ShowResourceRelationsDetail or rms__ShowResourceRelations, which by name appear closely related — the description leaves that differentiation to inference.

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 definition supplies one important precondition — resource relations require the resource recorder to be enabled — which tells the agent when the call will fail. It gives no explicit when-to-use or when-not-to-use guidance and does not route the agent between this tool and its *_Detail sibling, so the usage context is only implied.

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