Skip to main content
Glama

link_field_lineage

Traces ONE lineage link from a source field (or from an entire source block, when fromFieldId is omitted or null) to a target field of an ERD entity — it answers 'where does this field come from?'. Required: a unique id, fromCellId, toCellId and toFieldId. The source and target blocks and the fields must already exist AND the field must belong to the block you name (a field id of another entity is refused): create them first with add_data_source, add_entity or add_field. REFUSED with an error, nothing written, on an unknown block or field or on an id that already exists. Optional: transformLogic (the ETL/SQL step in a few words), isPii (default false; flip it later with mark_field_pii) and notes. Nothing is overwritten: a second link with a new id adds another path. Remove one with delete_field_lineage.

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": {
      "id": "<id>",
      "fromCellId": "<fromCellId>",
      "toCellId": "<toCellId>",
      "toFieldId": "<toFieldId>"
    },
    "name": "link_field_lineage"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesUnique ID of the lineage relation
isPiiNoPII flag for governance (default false)
notesNoFree notes on this lineage link
toCellIdYesTarget ERD entity
toFieldIdYesTarget ERD field
fromCellIdYesSource block (typically kind=data-source)
fromFieldIdNoID of the source field (null if the source is an entire data-source block)
transformLogicNoETL/SQL/short description
expectedProjectIdNoUUID of the project THIS call targets (overrides the session project).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID of the project THIS call targets (overrides the session project). No access: refused, nothing changed."New value: +"UUID of the project THIS call targets (overrides the session project)."
  2. Changed1 schema field changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted."New value: +"UUID of the project THIS call targets (overrides the session project). No access: refused, nothing changed."
  3. Changed1 schema field changed
    • addedInput schema / properties / notes / description
      Added value: +"Free notes on this lineage link"
  4. Changed8 schema fields changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID du projet visé par CET appel. Cible RÉELLEMENT ce projet au lieu du projet de session. Refusé sans rien modifier si l'accès n'est pas accordé."New value: +"UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted."
    • changedInput schema / properties / fromCellId / description
      Previous value: -"Source cell (typiquement kind=data-source)"New value: +"Source block (typically kind=data-source)"
    • changedInput schema / properties / fromFieldId / description
      Previous value: -"ID du champ source (null si la source est un bloc data-source entier)"New value: +"ID of the source field (null if the source is an entire data-source block)"
    • changedInput schema / properties / id / description
      Previous value: -"ID unique de la relation lineage"New value: +"Unique ID of the lineage relation"
    • changedInput schema / properties / isPii / description
      Previous value: -"Flag PII pour gouvernance (défaut false)"New value: +"PII flag for governance (default false)"
    • changedInput schema / properties / toCellId / description
      Previous value: -"Entité MCD cible"New value: +"Target ERD entity"
    • changedInput schema / properties / toFieldId / description
      Previous value: -"Champ MCD cible"New value: +"Target ERD field"
    • changedInput schema / properties / transformLogic / description
      Previous value: -"ETL/SQL/description courte"New value: +"ETL/SQL/short description"
  5. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, openWorldHint=false), the description discloses failure semantics ('REFUSED with an error, nothing written, on an unknown block or field or on an id that already exists') and non-overwrite behavior (a second link with a new id adds another path). That is genuinely useful write-safety context; minor deduction only because the response shape of a successful call is not characterized at all.

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 purpose and the ONE-link scope before prerequisites, validation, and optional fields. Dense and largely waste-free, though the single run-on paragraph with many em-dash asides could be split so the required-versus-refused rules scan faster.

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

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 9-parameter mutation tool with no output schema and no enums, the description covers prerequisites, required parameters, validation failures, overwrite semantics, optional-field defaults, and the cleanup sibling. The only uncovered parameter, expectedProjectId, is self-describing in the schema.

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

Parameters4/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 each parameter and a baseline 3 would be defensible. The description still adds meaning: fromFieldId omitted/null targets a whole block, isPii defaults to false and can be flipped later via mark_field_pii (a routing hint absent from the schema), and transformLogic is framed as a short ETL/SQL phrase.

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?

States a specific verb and resource ('Traces ONE lineage link from a source field ... to a target field of an ERD entity') and disambiguates scope by explaining that omitting fromFieldId links an entire source block. The parenthetical 'where does this field come from?' makes the intent unmistakable against siblings like add_field or delete_field_lineage.

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

Usage Guidelines5/5

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

Explains prerequisites explicitly (blocks and fields must already exist; create them with add_data_source, add_entity or add_field), enumerates the required parameters, and names the removal alternative (delete_field_lineage). It also states the negative case: a field id belonging to another entity is refused.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.