mcp-agensgraph-data-modeling
v0.3.1AgensGraph data-modeling MCP server (validate models, generate ingest/constraint Cypher, Arrows/Mermaid).
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
validate_node
Validate a single node. Returns True if the node is valid, otherwise raises a ValueError. If return_validated is True, returns the validated node.
| Parameter | Type | Description |
|---|---|---|
node * | object | A AgensGraph Node. |
return_validated | boolean |
validate_relationship
Validate a single relationship. Returns True if the relationship is valid, otherwise raises a ValueError. If return_validated is True, returns the validated relationship.
| Parameter | Type | Description |
|---|---|---|
relationship * | object | A AgensGraph Relationship. |
return_validated | boolean |
validate_data_model
Validate the entire data model. Returns True if the data model is valid, otherwise raises a ValueError. If return_validated is True, returns the validated data model.
| Parameter | Type | Description |
|---|---|---|
data_model * | object | A AgensGraph Graph Data Model. |
return_validated | boolean |
load_from_arrows_json
Load a data model from the Arrows web application format. Returns a data model as a JSON string.
| Parameter | Type | Description |
|---|---|---|
arrows_data_model_dict * | object |
export_to_arrows_json
Export the data model to the Arrows web application format. Returns a JSON string. This should be presented to the user as an artifact if possible.
| Parameter | Type | Description |
|---|---|---|
data_model * | object | A AgensGraph Graph Data Model. |
get_mermaid_config_str
Get the Mermaid configuration string for the data model. This may be visualized in Claude Desktop and other applications with Mermaid support.
| Parameter | Type | Description |
|---|---|---|
data_model * | object | A AgensGraph Graph Data Model. |
get_node_cypher_ingest_query
Get the Cypher query to ingest a list of Node records into a AgensGraph database. This should be used to ingest data into a AgensGraph database. This is a parameterized Cypher query. The list of records is bound to the parameter named `records`, and the placeholder in the query is written `%(records)s` -- that is the form the database driver binds. `$records` is not rewritten by anything and reaches the server as written, where it is a syntax error.
| Parameter | Type | Description |
|---|---|---|
node * | object | The node to get the Cypher query for. |
get_relationship_cypher_ingest_query
Get the Cypher query to ingest a list of Relationship records into a AgensGraph database. This should be used to ingest data into a AgensGraph database. This is a parameterized Cypher query. The list of records is bound to the parameter named `records`, and the placeholder in the query is written `%(records)s` -- that is the form the database driver binds. `$records` is not rewritten by anything and reaches the server as written, where it is a syntax error. The records must contain the Relationship properties, if any, as well as the sourceId and targetId properties of the start and end nodes r…
| Parameter | Type | Description |
|---|---|---|
data_model * | object | The data model snippet that contains the relationship, start node and end node. |
relationship_end_node_label * | string | The label of the relationship end node. |
relationship_start_node_label * | string | The label of the relationship start node. |
relationship_type * | string | The type of the relationship to get the Cypher query for. |
get_constraints_cypher_queries
Get the statements that declare the data model's labels and make each node key unique. Run them one at a time, in the order given: each item is one statement, and none of them is to be split on a semicolon, because a label may hold one. They can all be run again. A relationship gets its label declared but no uniqueness asserted, since a relationship key identifies one relationship between one pair of endpoints rather than one across the whole label.
| Parameter | Type | Description |
|---|---|---|
data_model * | object | A AgensGraph Graph Data Model. |
get_example_data_model
Get an example graph data model from the available templates. Returns a DataModel object and the Mermaid visualization configuration for the example graph data model.
| Parameter | Type | Description |
|---|---|---|
example_name * | string | Name of the example to load: 'patient_journey', 'supply_chain', 'software_dependency', 'oil_gas_monitoring', 'customer_360', 'fraud_aml', or 'health_insurance_fraud' |
list_example_data_models
List all available example data models with descriptions. Returns a dictionary with example names and their descriptions.