Skip to main content
Glama
factory-graph-mcp

factory-graph-mcp

by prag-ai

trace_upstream

Read-onlyIdempotent

Walk from a machine toward its suppliers to identify shared chillers, compressors, cooling towers, and panels, returning nearest upstream sources and paths for alarm investigation.

Instructions

설비에서 출발해 공급하는 쪽으로 거슬러 올라가며 상류 설비를 가까운 순서로 돌려줍니다.

depth 1 은 바로 공급하는 설비, 2 는 그 설비에 공급하는 설비입니다. path 는 상류에서 출발 설비까지 무엇이 흘러오는지 보여 줍니다. kinds 로 연결 종류를 좁힐 수 있습니다. 예: ["냉각수", "절삭유 냉각수"]. 서로 주고받는 연결(순환)은 한 번만 따라가고 cycles_skipped 에 적습니다.

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": {
      "equipment_id": "<equipment_id>"
    },
    "name": "trace_upstream"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindsNo
max_depthNo
equipment_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive and closed-world behavior, so the bar is lower. The description adds real context beyond that: how depth levels are counted, what 'path' represents, and that cyclic connections are followed only once with the count surfaced in 'cycles_skipped' — a meaningful behavioral disclosure for a graph traversal.

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?

Front-loaded with the core purpose, then one short line per concept (depth, path, kinds, cycles). Little waste; the only slight inefficiency is that depth and path semantics are described without naming the corresponding parameters, which costs the reader a small mapping step.

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

Completeness3/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 must convey the return shape, and it only partially does: 'path' and 'cycles_skipped' are described, but the structure of the returned equipment list (fields per item, edge/connection info, ordering guarantees beyond 'nearest first') and the max_depth truncation behavior are not covered.

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 0%, so the description must carry the parameter burden. It explains the depth concept (depth 1 = direct supplier) and gives concrete example values for 'kinds', but never ties these to the actual parameter names, and 'max_depth' (default 5) is never addressed — the reader is left to guess whether exceeding it truncates silently or errors.

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 direction ('설비에서 출발해 공급하는 쪽으로 거슬러 올라가며 상류 설비를...돌려줍니다') plus the ordering of results (nearest first). That is clear enough to distinguish a directed upstream traversal from a generic lookup, but it never contrasts itself with the sibling 'common_upstream', so the agent must infer the boundary between them.

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 conveys the traversal semantics well enough that the intended use (find what supplies a given equipment) is implied, but there is no explicit 'use this when / not when' statement and no mention of the sibling alternatives. Guidance is inferred rather than stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.