{
  "name": "Agent Native scorecard",
  "url": "https://agentnative.build/#score",
  "instructions": "Answer each question true only if the whole question is satisfied today, false if not, null if it does not apply. Cite evidence per answer. Send the answers to the score_product tool, or paste the JSON on the scorecard page.",
  "questions": [
    {
      "n": 1,
      "question": "Everything a user can do in the UI is available through an API, CLI, or tool interface.",
      "principle": "Parity",
      "how_to_verify": "List the five most common user tasks. For each, find the API route, CLI command, or tool that does it without the UI. Yes only if all five exist.",
      "fix_if_no": "Expose your top workflow as an API or tool, then make the button call it."
    },
    {
      "n": 2,
      "question": "Interfaces are described machine-readably (OpenAPI, JSON Schema, MCP).",
      "principle": "Legibility",
      "how_to_verify": "Find an OpenAPI file, JSON Schema, or MCP tool list that covers the main workflows, and check that descriptions say when to use each call.",
      "fix_if_no": "Publish an OpenAPI spec or MCP tool list with model-readable descriptions."
    },
    {
      "n": 3,
      "question": "There is an llms.txt or equivalent, and docs are available as clean Markdown.",
      "principle": "Legibility",
      "how_to_verify": "Fetch /llms.txt and confirm it links to docs that load as Markdown without JavaScript.",
      "fix_if_no": "Add /llms.txt and serve every docs page as Markdown."
    },
    {
      "n": 4,
      "question": "Write operations accept idempotency keys.",
      "principle": "Idempotent by default",
      "how_to_verify": "Search write endpoints for an Idempotency-Key header or equivalent, and check that a repeated request returns the first result.",
      "fix_if_no": "Accept an idempotency key on every write."
    },
    {
      "n": 5,
      "question": "Destructive or costly actions support dry-run or preview.",
      "principle": "Idempotent by default",
      "how_to_verify": "Find a dry_run, preview, or plan mode on delete, refund, send, and billing actions.",
      "fix_if_no": "Add dry_run to destructive and costly calls."
    },
    {
      "n": 6,
      "question": "Errors are structured, with a code, cause, and suggested fix.",
      "principle": "Errors that teach",
      "how_to_verify": "Trigger three failures (bad input, missing record, no permission). Yes only if each returns JSON with a code, a cause, and a suggested fix.",
      "fix_if_no": "Return {code, cause, fix, retryable} instead of an HTML page or a bare message."
    },
    {
      "n": 7,
      "question": "Agents can get scoped credentials without a human clicking through each session.",
      "principle": "Scoped authority",
      "how_to_verify": "Find a way to mint a scoped, expiring credential for an agent without a person clicking through each session.",
      "fix_if_no": "Add delegated or service tokens with narrow scopes."
    },
    {
      "n": 8,
      "question": "Spend, rate, and permission limits can be set per agent identity.",
      "principle": "Scoped authority",
      "how_to_verify": "Find per-agent spend, rate, or permission limits that an admin can set and that are enforced server-side.",
      "fix_if_no": "Add per-identity limits and an approval gate for irreversible actions."
    },
    {
      "n": 9,
      "question": "Every action returns a receipt or lands in an audit log an agent can query.",
      "principle": "Verifiable",
      "how_to_verify": "Run one write action and confirm it returns a receipt or an audit entry that an agent can query afterward.",
      "fix_if_no": "Return a receipt per action and expose the audit log through the same interface."
    },
    {
      "n": 10,
      "question": "Responses support pagination, field selection, and concise formats.",
      "principle": "Context-thrifty",
      "how_to_verify": "Call a list endpoint and check for pagination, field selection, and a concise or Markdown response option.",
      "fix_if_no": "Add pagination, a fields parameter, and a concise format."
    },
    {
      "n": 11,
      "question": "You can tell whether a human or an agent performed an action.",
      "principle": "Verifiable",
      "how_to_verify": "Find an actor or source field on audit records that separates a human from an agent.",
      "fix_if_no": "Record actor type on every action."
    },
    {
      "n": 12,
      "question": "Agents are tested against the product (evals or CI), not just humans.",
      "principle": "Verifiable",
      "how_to_verify": "Find evals, CI jobs, or scripted agent runs that exercise the product's tools and fail the build on regression.",
      "fix_if_no": "Add a small eval suite that runs an agent through your top five tasks."
    }
  ],
  "tiers": [
    {
      "name": "Agent-hostile",
      "from": 0,
      "to": 3,
      "advice": "Agents will scrape and break. Start with parity: expose your top workflow as an API."
    },
    {
      "name": "Agent-tolerant",
      "from": 4,
      "to": 6,
      "advice": "Agents can limp through. Add machine-readable descriptions and structured errors next."
    },
    {
      "name": "Agent-ready",
      "from": 7,
      "to": 9,
      "advice": "Good bones. Close the gaps in authority and verification: scopes, limits, receipts."
    },
    {
      "name": "Agent-native",
      "from": 10,
      "to": 12,
      "advice": "Agents are first-class users. Keep testing with real agents and watch the logs."
    }
  ],
  "submit": {
    "mcp": "https://agentnative.build/api/mcp",
    "tool": "score_product",
    "arguments": {
      "answers": "12 values: true | false | null",
      "evidence": "optional, 12 strings"
    }
  },
  "probe": {
    "endpoint": "https://agentnative.build/api/probe?url=https://example.com",
    "answers": [
      2,
      3,
      6
    ],
    "note": "Only the questions visible from outside; the rest need source access."
  }
}
