Skip to main content
Glama

mark_field_pii

Destructive

Sets or clears the personal-data (PII) flag on one existing lineage link: isPii: true flags it, isPii: false removes the flag. Nothing else on the link changes (endpoints, transformLogic, notes are kept). The flag is governance metadata shown on the lineage arrow of the canvas; it does not mask or alter any data. It flags a lineage link, not an entity field: the PII classes of the table's own fields live in update_entity's kindMetadata.piiFields. The link must already exist: link_field_lineage creates one (and can set isPii at creation), delete_field_lineage removes one. REFUSED with an error, nothing written, on an unknown lineageId. Idempotent: sending the current value succeeds and changes nothing.

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": {
      "lineageId": "<lineageId>",
      "isPii": "<isPii>"
    },
    "name": "mark_field_pii"
  }
}

Input Schema

NameRequiredDescriptionDefault
isPiiYestrue = flag the link as personal data, false = remove the flag
lineageIdYesID of the lineage link to tag (the `id` given to link_field_lineage when it was traced)
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. Changed2 schema fields changed
    • addedInput schema / properties / isPii / description
      Added value: +"true = flag the link as personal data, false = remove the flag"
    • changedInput schema / properties / lineageId / description
      Previous value: -"ID of the lineage link to tag"New value: +"ID of the lineage link to tag (the `id` given to link_field_lineage when it was traced)"
  4. Changed2 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 / lineageId / description
      Previous value: -"ID du lien lineage à tagger"New value: +"ID of the lineage link to tag"
  5. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=true, openWorldHint=false), the description discloses that no other link properties are touched, that the flag is display-only governance metadata with no data masking, that an unknown lineageId is refused with an error and nothing written, and that the call is idempotent. These are exactly the side-effect, failure, and retry semantics an agent needs for a mutation.

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?

The description is front-loaded with the core action and value semantics before branching into scope, refusal, and idempotency notes, and every sentence carries distinct information. It is dense and slightly long, but nothing is redundant with the annotations or schema.

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 three-parameter mutation with no output schema, the definition covers prerequisites, sibling alternatives, side effects, error behavior, and idempotency — everything needed to invoke it correctly without a trial call.

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 baseline would be 3, but the description adds real meaning: it spells out both isPii values and their effects, and explains that lineageId is the id returned by link_field_lineage at trace time. expectedProjectId is left to the schema, which documents it adequately.

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 first clause gives a specific verb and resource — 'Sets or clears the personal-data (PII) flag on one existing lineage link' — and immediately disambiguates from update_entity by stating it flags a link, not an entity field. An agent can distinguish it from link_field_lineage and delete_field_lineage without opening any schema.

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?

Explicit routing is provided: for PII classes on a table's own fields, use update_entity's kindMetadata.piiFields instead; the link must already exist, with link_field_lineage named as the creator (which can also set isPii) and delete_field_lineage as the remover. When-to-use, when-not-to-use, and prerequisites are all covered.

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.