api-explorer

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

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.

agentmods
npx agentmods add agents/tommymorgan/claude-plugins/api-explorer
Clone the repo
git clone --depth 1 https://github.com/tommymorgan/claude-plugins
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. Scan, not verified.
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 $0.00033 $0.01570
Opus 5 $0.00016 $0.00785
Sonnet 5 $0.00007 $0.00314
Haiku 4.5 $0.00003 $0.00157

Measured yesterday against content hash 6874c857b8de, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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. yesterday 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 1mo ago), licensed MIT. It adds 33 tokens to every session and 1,570 once invoked, about $0.0002 per session on Opus 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

alchemist

Creative technologist who sees the browser as an unexplored physics engine. Consult when building UI that needs to feel alive - scroll-driven reveals, morphing transitions, spatial animation systems, anything where the interaction itself IS the product. Thinks in weight, tension, and breath before thinking in code.…

drobins25/craft · 355 tokens

audit-geo

Evaluates AI crawler access, llms.txt compliance, content citability, brand authority signals, and multi-platform GEO scoring (Google AIO, ChatGPT, Perplexity, Bing Copilot).

XuanRanL/loamwright-SEO-Skill · 44 tokens

praman-sap-planner-cli

SAP UI5 test planner via Playwright CLI. Token-efficient alternative to MCP planner. Generates test plan + gold-standard spec using CLI commands.

mrkanitkar/playwright-praman · 36 tokens

FAI Browser Agent

Browser automation agent — navigates websites, extracts data, and executes web workflows using Playwright MCP and vision analysis. Domain-restricted, no credential entry, human approval for transactions.

frootai/frootai · 41 tokens

test-writer

Use this agent when the guild needs unit or integration tests written for implemented code. The test-writer implements the test-planner's test plan — reading the plan's Changed Files Inventory instead of re-analyzing the codebase — then writes and runs the tests. Spawned by the check-in skill when a test-writing task…

HirogaKatageri/hirokata · 77 tokens

performance-optimizer

Full-Stack Performance Architect. Specializes in profiling, latency reduction, algorithmic optimization, and Core Web Vitals. Operates on the principle of "Evidence over Intuition.".

DDS-Solutions/AI-TadPole-OS · 40 tokens