# is-cli-agentic: wrangler

- **slug:** `npm/wrangler`
- **ecosystem:** npm · **package:** `wrangler`
- **rubric:** 1.0.0
- **agentTested:** false
- **grade (deterministic only):** F (38/100)
- **status:** done

## Deterministic checks

### D1 Legibility — 0% (0/15)
- [FAIL] machine-readable schema (`schema` / `--describe` returns JSON) — no capability document; agent must parse help prose
  - **Fix:** Add a `schema` or `--describe` command that prints the complete command, option, input, and output schema as JSON.
- [FAIL] exposes an MCP surface — no
  - **Fix:** Expose the same command surface as MCP tools over stdio and make `tools/list` work without credentials.
- [FAIL] help contains usage examples — no
  - **Fix:** Add copy-pasteable examples to top-level and subcommand help, including one successful machine-readable invocation.

### D2 Structured I/O — 25% (5/20)
- [FAIL] documents a JSON output mode — no machine-parseable output documented
  - **Fix:** Add and document `--json` or `--output json`, then keep its keys and types stable for scripts and agents.
- [PASS] no ANSI escapes when the stream is piped — clean
- [FAIL] has a quiet mode — no
  - **Fix:** Add `--quiet` (or `--no-progress`) so stdout can contain only the requested result.

### D3 Non-blocking — 80% (16/20)
- [PASS] does not hang when stdin is a non-delivering pipe — ok
- [PASS] --help does not hang — ok
- [FAIL] documents a non-interactive escape hatch — no
  - **Fix:** Document a non-interactive mode that supplies defaults or exits with an actionable error whenever input is missing.
- [PASS] cold invocation under 3s — 0.67s

### D4 Context economy — 20% (3/15)
- [partial] help fits an agent context budget — 4184 bytes (~1046 tokens)
  - **Fix:** Keep top-level help concise and move detail into subcommand help or machine-readable schema output.
- [FAIL] does not reprint full help on every mistake — 4389 bytes burned per mistake (~1097 tokens)
  - **Fix:** On invalid input, print one terse error and a targeted help hint instead of repeating the full manual.

### D6 Safety rails — 0% (0/10)
- [FAIL] offers a dry-run — no
  - **Fix:** Add `--dry-run` to mutating commands; validate locally and print the exact planned changes without making network calls.
- [FAIL] offers an explicit confirmation bypass — no
  - **Fix:** Add an explicit `--yes` confirmation bypass that is safe to use only when every required value is supplied.

### D7 Error recovery — 80% (16/20)
- [PASS] unknown subcommand exits non-zero — exit 1
- [PASS] unknown flag exits non-zero — exit 1
- [FAIL] error message is terse — 4389 bytes
  - **Fix:** Keep the error to the fault, the corrective action, and one help pointer; omit the full command reference.

### D9 Cold credentials — 30% (6/20)
- [FAIL] names its credential env var in its own help surface — agent must already know the variable name; undiscoverable from --help
  - **Fix:** Name the supported credential environment variable in `--help`, including its precedence over config files.
- [FAIL] offers a no-account or temporary-account path — no; the agent stops at the signup wall
  - **Fix:** Offer a documented temporary, guest, or claim-later path so a cold agent can complete one useful task without signup.
- [PASS] does not launch a browser auth flow in a headless context — ok

---
Every score links to the trajectory that produced it. The rubric is published and frozen before the first public score.