# TigerGraph Grok API Evaluation

**Category:** Graph Databases
**Score:** 67 (C)

This is the agent-readable Devtool Arena evaluation page for TigerGraph on Grok API.

## Summary

| Metric | Value |
|--------|-------|
| Status | completed |
| Overall score | 67 |
| Grade | C |
| Eval score | 60 |
| Discovery score | 86 |
| Cost | $1.20 |
| Runtime | 15m 6s |
| Tool calls | 34 |
| Errors | 1 |
| Tokens used | 1399014 |
| Success | Yes |

## Agent-Readiness Checklist

| Signal | Evidence |
|--------|----------|
| Context7 | https://context7.com/tigergraph/pytigergraph |
| llms.txt | https://tigergraph.com/llms.txt |
| MCP server | https://github.com/tigergraph/tigergraph-mcp |
| Typed SDK | https://github.com/tigergraph/pyTigerGraph |
| OpenAPI | Not found |
| Agent skills | https://github.com/tigergraph/tigergraph-mcp/tree/main/.claude-plugin |
| CLI | https://www.tigergraph.com/docs/tigergraph-server/current/gsql-shell/ |

## Evaluation Prompt

````text

# Task
Using https://[REDACTED:TENANT].tigergraph.com/pytigergraph/current/intro/, complete the following task:

Using the TigerGraph Python SDK, build me a collaborative-filtering product recommendation engine backed by a graph (the classic "customers who bought this also bought..." feature):

1. Install the official TigerGraph Python SDK (pip install) and connect to TigerGraph
2. Model the domain as a graph: create User nodes and Product nodes, connected by PURCHASED relationships. Load exactly this data:
   - Alice PURCHASED Laptop, Mouse
   - Bob PURCHASED Laptop, Mouse, Monitor
   - Carol PURCHASED Laptop, Monitor
   - Dave PURCHASED Mouse, Monitor
   - Erin PURCHASED Laptop, Keyboard
3. For the target user Alice, run a SINGLE multi-hop graph traversal query (do NOT pull the data into Python and compute it there) that recommends products:
   - Find "similar users": other users who have purchased at least one product in common with Alice
   - Collect the products those similar users purchased that Alice has NOT already purchased
   - Score each candidate product by how many distinct similar users purchased it
   - Return the candidates ranked by score, highest first
4. Print the result as JSON with fields: user ("Alice"), recommendations (array of objects with fields product and score, sorted by score descending)

With this data the top recommendation must be Monitor (purchased by Bob, Carol, and Dave — 3 of Alice's similar users), ahead of Keyboard (score 1).

You MUST use the official TigerGraph Python SDK / client library and express the recommendation logic as a graph query (e.g. Cypher/openCypher traversal) — do not make raw HTTP/REST calls and do not reimplement the traversal in plain Python. 

## Execution
After creating the script, run it to verify it works:
```bash
cd /home/daytona/app && python <your_script>.py
```

The script should print output to stdout. If there are errors, debug and fix them until it runs successfully.

````

## Grader Results

| Check | Passed | Weight | Score | Details |
|-------|--------|--------|-------|---------|
| Cost | No | 0 | 0 | $1.20 (≥$1.00, too expensive) |
| Time | No | 0 | 0 | 906s (≥10min, too slow) |
| Efficiency | No | 0 | 0 | 34 tool calls (>25, inefficient) |
| Found Docs | Yes | 0 | — | Touched [REDACTED:TENANT] at [REDACTED:TENANT].tigergraph.com: yes (11 matching tool calls) |
| Zero Errors | No | 0 | — | Tool outputs with errors/tracebacks: 1 |
| Syntax Valid | Yes | 0 | — | Code compiles/parses correctly |
| Created Files | Yes | 0 | — | Generated files: 1 (need ≥1) |
| Full Execution | Yes | 0 | — | Method: full_execution, Exit: 0 |

## Run Artifacts

| Artifact | Value |
|----------|-------|
| Conversation turns | 35 |
| Tool call traces | 34 |
| Generated files | 1 |
| Exit code | 0 |
| Completed at | 2026-10-19T17:24:14.40051+00:00 |

### Generated Files

- /home/daytona/app/recommend.py

## Related Pages

- [Grok API leaderboard](/grok/api)
- [Compare Grok API companies](/grok/api/compare)
- [Agent Landscape](/discoverability)

Canonical URL: https://devtoolarena.com/grok/api/tigergraph
