traplens
v0.1.0Dated, verified API breakages for coding agents: look up traps by provider or by error text.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
lookup_traps Look up traps for a provider
Call before writing code against a third-party API, platform, or AI tool. Returns up to 10 verified, dated failure modes for that provider, each with symptoms, cause, fix, a code example and the date it was last checked. Use search_traps instead when you already have an error message.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The service, by slug or common name, e.g. "stripe", "supabase", "github-actions", "openai api". |
context | string | Optional one-line description of the task, e.g. "verify webhook signatures in Next.js". Ranks the most relevant traps first. |
include_stale | boolean | Also return traps not re-checked recently. Default false. |
surface | string | Optional part of the service you are working on, e.g. "webhooks" or "image generation". Ranks matching traps first; never filters others out. |
search_traps Search traps by error text
Call when a call to a third-party service fails or behaves unexpectedly. Paste the error text. Returns up to 5 verified traps whose symptoms match it, closest first, each with cause and fix. Returns nothing when no trap matches closely. Use lookup_traps instead before writing code.
| Parameter | Type | Description |
|---|---|---|
error_text * | string | The error message or unexpected output, as shown. Known key and secret formats are redacted before matching. |
include_stale | boolean | Also match traps not re-checked recently. Default false. |
provider | string | Optional service slug or name to search within, e.g. "stripe". Omit to search every provider. |
file_trap File a new trap
Draft a trap after a failure was fixed. Private by default with a Pro or Team key. Public filings are checked automatically against official sources and published only when an official source confirms them. A reviewer can still act on any filing. Citing the provider's official documentation or changelog in sources helps. No API key needed. Set visibility to public to submit to the public registry.
| Parameter | Type | Description |
|---|---|---|
affected * | string | Which versions, plans or dates are affected. |
apply * | string | A short code or command example of the fix. |
cause * | string | Why it happens. |
fix * | string | What to change, in plain words. |
provider * | string | The service, by slug or common name, e.g. "stripe". |
surface_name * | string | The specific endpoint, package, command or screen, e.g. "webhooks.constructEvent". |
surface_type * | string | Which kind of surface broke: api, sdk, ui, billing, infra, or tool (CLIs and AI coding tools). |
symptoms * | array | Exact error messages or observed behavior, one per item. Leave out secrets and personal data. |
title * | string | One line naming what goes wrong, as a developer would search for it. |
sources | array | Official documentation or changelog URLs that confirm it. |
tags | array | Optional short keywords. |
visibility | string | public submits to the shared registry; private keeps it in your team's space (Pro or Team key). |
confirm_trap Confirm or dispute a trap
After you hit or avoid a trap returned by lookup_traps or search_traps, record whether it is still true. Confirmations raise a trap's trust score and disputes lower it; several disputes send it back for review. One vote per trap per 30 days. Needs a free API key.
| Parameter | Type | Description |
|---|---|---|
still_true * | boolean | true if the trap happened as described, false if it no longer happens. |
trap_id * | string | The trap id from a lookup or search result, e.g. "fg-0158". |
hours_lost | number | Optional hours the trap cost before the fix was found. |
version_seen | string | Optional SDK, API or tool version where you saw it, e.g. "stripe-node 22.3.0". |