# E2B Grok API Evaluation

**Category:** Sandboxes
**Score:** 80 (B)

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

## Summary

| Metric | Value |
|--------|-------|
| Status | completed |
| Overall score | 80 |
| Grade | B |
| Eval score | 72 |
| Discovery score | 100 |
| Cost | $0.62 |
| Runtime | 2m 39s |
| Tool calls | 30 |
| Errors | 0 |
| Tokens used | 641785 |
| Success | Yes |

## Agent-Readiness Checklist

| Signal | Evidence |
|--------|----------|
| Context7 | https://context7.com/e2b-dev/e2b |
| llms.txt | https://docs.e2b.dev/llms.txt |
| MCP server | https://github.com/e2b-dev/mcp-server |
| Typed SDK | https://github.com/e2b-dev/E2B/blob/main/packages/js-sdk/package.json |
| OpenAPI | https://e2b.dev/openapi.json |
| Agent skills | https://github.com/e2b-dev/E2B/blob/main/CLAUDE.md |
| CLI | https://github.com/e2b-dev/E2B/tree/main/packages/cli |

## Evaluation Prompt

````text

# Task
Using https://e2b.dev/[REDACTED:TENANT], complete the following task:

Using E2B, build me a script that runs a multi-step computation inside a E2B sandbox:
        
1. Use the E2B Python SDK to create/connect to a sandbox
2. Inside the sandbox, execute the following pipeline:
   a. Install the `sympy` package using pip
   b. Run a Python script that:
      - Computes the 10th Fibonacci number iteratively
      - Uses sympy to check if that number is prime
      - Prints the result as JSON: {"fibonacci_10": <number>, "is_prime": <boolean>}
3. Capture the sandbox execution output and print it to stdout

All computation must run inside the E2B sandbox, not in your local Python process. Do not use subprocess — use the E2B SDK's execution primitives. 

## Execution
After creating the script, run it to verify it works:
```bash
cd /home/daytona/[REDACTED:TENANT] && 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 | $0.62 ($0.40–0.70, expensive) |
| Time | Yes | 0 | 0 | 159s (2–3min, good) |
| Efficiency | No | 0 | 0 | 30 tool calls (>25, inefficient) |
| Found Docs | Yes | 0 | — | Touched [REDACTED:TENANT] at e2b.dev: yes (15 matching tool calls) |
| Zero Errors | Yes | 0 | — | No errors in tool outputs |
| 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 | 31 |
| Tool call traces | 30 |
| Generated files | 1 |
| Exit code | 0 |
| Completed at | 2026-10-19T08:04:19.954511+00:00 |

### Generated Files

- /home/daytona/app/sandbox_fibonacci.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/e2b
