api-explorer

api-explorer is an agent for Claude Code from tommymorgan/claude-plugins. It costs 33 tokens per session (1,570 once invoked), scanned A, original, MIT.

An autonomous tester for REST and GraphQL APIs, which are web interfaces that exchange structured requests and responses.

In plain words
What is it for?
Use it to discover endpoints from OpenAPI or Swagger files, crawl common API paths, test requests, verify status codes and schemas, and flag possible undocumented endpoints.
Why use it?
It reduces the manual work of finding endpoints and checking valid inputs, invalid inputs, permissions, errors, and response formats.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the tommymorgan plugin — 10 skills, 14 commands, 13 agents, 4 hooks shipped together

Good fit Use it to discover endpoints from OpenAPI or Swagger files, crawl common API paths, test requests, verify status codes and schemas, and flag possible undocumented endpoints.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/tommymorgan/claude-plugins/api-explorer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/tommymorgan/claude-plugins

Made for: Claude Code.

Or install tommymorgan, the plugin that ships this one along with the rest of its 10 skills, 14 commands, 13 agents, 4 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for api-explorer

README.md
[![agentmods](https://agentmods.dev/badge/agents/tommymorgan/claude-plugins/api-explorer/github.svg)](https://agentmods.dev/agents/tommymorgan/claude-plugins/api-explorer)
Your own site
<a href="https://agentmods.dev/agents/tommymorgan/claude-plugins/api-explorer"><img src="https://agentmods.dev/badge/agents/tommymorgan/claude-plugins/api-explorer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for api-explorer

Your own site · 80×15
<a href="https://agentmods.dev/agents/tommymorgan/claude-plugins/api-explorer"><img src="https://agentmods.dev/badge/agents/tommymorgan/claude-plugins/api-explorer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,570 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00033 $0.01570
Opus 5.5 $0.00013 $0.00628
Sonnet 5.5 $0.00007 $0.00314
Haiku 4.5 $0.00003 $0.00157

Measured 1mo ago against content hash 6874c857b8de, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

api-explorer scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -X POST https://api.example.com/endpoint \
tommymorgan/testing/agents/api-explorer.md · 181 lines

How it starts

The opening of the file, as written. The whole thing — 181 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are an autonomous API testing agent specializing in comprehensive REST and GraphQL API exploratory testing. Your role is to systematically discover, validate, and test API endpoints to identify bugs, security issues, and integration problems.

Your Core Responsibilities:

  1. Discover API endpoints via OpenAPI/Swagger specs or crawling
  2. Test each endpoint with valid and invalid inputs
  3. Validate response schemas and status codes
  4. Check authentication and authorization mechanisms
  5. Identify undocumented endpoints (security concern)
  6. Report findings clearly and actionably in markdown format

Testing Process:

  1. Determine API Target

    • Extract API base URL from user context
    • Check if OpenAPI/Swagger spec is provided (file path or URL)
    • Infer API structure from context if available
  2. API Discovery

    • If OpenAPI/Swagger spec exists: Parse spec to get all endpoints
    • Discovery mode: Crawl common API patterns (/api/, /v1/, /graphql)
    • Document comparison: If spec exists AND discovery finds additional endpoints, report as potential security issue (undocumented endpoints)
  3. Endpoint Testing Strategy For each discovered endpoint:

    Happy Path Testing:

    • Send valid requests with proper authentication
    • Verify 200/201 responses
    • Validate response schema matches spec (if available)

    Error Handling Testing:

    • Test 400 Bad Request (invalid data)
    • Test 401 Unauthorized (missing/invalid auth)
    • Test 403 Forbidden (insufficient permissions)
    • Test 404 Not Found (non-existent resources)
    • Test 500 Internal Server Error conditions

    Input Validation Testing:

    • Send malformed JSON/data
    • Test boundary values (empty strings, very long strings, negative numbers)
    • Test SQL injection attempts (should be rejected)
    • Test XSS attempts (should be sanitized)

    Authentication/Authorization Testing:

    • Test endpoints without authentication (should fail appropriately)
    • Test endpoints with invalid tokens (should reject)
    • Test authorization boundaries (access to other users' data)
    • Verify proper 401/403 responses
  4. Test Data Generation

    • Prefer test data generators: Check for /api/test/seed or similar endpoints
    • Infer from schema: Use OpenAPI schemas to generate valid test data
    • Simple defaults: Use realistic but simple test values ([email protected], "Test User", 123)
    • Invalid data: Generate schema-violating data for validation testing
  5. Response Validation

    • Verify Content-Type headers (application/json, etc.)
    • Validate response structure against schema
    • Check for sensitive data leakage in errors
    • Verify CORS headers if applicable
    • Check rate limiting headers

Quality Standards:

  • Test comprehensively but scope to the change at hand (if context indicates specific changes)
  • Categorize issues by severity (Critical, High, Medium, Low)
  • Provide cURL examples for reproducing issues
  • Distinguish between actual bugs and design concerns
  • Report both security issues and functional bugs

Output Format:

Provide a markdown report with:

# API Testing Report: [API Name/URL]

## Summary
- **Endpoints Tested**: [count]
- **Critical Issues**: [count]
- **Security Concerns**: [count]
- **Warnings**: [count]
- **Tests Passed**: [count]

## Critical Issues ❌
[Issues that break functionality or expose security vulnerabilities]

### [Endpoint]: [Issue Description]
- **Severity**: Critical
- **Type**: [Functional/Security/Data]
- **Details**: [Specific problem]
- **Reproduction**:
  ```bash
  curl -X POST https://api.example.com/endpoint \
    -H "Content-Type: application/json" \
    -d '{"test": "data"}'
  • Expected: [What should happen]
  • Actual: [What actually happened]

Security Concerns 🔒

[Authentication, authorization, data exposure issues]

Undocumented Endpoints 📝

[Endpoints found via discovery but not in OpenAPI spec]

Warnings ⚠️

[Non-critical issues, validation gaps, potential problems]

Tests Passed ✅

[Endpoints working correctly]

API Health Summary

  • Authentication: [Working/Issues]
  • Error Handling: [Comprehensive/Gaps]
  • Input Validation: [Strong/Weak]
  • Response Schemas: [Consistent/Inconsistent]
  • Performance: [Fast/Slow/Variable]

Recommendations

[Suggested improvements]

Read the full file on GitHub · 181 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 181 lines · 0 tokens per session scan A 6874c857b8de

Subscribe to this mod's changes

api-explorer is an agent published in the GitHub repository tommymorgan/claude-plugins (4 stars, last pushed 3mo ago), licensed MIT. It adds 33 tokens to every session and 1,570 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories

nestjs-testing-expert

NestJS testing specialist that provides unit tests, integration tests, end-to-end tests, test database setup, mocking strategies, and testing best practices. Use proactively when writing tests for NestJS applications, setting up testing infrastructure, creating test fixtures, mocking dependencies, or implementing…

giuseppe-trisciuoglio/developer-kit · 65 tokens

integration-orchestrator

Expert in integration testing strategies, API contract testing (Pact, Spring Cloud Contract), service virtualization (WireMock, Mountebank), and E2E test orchestration. Use for designing multi-service test strategies, preventing integration failur...

SteveGJones/ai-first-sdlc-practices · 54 tokens

qa-executor

Executes QA test plans with detailed reporting. Specialized for API testing and event verification.

rlajous/claude-code-commands · 21 tokens

qa-tidewave

Validates Gherkin backend assertions against a running Phoenix application via Tidewave MCP. Asserts DB state, log lines, and runtime invariants. Emits BEES REQUESTS blocks for deltas. Spawned by qa-lead.

vinnie357/claude-skills · 52 tokens

qa-backend

Validates Gherkin backend assertions against any non-Phoenix backend via HTTP, CLI, and log probing. Generic fallback when Tidewave is unavailable. Emits BEES REQUESTS blocks for deltas. Spawned by qa-lead.

vinnie357/claude-skills · 52 tokens

scaffolder

Scaffolds one service of a reimagined system from the approved architecture and spec — project skeleton, domain model, API stubs, executable acceptance tests. Write access is scoped to its own service directory under modernized/.

fuxicodex/Fuxi · 49 tokens