hugegraph-mcp
v1.7.1FastMCP server that exposes HugeGraph schema & Gremlin tools over MCP/STDIO
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
inspect_graph_tool
检视 HugeGraph 服务器状态、schema 摘要和 AI 状态。 Capability: READ. 推荐作为连接后第一个调用的工具。默认不执行全图 count; include_counts=true 时才返回 vertex_count/edge_count 数值, 否则这两个字段保留为 null。
| Parameter | Type | Description |
|---|---|---|
include_counts | boolean | |
include_raw_schema | boolean |
get_write_status_tool
Return the durable plan, operation, and receipt outcome by plan_id.
| Parameter | Type | Description |
|---|---|---|
plan_id * | string |
confirm_write_tool
Confirm exactly one immutable server-persisted plan by plan_id only.
| Parameter | Type | Description |
|---|---|---|
plan_id * | string |
reconcile_write_tool
Reconcile an UNKNOWN or PARTIAL plan by plan_id using read-only checks.
| Parameter | Type | Description |
|---|---|---|
plan_id * | string |
inspect_schema_tool
Inspect HugeGraph schema objects and relations. Capability: READ. filter_kind values: property_key, vertex_label, edge_label, index_label. filter_name requires filter_kind and selects one schema object by name. include_raw_schema returns the raw HugeGraph schema; include_relations and include_index_labels control relation/index sections.
| Parameter | Type | Description |
|---|---|---|
filter_kind | ||
filter_name | ||
include_index_labels | boolean | |
include_raw_schema | boolean | |
include_relations | boolean |
query_graph_data_tool
Query HugeGraph vertices or edges by typed GraphManager operations. Capability: READ. target values: vertex, edge. operation values and required fields: - get_by_id: requires id. - get_by_ids: requires non-empty ids. - page: vertex requires label; edge may use label and/or vertex_id+direction. - condition: exact-match properties only; no Gremlin full-scan fallback. limit defaults to 100, rejects values above 500, and respects configured result limits. Oversized ID batches/results are rejected, not truncated. For edge page/condition, direction is required when vertex_id is provided.
| Parameter | Type | Description |
|---|---|---|
operation * | string | |
target * | string | |
direction | ||
id | ||
ids | ||
label | ||
limit | ||
page | ||
properties | ||
vertex_id |
generate_gremlin_tool
Generate Gremlin without executing it. Capability: GENERATE. Every public raw Gremlin execution path is disabled until the hard resource budget contract is verified, so execute=true currently returns FEATURE_DISABLED. limit_policy remains as a compatibility parameter.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
execute | boolean | |
limit_policy | string | |
output_types |
execute_gremlin_read_tool
Registered compatibility tool; raw read execution is currently disabled. Public raw Gremlin remains FEATURE_DISABLED until the deployment proves the complete server timeout/result cap, streaming byte cap, and readonly-principal contract. Use query_graph_data_tool for executable bounded reads.
| Parameter | Type | Description |
|---|---|---|
gremlin_query * | string | |
limit_policy | string |
extract_graph_data_tool
V1 稳定工具:自然语言文本 → 候选 graph_data(不写入)。 返回提取的顶点和边数据,供后续导入使用。 graph_schema 可传入 HugeGraph schema;为空时从当前 HugeGraph 读取 live schema, 并在 schema_ref 中返回图目标和 schema fingerprint。
| Parameter | Type | Description |
|---|---|---|
text * | string | |
example_prompt | ||
graph_schema |
design_schema_tool
V1 稳定工具:schema 设计指导。 提供 schema 设计建议和最佳实践。
| Parameter | Type | Description |
|---|---|---|
operations |
apply_schema_tool
Schema design/validate/dry_run/apply entry point. Capability: SCHEMA_WRITE for mode=apply; READ-like validation for other modes. mode values: - design: schema design guidance; operations optional. - validate: validate operations against live schema. - dry_run: validate exactly one P0a create operation and issue a persisted plan. - apply: deprecated compatibility confirmation for one create operation. New clients confirm the returned plan_id with confirm_write_tool. Supports create_property_key, create_vertex_label, create_edge_label. Rejects create_index_label, schema append/eliminate,…
| Parameter | Type | Description |
|---|---|---|
mode * | string | |
confirm | boolean | |
expires_at | ||
nonce | ||
operations | ||
plan_hash |
mutate_graph_properties_tool
Append or eliminate properties on one vertex or edge. Capability: DATA_WRITE. target values: vertex, edge. operation values: append, eliminate. Dry-run returns a before/after preview with confirmable=false. Confirmed mutation returns FEATURE_DISABLED because HugeGraph 1.7.0 lacks a backend-enforced atomic compare-and-set update.
| Parameter | Type | Description |
|---|---|---|
id * | ||
operation * | string | |
properties * | object | |
target * | string | |
confirm | boolean | |
dry_run | boolean | |
expires_at | ||
nonce | ||
plan_hash |
import_graph_data_tool
Extract or plan structured graph data import. mode="extract" returns candidate graph_data without writing. mode="ingest" only previews validated graph data: confirmable=false, preview_only=true, and no plan_id. Confirmation returns FEATURE_DISABLED without writing. mode="table" also returns FEATURE_DISABLED.
| Parameter | Type | Description |
|---|---|---|
mode * | string | |
confirm | boolean | |
dry_run | boolean | |
example_prompt | ||
expires_at | ||
graph_data | ||
graph_schema | ||
nonce | ||
plan_hash | ||
text |
delete_graph_data_tool
Preview exact delete_vertex or delete_edge operations. An exact edge delete can be confirmed by plan_id after dry-run. Isolated vertex deletion is preview-only and confirmation returns FEATURE_DISABLED because the backend lacks an atomic no-incident-edge condition. Bulk conditional and cascade deletion are unsupported.
| Parameter | Type | Description |
|---|---|---|
change_plan * | object | |
confirm | boolean | |
dry_run | boolean | |
expires_at | ||
nonce | ||
plan_hash |
refresh_vid_embeddings_tool
手动刷新 VID 嵌入 — 需 admin mode 且 readonly=false。
| Parameter | Type | Description |
|---|---|---|
confirm | boolean |
execute_gremlin_write_tool
Disabled direct Gremlin write pending a verified hard-budget contract. Admin mode and readonly=false remain necessary but are not sufficient.
| Parameter | Type | Description |
|---|---|---|
gremlin_query * | string |