# Naive Cursor API Evaluation

**Category:** Unified API
**Score:** 90 (A)

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

## Summary

| Metric | Value |
|--------|-------|
| Status | completed |
| Overall score | 90 |
| Grade | A |
| Eval score | 93 |
| Discovery score | 86 |
| Cost | $0.08 |
| Runtime | 42s |
| Tool calls | 12 |
| Errors | 0 |
| Tokens used | 193490 |
| Success | Yes |

## Agent-Readiness Checklist

| Signal | Evidence |
|--------|----------|
| Context7 | Not found |
| llms.txt | https://usenaive.ai/llms.txt |
| MCP server | https://usenaive.ai/docs/api/mcp |
| Typed SDK | https://usenaive.ai/docs/sdk/typescript |
| OpenAPI | https://api.vetta.sh/v1/openapi.json |
| Agent skills | https://usenaive.ai/skill.md |
| CLI | https://usenaive.ai/docs/cli/overview |

## Evaluation Prompt

````text

# Task
Using https://usenaive.ai/docs, complete the following task:

Using the documented Naive REST API, build me a Python script that demonstrates one Naive agent primitive:

1. Read the API key from the `NAIVE_API_KEY` environment variable
2. Call the documented `POST https://api.usenaive.ai/v1/search` endpoint with the query "AI agent infrastructure trends 2026" and `count` set to 3
3. Print JSON with fields:
   - `query`
   - `results` (array of objects with `title`, `url`, and `snippet` when available)
   - `credits_used` when returned by the API
   - `provider` when returned by the API
4. Handle non-2xx responses by printing the response status and body before exiting non-zero

Naive does not provide an official Python SDK for this task. Use the documented REST API with Python `requests`; do not use the Node SDK, CLI, MCP server, or fake/static results. 

## 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.08 (<$0.10, excellent) |
| Time | Yes | 0 | 1 | 42s (<60s, excellent) |
| Efficiency | Yes | 0 | 0 | 12 tool calls (≤15, good) |
| Found Docs | Yes | 0 | — | Touched docs at usenaive.ai: yes (5 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 | 15 |
| Tool call traces | 12 |
| Generated files | 1 |
| Exit code | 0 |
| Completed at | 2026-10-20T05:20:20.010823+00:00 |

### Generated Files

- /home/daytona/app/naive_search.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/naive
