Skip to main content
Glama

verify_cross_table_fk_consistency

Read-onlyIdempotent

Anonymizes related SQL, CSV, or JSONL datasets with a shared HMAC-SHA256 salt and verifies cross-table foreign-key join parity plus zero-plaintext audit consistency.

Instructions

Anonymizes two or more related SQL, CSV, or JSONL datasets under a shared HMAC-SHA256 session salt and verifies referential integrity (FOREIGN KEY join parity & zero-plaintext audit certificates) across all tables.

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": {
      "datasets": "<datasets>"
    },
    "name": "verify_cross_table_fk_consistency"
  }
}

Input Schema

NameRequiredDescriptionDefault
datasetsYesList of 2 or more related table dumps or files (e.g. users PG COPY + orders SQL INSERT + logs JSONL).
emailDomainNoSafe RFC 2606 domain used across all tables (defaults to "example.test").
sessionSaltNoShared ephemeral HMAC-SHA256 salt applied across every dataset in the batch.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already fix the safety profile (readOnly, idempotent, non-destructive, closed-world), so the bar is lower. The description still adds real behavior: HMAC-SHA256 with a shared ephemeral salt applied uniformly, FOREIGN KEY join parity checks, and zero-plaintext audit certificates. It stops short of saying whether the returned artifact is anonymized data, a certificate, or both.

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?

It is a single front-loaded sentence with no filler, and the two operations and their guarantees are packed in without repetition. The dense parenthetical is slightly heavy but each clause carries information.

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 and a nontrivial multi-dataset operation, the description should clarify what an agent gets back (anonymized content, a verification certificate, or a report) and how the anonymize and verify results relate. That return-shape gap, plus the name/behavior tension, leaves it only adequately complete.

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 all three params are already documented in the schema. The description reinforces that the salt is shared across every dataset and that names/domains are aligned across tables, but adds only marginal meaning beyond the structured fields, matching the baseline 3.

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 specific verbs and resources: it anonymizes related SQL/CSV/JSONL datasets and verifies FOREIGN KEY join parity across tables. This is concrete and far beyond a tautology. However, the dual purpose (anonymize + verify) sits at odds with the purely 'verify_cross_table_fk_consistency' name and overlaps with the sibling anonymize_sql_or_structured_dump without distinguishing the two.

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 phrases 'two or more related datasets' and 'shared ... session salt' imply the tool is for multi-table batches that must stay consistent, which is a usable usage signal. Yet there is no explicit when-to-use vs. the anonymize or validate_checksums siblings, and no statement of when not to use it.

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