# Cloudflare Workers Gemini API Evaluation

**Category:** Sandboxes
**Score:** 37 (D)

This is the agent-readable Devtool Arena evaluation page for Cloudflare Workers on Gemini API.

## Summary

| Metric | Value |
|--------|-------|
| Status | completed |
| Overall score | 37 |
| Grade | D |
| Eval score | 10 |
| Discovery score | 100 |
| Cost | $3.12 |
| Runtime | 32m 34s |
| Tool calls | 106 |
| Errors | 3 |
| Tokens used | 6043262 |
| Success | No |

## Agent-Readiness Checklist

| Signal | Evidence |
|--------|----------|
| Context7 | https://context7.com/cloudflare/workers-sdk |
| llms.txt | https://developers.cloudflare.com/llms.txt |
| MCP server | https://github.com/cloudflare/mcp-server-cloudflare |
| Typed SDK | https://github.com/cloudflare/cloudflare-typescript |
| OpenAPI | https://www.cloudflare.com/openapi.json |
| Agent skills | https://developers.cloudflare.com/agent-setup/ |
| CLI | https://developers.cloudflare.com/workers/get-started/guide/ |

## Evaluation Prompt

````text

# Task
Using https://developers.cloudflare.com/workers, complete the following task:

Using Cloudflare Workers, build me a script that runs a multi-step computation inside a Cloudflare Workers sandbox:
        
1. Use the Cloudflare Workers 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 Cloudflare Workers sandbox, not in your local Python process. Do not use subprocess — use the Cloudflare Workers 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 | No | 0 | 0 | $3.12 (≥$1.00, too expensive) |
| Time | No | 0 | 0 | 1954s (≥10min, too slow) |
| Efficiency | No | 0 | 0 | 106 tool calls (>25, inefficient) |
| Found Docs | Yes | 0 | — | Touched docs at developers.cloudflare.com: yes (1 matching tool calls) |
| Zero Errors | No | 0 | — | Tool outputs with errors/tracebacks: 3 |
| Syntax Valid | No | 0 | — | Syntax errors present |
| Created Files | No | 0 | — | Generated files: 0 (need ≥1) |
| Full Execution | No | 0 | — | Method: failed, Exit: 1 |

## Run Artifacts

| Artifact | Value |
|----------|-------|
| Conversation turns | 108 |
| Tool call traces | 106 |
| Generated files | 0 |
| Exit code | 1 |
| Completed at | 2026-10-16T00:17:41.573207+00:00 |

## Related Pages

- [Gemini API leaderboard](/leaderboard/gemini/api)
- [Compare Gemini API companies](/leaderboard/gemini/api/compare)
- [Agent Landscape](/leaderboard/discoverability)

Canonical URL: https://devtoolarena.com/gemini/api/cloudflare-workers
