# Find AI-Invented API Endpoints & Parameters

> Check the API calls your agent wrote against the provider's OpenAPI description: invented endpoints, unknown parameters, wrong values and bodies, each tied to its rule. Never sends a request.

Find AI-Invented API Endpoints & Parameters is a paid AI agent skill on Agensi by AGI Tools, in APIs & Backend. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $14.99 (one-time purchase)
- Creator: [AGI Tools](https://www.agensi.io/creators/agi-tools)
- Category: [APIs & Backend](https://www.agensi.io/skills/apis-backend)
- Version: 1.0.1
- Last updated: 2026-11-30
- Security: scan passed (2026-11-28); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/find-ai-invented-api-endpoints-parameters
- Tags: api, testing, ai-agents, python, openapi, swagger, contract-testing, api-integration

## About this skill

Coding agents write API calls from memory, and memory goes out of date: an endpoint that never existed, "limt" instead of "limit", status=pending where the API only knows "open", a JSON body sent to an API that expects a form. This skill runs a real program on your files and compares every call with the OpenAPI or Swagger description the provider publishes.

- Reads recorded requests (HAR exports, JSON/JSONL records), curl commands, and literal requests, httpx and aiohttp calls in Python code, without running the code.
- Checks the endpoint and server, the HTTP method, path, query, header and cookie parameters (all OpenAPI styles), required values, types, allowed values, formats, request bodies against their schemas, media types and deprecations.
- Labels every finding: it breaks a rule the description states, or it uses something the description does not mention (an invented call, or a description that is incomplete or outdated). When a recorded response shows the server accepted the call, the finding is marked as a likely gap in the description instead of an error.
- Correction hints come from the description only ("did you mean customer_id?", the closest declared paths, the allowed values). Nothing is invented; values only known at run time are listed as not checked.
- Writes report.md and report.json with a PASS/FAIL exit code, and JUnit XML for CI if you want it.
- Python standard library only. It never sends a request, never follows references to other files or URLs and never prints header values; secrets in other values are masked.

Tested on 1,071 request examples that API providers publish inside their own descriptions and on 10 large public descriptions (up to 11 MB and 1,281 operations), OpenAPI 3.0, 3.1 and Swagger 2.0, JSON and YAML.

Not affiliated with any API provider, the OpenAPI Initiative or Agensi. Built by AGI Tools.

## Requires

- Python 3.9+

## Known limitations

Python is the only source language read in 1.0; for JavaScript or TypeScript, check recorded requests (HAR) or curl commands.
SDK method calls (for example client.charges.create(...)) are not read; check the requests the SDK sends.
References to other files or URLs in the description are never followed: bundle a multi-file description into one file first.
Response bodies are not checked; the recorded response status is only used as evidence.
Verified on Linux with Python 3.9, 3.11, 3.12 and 3.13; Windows and macOS not verified yet.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Find AI-Invented API Endpoints & Parameters skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Does it call the API to check my calls?

No. It reads files only and contains no network code: it never sends a request, never downloads the description and never follows references to other files or URLs. A match means the call agrees with the description you supplied, not that the API accepts it.

### Where do I get the OpenAPI description?

From the API provider: most publish an OpenAPI or Swagger file (often in a public repository or linked from their API reference). Use the current one, in JSON or YAML; an old file reports new endpoints as unknown. Run the inspect command to see its format, version, servers and operation count.

### Why "not in the description" instead of "invalid"?

Because a checker cannot know whether a call is invented or the description is incomplete or outdated. Each finding says which rule it breaks or what is missing from the description, and recorded response codes are used as evidence: if the server accepted the call, the finding is marked as a likely gap in the description.

### Can it check JavaScript or TypeScript code?

Not in version 1.0: it reads literal requests, httpx and aiohttp calls in Python. For JavaScript or TypeScript, check the recorded requests (a HAR export from the browser or a proxy) or the curl commands.

### Are my API keys and tokens safe?

Header values are never written to the report, values of credential-like parameters are hidden, and API keys, bearer tokens, JWTs, credentials in URLs, e-mail addresses and card numbers in other values are masked. Your input files are not modified.

### Can I use it in CI?

Yes. The exit code is 0 when every checked call matches and 1 otherwise; --junit writes a JUnit XML file, --fail-on-review also fails on review items, and --max-not-checked fails when too many calls could not be checked statically.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
