Skip to main content
Glama

Graphistry MCP

Official
by graphistry

encode_point_icon

Set custom icons for nodes in graph visualizations by mapping node attributes to specific icons or text. Define categories, default icons, or bin continuous values for enhanced data representation with Graphistry MCP.

Instructions

Set node icon encoding for a graph using Graphistry's encode_point_icon API. Args: graph_id (str): The ID of the graph to modify. column (str): The node column to use for icon encoding (e.g., 'type', 'origin'). categorical_mapping (dict, optional): Map of category values to icon names or URLs. Example: {'macbook': 'laptop', 'Canada': 'flag-icon-ca'}. See FontAwesome 4 or ISO country codes for built-ins. default_mapping (str, optional): Icon to use for values not in categorical_mapping. Example: 'question'. as_text (bool, optional): If True, use text as the icon (for continuous binning or direct text display). continuous_binning (list, optional): List of [threshold, icon] pairs for binning continuous values. Example: [[33, 'low'], [66, 'mid'], [None, 'high']]. Returns: dict: { 'graph_id': ..., 'url': ... } with the updated visualization URL. Example: encode_point_icon(graph_id, column='type', categorical_mapping={'macbook': 'laptop', 'Canada': 'flag-icon-ca'}, default_mapping='question')

Input Schema

NameRequiredDescriptionDefault
as_textNo
categorical_mappingNo
columnYes
continuous_binningNo
default_mappingNo
graph_idYes

Input Schema (JSON Schema)

{ "properties": { "as_text": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": false, "title": "As Text" }, "categorical_mapping": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "default": null, "title": "Categorical Mapping" }, "column": { "title": "Column", "type": "string" }, "continuous_binning": { "anyOf": [ { "items": {}, "type": "array" }, { "type": "null" } ], "default": null, "title": "Continuous Binning" }, "default_mapping": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Default Mapping" }, "graph_id": { "title": "Graph Id", "type": "string" } }, "required": [ "graph_id", "column" ], "title": "encode_point_iconArguments", "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/graphistry/graphistry-mcp'

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