Skip to main content
Glama
factory-graph-mcp

factory-graph-mcp

by prag-ai

common_upstream

Read-onlyIdempotent

Returns shared upstream equipment for multiple equipment IDs, helping trace where to look first when several machines alarm; ranks by how many equipment items an upstream covers and by proximity.

Instructions

여러 설비에 동시에 이상이 있을 때, 그 설비들이 함께 쓰는 상류 설비를 돌려줍니다.

두 대 이상이 함께 쓰는 상류만 나오고, 많은 설비를 덮을수록, 가까울수록 앞에 옵니다. covers_all 이 true 이면 준 설비 전부가 그 상류를 씁니다.

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_ids": "<equipment_ids>"
    },
    "name": "common_upstream"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindsNo
max_depthNo
equipment_idsYes

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 the safety profile (readOnly, idempotent, non-destructive, closed-world). The description adds real behavior beyond them: only upstreams shared by two or more equipments are returned, results are ranked by coverage breadth then proximity, and a covers_all flag signals full coverage. That output-shaping detail is not derivable from the annotations or schema.

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?

Three short sentences, front-loaded with the purpose, then the result-ordering rule, then the covers_all caveat. Nothing is padded, though the ordering rule and the covers_all note could be compressed into one line.

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 correctly spends its words on return semantics (filtering and ordering), which is the right priority. However, the total absence of parameter documentation for a 3-input tool leaves the calling contract underspecified, which is a real completeness gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/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 compensate for the three inputs, and it does not: equipment_ids, kinds, and max_depth are never explained, nor are their formats or defaults. The only flag it mentions, covers_all, is not even an input parameter, so an agent gets no help on how to shape a call.

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?

The description states a specific verb and resource: it returns the upstream equipment shared by several equipments that have simultaneous anomalies. That is far more informative than the name alone. It never names a sibling such as trace_upstream, so the agent must infer the single-equipment case on its own.

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?

The opening clause gives a clear trigger condition ('여러 설비에 동시에 이상이 있을 때'), which is exactly the context an agent needs to choose this tool over a per-equipment trace. It stops short of stating when NOT to use it or naming the alternative tool, so it is clear context without exclusions.

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