compare_entities
Compare two entities by evaluating shared connections, direct relationships, and path distance. Input entity IDs to analyze links.
Instructions
Compare two entities: shared connections, direct relationships, path distance. Example: compare_entities(entity_a='company:NVDA', entity_b='company:AMD')
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity_a | Yes | First entity ID | |
| entity_b | Yes | Second entity ID |
Implementation Reference
- graphite_mcp/server.py:121-132 (registration)Tool registration in the list_tools() function — defines the name, description, and inputSchema for 'compare_entities'
Tool( name="compare_entities", description="Compare two entities: shared connections, direct relationships, path distance. Example: compare_entities(entity_a='company:NVDA', entity_b='company:AMD')", inputSchema={ "type": "object", "properties": { "entity_a": {"type": "string", "description": "First entity ID"}, "entity_b": {"type": "string", "description": "Second entity ID"}, }, "required": ["entity_a", "entity_b"], }, ), - graphite_mcp/server.py:174-178 (handler)Handler logic in call_tool() — calls the REST API endpoint /graph/compare with params 'a' and 'b' from the arguments
elif name == "compare_entities": result = await _get("/graph/compare", params={ "a": arguments["entity_a"], "b": arguments["entity_b"], })