# NationGraph Codex API Evaluation

**Category:** Public Sector Intelligence
**Score:** 30 (D)

This is the agent-readable Devtool Arena evaluation page for NationGraph on Codex API.

## Summary

| Metric | Value |
|--------|-------|
| Status | completed |
| Overall score | 30 |
| Grade | D |
| Eval score | 37 |
| Discovery score | 14 |
| Cost | $0.34 |
| Runtime | 1m 47s |
| Tool calls | 51 |
| Errors | 14 |
| Tokens used | 1116032 |
| Success | Yes |

## Agent-Readiness Checklist

| Signal | Evidence |
|--------|----------|
| Context7 | Not found |
| llms.txt | https://nationgraph.com/llms.txt |
| MCP server | Not found |
| Typed SDK | Not found |
| OpenAPI | Not found |
| Agent skills | Not found |
| CLI | Not found |

## Evaluation Prompt

````text

# Task
Using https://api.nationgraph.com/docs, complete the following task:

Using NationGraph, build me a script that runs a small public-sector procurement research workflow:

1. Run TWO related lookups against NationGraph:
   a. A broad query for public-sector purchasing activity in "cybersecurity" (contracts, bids, spending, or awards — whatever NationGraph exposes)
   b. A more specific, recency-focused query for "cybersecurity" awards or contracts in 2024-2025
2. Merge the results from both lookups, deduplicate by a stable identifier (award/contract/document ID, or URL if no ID is available), and select the top 5 most relevant records
3. If NationGraph supports fetching/extracting a record's full detail, retrieve the single most relevant record and write a 2-3 sentence summary grounded in that fetched detail (not just the list snippet)
4. Print the output as JSON with two keys:
   - "results": the top 5 deduplicated records, each with a title/name, an agency or buyer (when available), and a url or record id
   - "summary": your grounded 2-3 sentence summary of the top record (include the source url or record id) 

## 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 | 0 | $0.34 ($0.20–0.40, good) |
| Time | Yes | 0 | 1 | 107s (1–2min, great) |
| Efficiency | No | 0 | 0 | 51 tool calls (>25, inefficient) |
| Found Docs | Yes | 0 | — | Touched docs at api.nationgraph.com: yes (17 matching tool calls) |
| Zero Errors | No | 0 | — | Tool outputs with errors/tracebacks: 14 |
| Syntax Valid | Yes | 0 | — | Code compiles/parses correctly |
| Created Files | Yes | 0 | — | Generated files: 1 (need ≥1) |
| Full Execution | No | 0 | — | Method: syntax_check, Exit: 0 |

## Run Artifacts

| Artifact | Value |
|----------|-------|
| Conversation turns | 57 |
| Tool call traces | 51 |
| Generated files | 1 |
| Exit code | 0 |
| Completed at | 2026-09-27T13:30:10.858165+00:00 |

### Generated Files

- /home/daytona/app/procurement_research.py

## Related Pages

- [Codex API leaderboard](/leaderboard/codex/api)
- [Compare Codex API companies](/leaderboard/codex/api/compare)
- [Agent Landscape](/leaderboard/discoverability)

Canonical URL: https://devtoolarena.com/codex/api/nationgraph
