Skip to main content
Glama
DataHub MCP Server

DataHub MCP Server

get_dataset_lineage

Retrieve upstream and downstream lineage for a dataset to trace dependencies and impacts across data pipelines. Choose the lineage direction as needed.

Instructions

Get lineage information (upstream and downstream dependencies) for a dataset

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": {
      "urn": "<urn>"
    },
    "name": "get_dataset_lineage"
  }
}

Input Schema

NameRequiredDescriptionDefault
urnYesThe URN of the dataset
directionNoDirection of lineage to retrieveBOTH

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral-disclosure burden. It makes clear this is a read-style lineage retrieval and identifies the upstream/downstream scope, but it does not cover permissions, result size, pagination, latency, or other operational behavior.

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?

The description is a single, front-loaded sentence with no wasted wording. It states the action, the resource, and the scope of lineage in a compact form.

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 simple two-parameter read tool with full schema coverage and no output schema, the description gives enough conceptual context to understand what is returned: upstream and downstream lineage dependencies. It could be stronger with explicit output expectations or usage guidance, but it is largely complete for this complexity level.

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%, so the schema already documents both the required dataset URN and the optional direction enum. The description reinforces that lineage may be upstream or downstream but adds no syntax, formatting, or usage detail beyond what the schema provides, making the baseline score of 3 appropriate.

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 uses a specific verb, "Get," and resource, "lineage information," for a dataset. It clarifies that lineage includes both upstream and downstream dependencies, which distinguishes it from sibling tools like get_dataset_info and get_dataset_schema, though it does not explicitly name those alternatives.

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?

The description states what the tool does but gives no guidance on when to use it instead of alternatives such as get_dataset_info or get_dataset_schema. It also provides no prerequisites, exclusions, or contextual conditions for choosing this lineage tool.

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