# Modal Cursor API Evaluation

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

This is the agent-readable Devtool Arena evaluation page for Modal on Cursor API.

## Summary

| Metric | Value |
|--------|-------|
| Status | completed |
| Overall score | 82 |
| Grade | B |
| Eval score | 87 |
| Discovery score | 71 |
| Cost | $0.09 |
| Runtime | 1m 2s |
| Tool calls | 13 |
| Errors | 0 |
| Tokens used | 237867 |
| Success | Yes |

## Agent-Readiness Checklist

| Signal | Evidence |
|--------|----------|
| Context7 | https://context7.com/modal-labs/modal-client |
| llms.txt | https://modal.com/llms.txt |
| MCP server | Not found |
| Typed SDK | https://modal.com/docs/sdk/js/latest |
| OpenAPI | Not found |
| Agent skills | https://github.com/modal-labs/modal-client/blob/main/CLAUDE.md |
| CLI | https://modal.com/docs/reference/cli |

## Evaluation Prompt

````text

# Task
Using https://modal.com/docs/guide/sandboxes, complete the following task:

Using Modal, build me a script that runs a multi-step computation inside a Modal sandbox:
        
1. Use the Modal 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 Modal sandbox, not in your local Python process. Do not use subprocess — use the Modal SDK's execution primitives. 

## 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 | Yes | 0 | 1 | $0.09 (<$0.10, excellent) |
| Time | Yes | 0 | 1 | 62s (1–2min, great) |
| Efficiency | Yes | 0 | 0 | 13 tool calls (≤15, good) |
| Found Docs | Yes | 0 | — | Touched docs at modal.com: yes (3 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 | 16 |
| Tool call traces | 13 |
| Generated files | 1 |
| Exit code | 0 |
| Completed at | 2026-10-20T04:49:22.013434+00:00 |

### Generated Files

- /home/daytona/app/modal_fibonacci_sandbox.py

## Related Pages

- [Cursor API leaderboard](/cursor/api)
- [Compare Cursor API companies](/cursor/api/compare)
- [Agent Landscape](/discoverability)

Canonical URL: https://devtoolarena.com/cursor/api/modal
