Skip to main content
Glama
doitintl

DoiT MCP Server

Official
by doitintl

get_cloud_diagram_resource_relationships

Read-only

Retrieve the upstream and downstream connections for a cloud resource in a diagram, including edges and group membership with hop distance.

Instructions

Use this when the user wants to understand how a specific resource in a cloud infrastructure diagram is connected to other resources — its upstream/downstream edges and group membership. Returns the anchor resource plus related resources with their relation type and hop distance. Requires the diagram layer ID and the resource ID. Do NOT use this for cost analysis (use get_cloud_diagram_cost_snapshot or run_query).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindNoWhich relationship kinds to include. Possible values: edges, group_members, both (defaults to edges).
depthNoHow far to traverse. Possible values: direct, transitive (defaults to direct).
layerIdYesThe diagram layer (statussheet) ID that contains the resource.
directionNoRelationship direction to traverse. Possible values: downstream, upstream, both (defaults to both).
resourceIdYesThe ID of the resource (node, element, or group) to map relationships for.
Behavior3/5

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

Annotations already indicate readOnlyHint=true and destructiveHint=false, so the agent knows it is safe. The description adds return value details (anchor + related with type and distance) but does not discuss authorization or rate limits.

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?

Two sentences with zero waste: first states purpose and output, second lists requirements and negative guidance. Highly efficient.

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?

With no output schema, the description appropriately describes the return structure (anchor + related with type and distance). Could mention error conditions or pagination but sufficient for a query tool.

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 coverage is 100%, so the schema already documents all parameters. The description only repeats required parameters (layerId, resourceId) without adding new meaning beyond the schema.

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 clearly states the tool's purpose: understanding how a specific resource connects to others in a cloud diagram, listing upstream/downstream edges and group membership. It explicitly differentiates from cost-analysis tools by naming alternatives.

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

Usage Guidelines4/5

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

Provides clear when-to-use context ('when the user wants to understand...connected to other resources') and negative guidance for cost analysis. However, does not exclude other diagram tools like get_cloud_diagram_components.

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/doitintl/doit-mcp-server'

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