Data Processing
Validate foreign key relationships between multiple datasets. Perfect for checking data integrity, finding orphaned records, and ensuring referential consistency across related tables. Features: - Validate foreign key relationships - Find orphaned records - Check referential integrity - Support multiple key formats - Cross-table validation - Missing key detection - Duplicate key analysis - Relationship mapping Common Use Cases: - Database integrity checks - Data migration validation - ETL process verification - Referential consistency checks - Data quality assurance - Relationship analysis
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/data-foreign-key-validator' \
-H 'Content-Type: application/json' \
-d '{"primaryKeyData":"Paste primary key data (parent table)...\nExample:\nID,Name,City\n1,New York,USA\n2,Los Angeles,USA","primaryKeyColumn":1,"foreignKeyData":"Paste foreign key data (child table)...\nExample:\nID,Name,CityID\nJohn,1,1\nJane,2,2","foreignKeyColumn":1,"validationMode":"all","caseSensitive":true,"ignoreEmpty":true,"outputFormat":"detailed"}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/data-foreign-key-validator| Name | Type | Required | Description |
|---|---|---|---|
| primaryKeyData | textarea | Yes | — |
| primaryKeyColumn | number | Yes | Column number that contains the primary key values (1-based index) |
| foreignKeyData | textarea | Yes | — |
| foreignKeyColumn | number | Yes | Column number that contains the foreign key values (1-based index) |
| validationMode | select | Yes | — |
| caseSensitive | checkbox | No | Treat uppercase and lowercase as different values |
| ignoreEmpty | checkbox | No | Skip empty or null values during validation |
| outputFormat | select | Yes | — |
Text result
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-data-foreign-key-validator": {
"name": "data-foreign-key-validator",
"description": "Validate foreign key relationships between multiple datasets. Perfect for checking data integrity, finding orphaned records, and ensuring referential consistency across related tables.\n\nFeatures:\n- Validate foreign key relationships\n- Find orphaned records\n- Check referential integrity\n- Support multiple key formats\n- Cross-table validation\n- Missing key detection\n- Duplicate key analysis\n- Relationship mapping\n\nCommon Use Cases:\n- Database integrity checks\n- Data migration validation\n- ETL process verification\n- Referential consistency checks\n- Data quality assurance\n- Relationship analysis",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=data-foreign-key-validator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "data-foreign-key-validator",
"arguments": {
"primaryKeyData": "Paste primary key data (parent table)...\nExample:\nID,Name,City\n1,New York,USA\n2,Los Angeles,USA",
"primaryKeyColumn": 1,
"foreignKeyData": "Paste foreign key data (child table)...\nExample:\nID,Name,CityID\nJohn,1,1\nJane,2,2",
"foreignKeyColumn": 1,
"validationMode": "all",
"caseSensitive": true,
"ignoreEmpty": true,
"outputFormat": "detailed"
}
}
}Questions or issues? Contact [email protected]