Skip to content

MCP Tools

Model Management

  • sgraph_load_model(path){ model_id }
  • sgraph_get_model_overview(model_id, max_depth?, include_counts?)
  • sgraph_get_root_element(model_id)
  • sgraph_get_element(model_id, element_path)
  • sgraph_get_element_incoming_associations(model_id, element_path)
  • sgraph_get_element_outgoing_associations(model_id, element_path)
  • sgraph_search_elements_by_name(model_id, pattern, element_type?, scope_path?)
  • sgraph_search_elements_by_attributes(model_id, attribute_filters, scope_path?)
  • sgraph_get_elements_by_type(model_id, element_type, scope_path?)

Analysis

  • sgraph_get_subtree_dependencies(model_id, root_path, include_external?, max_depth?)
  • sgraph_get_dependency_chain(model_id, element_path, direction?, max_depth?)
  • sgraph_get_multiple_elements(model_id, element_paths[], additional_fields?)
  • sgraph_analyze_external_usage(model_id, scope_path?)

Example: Analyze External Usage (scoped)

{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"sgraph_analyze_external_usage","arguments":{"sgraph_analyze_external_usage":{"model_id":"<MODEL_ID>","scope_path":"/sgraph-and-mcp/sgraph-mcp-server"}}}}