{"at":"2026-11-23T03:38:59.702Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T03:39:00.219Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T03:39:00.320Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T03:39:00.788Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"tools":{"listChanged":true}},"protocolVersion":"2025-11-25","serverInfo":{"name":"sqemo","version":"2.8.3"}}}}
{"at":"2026-11-23T03:39:00.788Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T03:39:00.788Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T03:39:00.794Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Returns an ERD summary (entity/relationship/domain/word-list stats, standard link status).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"source":{"anyOf":[{"additionalProperties":false,"properties":{"file":{"description":"Path to a local .erd.json file","type":"string"}},"required":["file"],"type":"object"},{"additionalProperties":false,"properties":{"erdId":{"description":"Server ERD id (from list_erds)","type":"string"}},"required":["erdId"],"type":"object"}],"description":"Target ERD — exactly one of a local file ({file}) or a server ERD ({erdId})"}},"required":["source"],"type":"object"},"name":"get_erd_overview"},{"description":"Lists entities (logical name, physical name, attribute count).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"source":{"anyOf":[{"additionalProperties":false,"properties":{"file":{"description":"Path to a local .erd.json file","type":"string"}},"required":["file"],"type":"object"},{"additionalProperties":false,"properties":{"erdId":{"description":"Server ERD id (from list_erds)","type":"string"}},"required":["erdId"],"type":"object"}],"description":"Target ERD — exactly one of a local file ({file}) or a server ERD ({erdId})"}},"required":["source"],"type":"object"},"name":"list_entities"},{"description":"Entity detail (attributes and physical mapping). Prefers entityId; otherwise exact logicalName match (first hit on duplicates).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"entityId":{"type":"string"},"logicalName":{"type":"string"},"source":{"anyOf":[{"additionalProperties":false,"properties":{"file":{"description":"Path to a local .erd.json file","type":"string"}},"required":["file"],"type":"object"},{"additionalProperties":false,"properties":{"erdId":{"description":"Server ERD id (from list_erds)","type":"string"}},"required":["erdId"],"type":"object"}],"description":"Target ERD — exactly one of a local file ({file}) or a server ERD ({erdId})"}},"required":["source"],"type":"object"},"name":"get_entity"},{"description":"Lists relationships (endpoint entity names, cardinality, identifying flag).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"source":{"anyOf":[{"additionalProperties":false,"properties":{"file":{"description":"Path to a local .erd.json file","type":"string"}},"required":["file"],"type":"object"},{"additionalProperties":false,"properties":{"erdId":{"description":"Server ERD id (from list_erds)","type":"string"}},"required":["erdId"],"type":"object"}],"description":"Target ERD — exactly one of a local file ({file}) or a server ERD ({erdId})"}},"required":["source"],"type":"object"},"name":"list_relationships"},{"description":"Lists domain definitions (name, data type). With a {workspaceId} source, reads the latest workspace-standard master.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"source":{"anyOf":[{"additionalProperties":false,"properties":{"file":{"description":"Path to a local .erd.json file","type":"string"}},"required":["file"],"type":"object"},{"additionalProperties":false,"properties":{"erdId":{"description":"Server ERD id (from list_erds)","type":"string"}},"required":["erdId"],"type":"object"},{"additionalProperties":false,"properties":{"workspaceId":{"description":"Workspace id (from list_workspaces)","type":"string"}},"required":["workspaceId"],"type":"object"}],"description":"Dictionary source — exactly one of a local file, a server ERD, or a workspace standard"}},"required":["source"],"type":"object"},"name":"list_domains"},{"description":"Partial-match word-list search across logical/physical/abbreviation/English/synonyms (case-insensitive, max 50). With a {workspaceId} source, reads the latest workspace-standard master.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"query":{"description":"Search term","type":"string"},"source":{"anyOf":[{"additionalProperties":false,"properties":{"file":{"description":"Path to a local .erd.json file","type":"string"}},"required":["file"],"type":"object"},{"additionalProperties":false,"properties":{"erdId":{"description":"Server ERD id (from list_erds)","type":"string"}},"required":["erdId"],"type":"object"},{"additionalProperties":false,"properties":{"workspaceId":{"description":"Workspace id (from list_workspaces)","type":"string"}},"required":["workspaceId"],"type":"object"}],"description":"Dictionary source — exactly one of a local file, a server ERD, or a workspace standard"}},"required":["source","query"],"type":"object"},"name":"search_dictionary"},{"description":"Checks a logical name against the team naming standard (word list + rules). With physicalName, compares it to the generated name (providedMatches). With a {workspaceId} source, reads the latest workspace-standard master.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"logicalName":{"type":"string"},"physicalName":{"type":"string"},"source":{"anyOf":[{"additionalProperties":false,"properties":{"file":{"description":"Path to a local .erd.json file","type":"string"}},"required":["file"],"type":"object"},{"additionalProperties":false,"properties":{"erdId":{"description":"Server ERD id (from list_erds)","type":"string"}},"required":["erdId"],"type":"object"},{"additionalProperties":false,"properties":{"workspaceId":{"description":"Workspace id (from list_workspaces)","type":"string"}},"required":["workspaceId"],"type":"object"}],"description":"Dictionary source — exactly one of a local file, a server ERD, or a workspace standard"}},"required":["source","logicalName"],"type":"object"},"name":"check_naming"},{"description":"Generates a physical name from a logical name via the word list and naming rules (unregistered words go to warnings). With a {workspaceId} source, reads the latest workspace-standard master.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"logicalName":{"type":"string"},"source":{"anyOf":[{"additionalProperties":false,"properties":{"file":{"description":"Path to a local .erd.json file","type":"string"}},"required":["file"],"type":"object"},{"additionalProperties":false,"properties":{"erdId":{"description":"Server ERD id (from list_erds)","type":"string"}},"required":["erdId"],"type":"object"},{"additionalProperties":false,"properties":{"workspaceId":{"description":"Workspace id (from list_workspaces)","type":"string"}},"required":["workspaceId"],"type":"object"}],"description":"Dictionary source — exactly one of a local file, a server ERD, or a workspace standard"}},"required":["source","logicalName"],"type":"object"},"name":"generate_physical_name"},{"description":"Exports the physical model as CREATE TABLE SQL. Without dialect, uses the project dialect.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"dialect":{"description":"SQL dialect","enum":["mysql","postgres","cubrid","oracle","sqlserver","sqlite","h2"],"type":"string"},"source":{"anyOf":[{"additionalProperties":false,"properties":{"file":{"description":"Path to a local .erd.json file","type":"string"}},"required":["file"],"type":"object"},{"additionalProperties":false,"properties":{"erdId":{"description":"Server ERD id (from list_erds)","type":"string"}},"required":["erdId"],"type":"object"}],"description":"Target ERD — exactly one of a local file ({file}) or a server ERD ({erdId})"}},"required":["source"],"type":"object"},"name":"export_sql"},{"description":"Exports the project as DBML text.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"source":{"anyOf":[{"additionalProperties":false,"properties":{"file":{"description":"Path to a local .erd.json file","type":"string"}},"required":["file"],"type":"object"},{"additionalProperties":false,"properties":{"erdId":{"description":"Server ERD id (from list_erds)","type":"string"}},"required":["erdId"],"type":"object"}],"description":"Target ERD — exactly one of a local file ({file}) or a server ERD ({erdId})"}},"required":["source"],"type":"object"},"name":"export_dbml"},{"description":"Validates project structure and referential integrity ({ valid, errors }).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"source":{"anyOf":[{"additionalProperties":false,"properties":{"file":{"description":"Path to a local .erd.json file","type":"string"}},"required":["file"],"type":"object"},{"additionalProperties":false,"properties":{"erdId":{"description":"Server ERD id (from list_erds)","type":"string"}},"required":["erdId"],"type":"object"}],"description":"Target ERD — exactly one of a local file ({file}) or a server ERD ({erdId})"}},"required":["source"],"type":"object"},"name":"validate_erd"},{"description":"Lints the whole project — structure (PKs, attributes, descriptions, domains), referential integrity, duplicate physical names (including names that differ only by case, which collide on case-insensitive databases), duplicate logical entity names, identifier length limits (dialect-aware, tables/columns/indexes/FK constraints), auto-increment on non-integer column types (dialect-aware), and the naming standard (unregistered words, physical-name drift) in one pass. Quality/standards oriented, unlike validate_erd (structural validity).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"source":{"anyOf":[{"additionalProperties":false,"properties":{"file":{"description":"Path to a local .erd.json file","type":"string"}},"required":["file"],"type":"object"},{"additionalProperties":false,"properties":{"erdId":{"description":"Server ERD id (from list_erds)","type":"string"}},"required":["erdId"],"type":"object"}],"description":"Target ERD — exactly one of a local file ({file}) or a server ERD ({erdId})"}},"required":["source"],"type":"object"},"name":"lint_erd"},{"description":"Compares two ERD sources (entities/attributes/domains/relationships — unchanged omitted). A dry run before full-replace import_sql/import_dbml. A side freshly parsed from text has different ids, so most items appear as added/removed — matching the actual import behavior (full replace). summary aggregates entities only; see the arrays for domain/relationship changes.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"after":{"$ref":"#/properties/before"},"before":{"anyOf":[{"additionalProperties":false,"properties":{"file":{"description":"Path to a local .erd.json file","type":"string"}},"required":["file"],"type":"object"},{"additionalProperties":false,"properties":{"erdId":{"description":"Server ERD id (from list_erds)","type":"string"}},"required":["erdId"],"type":"object"},{"additionalProperties":false,"properties":{"dialect":{"description":"Defaults to mysql","enum":["mysql","postgres","cubrid","oracle","sqlserver","sqlite","h2"],"type":"string"},"sql":{"description":"CREATE TABLE SQL","type":"string"}},"required":["sql"],"type":"object"},{"additionalProperties":false,"properties":{"dbml":{"description":"DBML text","type":"string"}},"required":["dbml"],"type":"object"}],"description":"Comparison target — exactly one of a local file, a server ERD, SQL text, or DBML text"}},"required":["before","after"],"type":"object"},"name":"diff_erds"},{"description":"Generates a migration (ALTER) script from the physical diff between a baseline and the current model — renames stay renames (stable-id matching), destructive changes come commented out, unsupported changes are flagged as [WARNING] comments. Baselines from the same project lineage ({file}/{erdId}) preserve renames; freshly parsed SQL/DBML text falls back to name matching. Pro plan required; requires login.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"after":{"anyOf":[{"$ref":"#/properties/before/anyOf/0"},{"$ref":"#/properties/before/anyOf/1"},{"$ref":"#/properties/before/anyOf/2"},{"$ref":"#/properties/before/anyOf/3"}],"description":"Target state (the current model)"},"before":{"anyOf":[{"additionalProperties":false,"properties":{"file":{"description":"Path to a local .erd.json file","type":"string"}},"required":["file"],"type":"object"},{"additionalProperties":false,"properties":{"erdId":{"description":"Server ERD id (from list_erds)","type":"string"}},"required":["erdId"],"type":"object"},{"additionalProperties":false,"properties":{"dialect":{"description":"Defaults to mysql","enum":["mysql","postgres","cubrid","oracle","sqlserver","sqlite","h2"],"type":"string"},"sql":{"description":"CREATE TABLE SQL","type":"string"}},"required":["sql"],"type":"object"},{"additionalProperties":false,"properties":{"dbml":{"description":"DBML text","type":"string"}},"required":["dbml"],"type":"object"}],"description":"Baseline (e.g. the state last applied to the database)"},"dialect":{"$ref":"#/properties/before/anyOf/2/properties/dialect","description":"SQL dialect"}},"required":["before","after"],"type":"object"},"name":"export_alter_sql"},{"description":"Lists server ERDs (owned/shared). Owner and shared editors can both write. Requires login — `npx sqemo-mcp login`.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"list_erds"},{"description":"Lists my workspaces (owner first) and whether a standard (word list + naming rules) exists. Requires login.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"list_workspaces"},{"description":"Proposes a new word for the workspace standard's word list (the owner approves/rejects in the web app). source is {workspaceId} or a standard-linked ERD ({file}/{erdId}, resolved via glossaryLink). Registered words return already_exists; a pending duplicate returns already_proposed. Requires login.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"abbreviation":{"type":"string"},"description":{"type":"string"},"englishName":{"type":"string"},"logicalWord":{"description":"Logical word to register","type":"string"},"note":{"description":"Reason for the proposal","type":"string"},"physicalWord":{"description":"Physical word — normalized to uppercase","type":"string"},"source":{"anyOf":[{"additionalProperties":false,"properties":{"file":{"description":"Path to a local .erd.json file","type":"string"}},"required":["file"],"type":"object"},{"additionalProperties":false,"properties":{"erdId":{"description":"Server ERD id (from list_erds)","type":"string"}},"required":["erdId"],"type":"object"},{"additionalProperties":false,"properties":{"workspaceId":{"description":"Workspace id (from list_workspaces)","type":"string"}},"required":["workspaceId"],"type":"object"}],"description":"Dictionary source — exactly one of a local file, a server ERD, or a workspace standard"}},"required":["source","logicalWord","physicalWord"],"type":"object"},"name":"propose_dictionary_word"},{"description":"Lists the workspace-standard proposal queue (word/domain, newest first, mine = my proposals). Filterable by status. Requires login.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"source":{"anyOf":[{"additionalProperties":false,"properties":{"file":{"description":"Path to a local .erd.json file","type":"string"}},"required":["file"],"type":"object"},{"additionalProperties":false,"properties":{"erdId":{"description":"Server ERD id (from list_erds)","type":"string"}},"required":["erdId"],"type":"object"},{"additionalProperties":false,"properties":{"workspaceId":{"description":"Workspace id (from list_workspaces)","type":"string"}},"required":["workspaceId"],"type":"object"}],"description":"Dictionary source — exactly one of a local file, a server ERD, or a workspace standard"},"status":{"enum":["pending","approved","rejected"],"type":"string"}},"required":["source"],"type":"object"},"name":"list_proposals"},{"description":"Withdraws your own pending proposal. Proposals by others or already processed return not_found. Requires login.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"proposalId":{"description":"Proposal id from list_proposals","type":"string"}},"required":["proposalId"],"type":"object"},"name":"withdraw_proposal"},{"description":"Creates a new ERD — empty or from SQL/DBML text. With a {file} target it saves locally; with {server:true} it saves to the server (login required). Pass workspaceId to bind it to that workspace's naming standard from the start.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"dbml":{"description":"DBML text (mutually exclusive with sql)","type":"string"},"dialect":{"description":"SQL dialect","enum":["mysql","postgres","cubrid","oracle","sqlserver","sqlite","h2"],"type":"string"},"name":{"type":"string"},"sql":{"description":"CREATE TABLE SQL (mutually exclusive with dbml)","type":"string"},"target":{"anyOf":[{"additionalProperties":false,"properties":{"file":{"description":"Local .erd.json path to save to","type":"string"}},"required":["file"],"type":"object"},{"additionalProperties":false,"properties":{"server":{"const":true,"description":"Save as a new server ERD","type":"boolean"}},"required":["server"],"type":"object"}]},"workspaceId":{"description":"Workspace id (from list_workspaces) whose standard the new ERD links to — its word list, naming rules and domains are pulled in immediately, so physical names follow the team standard. Requires login. Omit for a standalone ERD with an empty word list.","type":"string"}},"required":["target"],"type":"object"},"name":"create_erd"},{"description":"Fully replaces an existing ERD with the SQL parse result (project id preserved). Rejected as invalid_source when no tables are found.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"dialect":{"description":"Defaults to mysql","enum":["mysql","postgres","cubrid","oracle","sqlserver","sqlite","h2"],"type":"string"},"source":{"anyOf":[{"additionalProperties":false,"properties":{"file":{"description":"Path to a local .erd.json file","type":"string"}},"required":["file"],"type":"object"},{"additionalProperties":false,"properties":{"erdId":{"description":"Server ERD id (from list_erds)","type":"string"}},"required":["erdId"],"type":"object"}],"description":"Target ERD — exactly one of a local file ({file}) or a server ERD ({erdId})"},"sql":{"type":"string"}},"required":["source","sql"],"type":"object"},"name":"import_sql"},{"description":"Fully replaces an existing ERD with the DBML parse result (project id preserved, dialect fixed to mysql). Rejected as invalid_source when no tables are found.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"dbml":{"type":"string"},"source":{"anyOf":[{"additionalProperties":false,"properties":{"file":{"description":"Path to a local .erd.json file","type":"string"}},"required":["file"],"type":"object"},{"additionalProperties":false,"properties":{"erdId":{"description":"Server ERD id (from list_erds)","type":"string"}},"required":["erdId"],"type":"object"}],"description":"Target ERD — exactly one of a local file ({file}) or a server ERD ({erdId})"}},"required":["source","dbml"],"type":"object"},"name":"import_dbml"},{"description":"Imports the schema of a live PostgreSQL/MySQL database into an existing ERD (full replace, project id preserved). Read-only — queries only the information schema/catalog; never reads table data. The database URL is used by this local process only and is never sent to Sqemo servers. Pro plan required; requires login.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"dbSchema":{"description":"Schema to read (postgres default: public; mysql default: database in the URL)","type":"string"},"source":{"anyOf":[{"additionalProperties":false,"properties":{"file":{"description":"Path to a local .erd.json file","type":"string"}},"required":["file"],"type":"object"},{"additionalProperties":false,"properties":{"erdId":{"description":"Server ERD id (from list_erds)","type":"string"}},"required":["erdId"],"type":"object"}],"description":"Target ERD — exactly one of a local file ({file}) or a server ERD ({erdId})"},"url":{"description":"postgres:// or mysql:// connection URL (credentials stay local)","type":"string"}},"required":["source","url"],"type":"object"},"name":"introspect_db"},{"description":"Checks whether a live database (url) or a schema dump (schemaSql) has drifted from the ERD's physical model. Errors: missing/extra tables and columns, PK/FK/NOT NULL mismatches. Warnings (strict promotes to errors): type/unique/auto-increment representation differences. Read-only; the database URL never leaves this process. Pro plan required; requires login.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"dbSchema":{"description":"Schema to read (url only)","type":"string"},"dialect":{"description":"Dump dialect (required with schemaSql)","enum":["mysql","postgres","cubrid","oracle","sqlserver","sqlite","h2"],"type":"string"},"ignore":{"description":"Table name globs to ignore on the DB side, e.g. flyway_*","items":{"type":"string"},"type":"array"},"schemaSql":{"description":"Schema dump text, e.g. pg_dump -s output","type":"string"},"source":{"anyOf":[{"additionalProperties":false,"properties":{"file":{"description":"Path to a local .erd.json file","type":"string"}},"required":["file"],"type":"object"},{"additionalProperties":false,"properties":{"erdId":{"description":"Server ERD id (from list_erds)","type":"string"}},"required":["erdId"],"type":"object"}],"description":"Target ERD — exactly one of a local file ({file}) or a server ERD ({erdId})"},"strict":{"description":"Promote warnings to errors","type":"boolean"},"url":{"description":"postgres:// or mysql:// URL (exactly one of url/schemaSql)","type":"string"}},"required":["source"],"type":"object"},"name":"check_db_drift"},{"description":"Creates an entity (no entityId, logicalName required) or updates one (entityId given, only provided fields change). The physical name is derived automatically.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"description":{"type":"string"},"entityId":{"type":"string"},"logicalName":{"type":"string"},"source":{"anyOf":[{"additionalProperties":false,"properties":{"file":{"description":"Path to a local .erd.json file","type":"string"}},"required":["file"],"type":"object"},{"additionalProperties":false,"properties":{"erdId":{"description":"Server ERD id (from list_erds)","type":"string"}},"required":["erdId"],"type":"object"}],"description":"Target ERD — exactly one of a local file ({file}) or a server ERD ({erdId})"}},"required":["source"],"type":"object"},"name":"upsert_entity"},{"description":"Deletes an entity (including its relationships).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"entityId":{"type":"string"},"source":{"anyOf":[{"additionalProperties":false,"properties":{"file":{"description":"Path to a local .erd.json file","type":"string"}},"required":["file"],"type":"object"},{"additionalProperties":false,"properties":{"erdId":{"description":"Server ERD id (from list_erds)","type":"string"}},"required":["erdId"],"type":"object"}],"description":"Target ERD — exactly one of a local file ({file}) or a server ERD ({erdId})"}},"required":["source","entityId"],"type":"object"},"name":"delete_entity"},{"description":"Creates an attribute (no attributeId, logicalName required) or updates one (attributeId given, only provided fields change). primaryKey=true forces nullable=false and propagates child FKs. With a domain, the domain decides the data type. autoIncrement marks the column as identity — exported as AUTO_INCREMENT (mysql/cubrid/h2), IDENTITY(1,1) (sqlserver), or GENERATED BY DEFAULT AS IDENTITY (postgres/oracle); it applies to primary keys only.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"attributeId":{"type":"string"},"autoIncrement":{"type":"boolean"},"dataType":{"type":"string"},"defaultValue":{"description":"Raw SQL default, emitted verbatim after DEFAULT — quote it yourself for string/date literals: \"'N'\" not \"N\". Unquoted values are treated as SQL expressions (`0`, `CURRENT_TIMESTAMP`), so a bare word becomes an identifier reference and produces invalid DDL.","type":"string"},"domain":{"type":"string"},"entityId":{"type":"string"},"logicalName":{"type":"string"},"nullable":{"type":"boolean"},"primaryKey":{"type":"boolean"},"source":{"anyOf":[{"additionalProperties":false,"properties":{"file":{"description":"Path to a local .erd.json file","type":"string"}},"required":["file"],"type":"object"},{"additionalProperties":false,"properties":{"erdId":{"description":"Server ERD id (from list_erds)","type":"string"}},"required":["erdId"],"type":"object"}],"description":"Target ERD — exactly one of a local file ({file}) or a server ERD ({erdId})"},"unique":{"type":"boolean"}},"required":["source","entityId"],"type":"object"},"name":"upsert_attribute"},{"description":"Bulk form of upsert_attribute: creates/updates many attributes — across any number of entities — in ONE load/save (use this instead of calling upsert_attribute in a loop; each single call costs several server requests and counts against the per-minute cap). Same per-item semantics, applied in order (primaryKey propagates child FKs; a domain decides the data type); all-or-nothing; results returned in input order.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"items":{"items":{"additionalProperties":false,"properties":{"attributeId":{"type":"string"},"autoIncrement":{"type":"boolean"},"dataType":{"type":"string"},"defaultValue":{"description":"Raw SQL default, emitted verbatim — quote string literals yourself (\"'N'\").","type":"string"},"domain":{"type":"string"},"entityId":{"type":"string"},"logicalName":{"type":"string"},"nullable":{"type":"boolean"},"primaryKey":{"type":"boolean"},"unique":{"type":"boolean"}},"required":["entityId"],"type":"object"},"minItems":1,"type":"array"},"source":{"anyOf":[{"additionalProperties":false,"properties":{"file":{"description":"Path to a local .erd.json file","type":"string"}},"required":["file"],"type":"object"},{"additionalProperties":false,"properties":{"erdId":{"description":"Server ERD id (from list_erds)","type":"string"}},"required":["erdId"],"type":"object"}],"description":"Target ERD — exactly one of a local file ({file}) or a server ERD ({erdId})"}},"required":["source","items"],"type":"object"},"name":"upsert_attributes"},{"description":"Deletes an attribute.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"attributeId":{"type":"string"},"entityId":{"type":"string"},"source":{"anyOf":[{"additionalProperties":false,"properties":{"file":{"description":"Path to a local .erd.json file","type":"string"}},"required":["file"],"type":"object"},{"additionalProperties":false,"properties":{"erdId":{"description":"Server ERD id (from list_erds)","type":"string"}},"required":["erdId"],"type":"object"}],"description":"Target ERD — exactly one of a local file ({file}) or a server ERD ({erdId})"}},"required":["source","entityId","attributeId"],"type":"object"},"name":"delete_attribute"},{"description":"Creates a relationship (no relationshipId, source/targetEntityId required — FKs derived automatically) or updates one (relationshipId given). On update, sourceEnd/targetEnd take precedence; otherwise ends are re-derived from cardinality. onDelete/onUpdate set the FK referential actions ('noAction' reverts to the DB default); constraintName sets the FK constraint name (empty string reverts to auto-generation).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"cardinality":{"enum":["1:1","1:N","N:M"],"type":"string"},"constraintName":{"type":"string"},"onDelete":{"enum":["cascade","setNull","setDefault","restrict","noAction"],"type":"string"},"onUpdate":{"$ref":"#/properties/onDelete"},"relationshipId":{"type":"string"},"relationshipType":{"enum":["identifying","nonIdentifying"],"type":"string"},"source":{"anyOf":[{"additionalProperties":false,"properties":{"file":{"description":"Path to a local .erd.json file","type":"string"}},"required":["file"],"type":"object"},{"additionalProperties":false,"properties":{"erdId":{"description":"Server ERD id (from list_erds)","type":"string"}},"required":["erdId"],"type":"object"}],"description":"Target ERD — exactly one of a local file ({file}) or a server ERD ({erdId})"},"sourceEnd":{"enum":["one","zeroOrOne","oneOrMany","zeroOrMany"],"type":"string"},"sourceEntityId":{"type":"string"},"targetEnd":{"$ref":"#/properties/sourceEnd"},"targetEntityId":{"type":"string"}},"required":["source"],"type":"object"},"name":"upsert_relationship"},{"description":"Deletes a relationship (including derived FKs).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"relationshipId":{"type":"string"},"source":{"anyOf":[{"additionalProperties":false,"properties":{"file":{"description":"Path to a local .erd.json file","type":"string"}},"required":["file"],"type":"object"},{"additionalProperties":false,"properties":{"erdId":{"description":"Server ERD id (from list_erds)","type":"string"}},"required":["erdId"],"type":"object"}],"description":"Target ERD — exactly one of a local file ({file}) or a server ERD ({erdId})"}},"required":["source","relationshipId"],"type":"object"},"name":"delete_relationship"},{"description":"Creates a domain (upsert by name) or updates one (domainId given). Existing description preserved when omitted.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"dataType":{"type":"string"},"description":{"type":"string"},"domainId":{"type":"string"},"name":{"type":"string"},"source":{"anyOf":[{"additionalProperties":false,"properties":{"file":{"description":"Path to a local .erd.json file","type":"string"}},"required":["file"],"type":"object"},{"additionalProperties":false,"properties":{"erdId":{"description":"Server ERD id (from list_erds)","type":"string"}},"required":["erdId"],"type":"object"}],"description":"Target ERD — exactly one of a local file ({file}) or a server ERD ({erdId})"}},"required":["source","name","dataType"],"type":"object"},"name":"upsert_domain"},{"description":"Bulk form of upsert_domain: creates or updates many domains in ONE load/save (use this instead of calling upsert_domain in a loop — each single call costs several server requests and counts against the per-minute cap). Same per-item semantics; later duplicates in the batch win; all-or-nothing.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"domains":{"items":{"additionalProperties":false,"properties":{"dataType":{"type":"string"},"description":{"type":"string"},"domainId":{"type":"string"},"name":{"type":"string"}},"required":["name","dataType"],"type":"object"},"minItems":1,"type":"array"},"source":{"anyOf":[{"additionalProperties":false,"properties":{"file":{"description":"Path to a local .erd.json file","type":"string"}},"required":["file"],"type":"object"},{"additionalProperties":false,"properties":{"erdId":{"description":"Server ERD id (from list_erds)","type":"string"}},"required":["erdId"],"type":"object"}],"description":"Target ERD — exactly one of a local file ({file}) or a server ERD ({erdId})"}},"required":["source","domains"],"type":"object"},"name":"upsert_domains"},{"description":"Deletes a domain (attributes referencing it are unlinked).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"domainId":{"type":"string"},"source":{"anyOf":[{"additionalProperties":false,"properties":{"file":{"description":"Path to a local .erd.json file","type":"string"}},"required":["file"],"type":"object"},{"additionalProperties":false,"properties":{"erdId":{"description":"Server ERD id (from list_erds)","type":"string"}},"required":["erdId"],"type":"object"}],"description":"Target ERD — exactly one of a local file ({file}) or a server ERD ({erdId})"}},"required":["source","domainId"],"type":"object"},"name":"delete_domain"},{"description":"Adds a glossary entry (upsert by logicalWord) or updates one (entryId given). Physical words are normalized to uppercase. Standard-linked (glossaryLink) dictionaries are rejected with dictionary_is_linked.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"abbreviation":{"type":"string"},"description":{"type":"string"},"englishName":{"type":"string"},"entryId":{"type":"string"},"logicalWord":{"type":"string"},"physicalWord":{"type":"string"},"source":{"anyOf":[{"additionalProperties":false,"properties":{"file":{"description":"Path to a local .erd.json file","type":"string"}},"required":["file"],"type":"object"},{"additionalProperties":false,"properties":{"erdId":{"description":"Server ERD id (from list_erds)","type":"string"}},"required":["erdId"],"type":"object"}],"description":"Target ERD — exactly one of a local file ({file}) or a server ERD ({erdId})"}},"required":["source","logicalWord","physicalWord"],"type":"object"},"name":"upsert_dictionary_word"},{"description":"Bulk form of upsert_dictionary_word: adds or updates many glossary entries in ONE load/save (use this instead of calling upsert_dictionary_word in a loop — each single call costs several server requests and counts against the per-minute cap). Same per-item semantics (upsert by logicalWord, physical words uppercased); later duplicates in the batch win; all-or-nothing; standard-linked dictionaries rejected with dictionary_is_linked.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"entries":{"items":{"additionalProperties":false,"properties":{"abbreviation":{"type":"string"},"description":{"type":"string"},"englishName":{"type":"string"},"entryId":{"type":"string"},"logicalWord":{"type":"string"},"physicalWord":{"type":"string"}},"required":["logicalWord","physicalWord"],"type":"object"},"minItems":1,"type":"array"},"source":{"anyOf":[{"additionalProperties":false,"properties":{"file":{"description":"Path to a local .erd.json file","type":"string"}},"required":["file"],"type":"object"},{"additionalProperties":false,"properties":{"erdId":{"description":"Server ERD id (from list_erds)","type":"string"}},"required":["erdId"],"type":"object"}],"description":"Target ERD — exactly one of a local file ({file}) or a server ERD ({erdId})"}},"required":["source","entries"],"type":"object"},"name":"upsert_dictionary_words"},{"description":"Deletes a glossary entry. Standard-linked (glossaryLink) dictionaries are rejected with dictionary_is_linked.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"entryId":{"type":"string"},"source":{"anyOf":[{"additionalProperties":false,"properties":{"file":{"description":"Path to a local .erd.json file","type":"string"}},"required":["file"],"type":"object"},{"additionalProperties":false,"properties":{"erdId":{"description":"Server ERD id (from list_erds)","type":"string"}},"required":["erdId"],"type":"object"}],"description":"Target ERD — exactly one of a local file ({file}) or a server ERD ({erdId})"}},"required":["source","entryId"],"type":"object"},"name":"delete_dictionary_word"},{"description":"Partially updates the naming rules (delimiter, case, unknown-word handling, self-reference role prefix). Existing physical names are not regenerated retroactively (noted in warnings) — set the rules before modelling.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"casing":{"enum":["upper","lower"],"type":"string"},"selfReferencePrefix":{"description":"Role prefix for self-referencing FK names, keeping them distinct from the PK (e.g. 'Parent' → 'Parent Post Number' → PRNT_POST_NO). It is resolved through the word list like any other word, so register it first. Defaults to 'Parent' when unset or blank; projects created before that default keep the prefix they were built with.","type":"string"},"separator":{"type":"string"},"source":{"anyOf":[{"additionalProperties":false,"properties":{"file":{"description":"Path to a local .erd.json file","type":"string"}},"required":["file"],"type":"object"},{"additionalProperties":false,"properties":{"erdId":{"description":"Server ERD id (from list_erds)","type":"string"}},"required":["erdId"],"type":"object"}],"description":"Target ERD — exactly one of a local file ({file}) or a server ERD ({erdId})"},"unknownWordMode":{"enum":["keep","romanize","warn"],"type":"string"}},"required":["source"],"type":"object"},"name":"update_naming_rules"},{"description":"Auto-arranges entities by relationships (dagre LR). Entities with no relationship are placed in a grid below the connected ones instead of a single vertical column (2.8.2+). v5 has a single shared layout (no separate logical/physical placement — the removed `view` parameter had no other effect). Reference copies, notes, and relationship waypoints are not moved.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"source":{"anyOf":[{"additionalProperties":false,"properties":{"file":{"description":"Path to a local .erd.json file","type":"string"}},"required":["file"],"type":"object"},{"additionalProperties":false,"properties":{"erdId":{"description":"Server ERD id (from list_erds)","type":"string"}},"required":["erdId"],"type":"object"}],"description":"Target ERD — exactly one of a local file ({file}) or a server ERD ({erdId})"}},"required":["source"],"type":"object"},"name":"auto_layout"}]}}}
