Skip to main content
Glama

MyPos MCP

by Yonsn76

agregarClaveForanea

Adds a foreign key constraint between two existing database tables to enforce referential integrity, ensuring data relationships remain valid by linking local columns to referenced columns.

Instructions

Sigue estas reglas para agregar una clave foránea: PROPÓSITO: Crear una relación (clave foránea) entre dos tablas para mantener la integridad referencial. REGLA: Las tablas y columnas involucradas ya deben existir. PRECAUCIÓN: La operación puede fallar si los datos existentes violan la nueva restricción. USO: Especifica la tabla local, sus columnas, la tabla de referencia y sus columnas. EJEMPLO: "Agrega una clave foránea de cliente_id en ventas referenciando clientes(id)."

Input Schema

NameRequiredDescriptionDefault
columnasYesColumnas locales
columnasReferenciaYesColumnas referenciadas
nombreNoNombre de la clave foránea (opcional)
onDeleteNoAcción ON DELETE (ej. CASCADE, SET NULL)
onUpdateNoAcción ON UPDATE (ej. CASCADE, SET NULL)
tablaYesTabla que tendrá la clave foránea
tablaReferenciaYesTabla referenciada

Input Schema (JSON Schema)

{ "properties": { "columnas": { "description": "Columnas locales", "items": { "type": "string" }, "type": "array" }, "columnasReferencia": { "description": "Columnas referenciadas", "items": { "type": "string" }, "type": "array" }, "nombre": { "description": "Nombre de la clave foránea (opcional)", "type": "string" }, "onDelete": { "description": "Acción ON DELETE (ej. CASCADE, SET NULL)", "type": "string" }, "onUpdate": { "description": "Acción ON UPDATE (ej. CASCADE, SET NULL)", "type": "string" }, "tabla": { "description": "Tabla que tendrá la clave foránea", "type": "string" }, "tablaReferencia": { "description": "Tabla referenciada", "type": "string" } }, "required": [ "tabla", "columnas", "tablaReferencia", "columnasReferencia" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Yonsn76/MyPos-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server