traplens

v0.1.0
io.github.CloudCorpRecords/traplens Checked 4 days ago Published 1 month ago

Dated, 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.

ParameterTypeDescription
provider *stringThe service, by slug or common name, e.g. "stripe", "supabase", "github-actions", "openai api".
contextstringOptional one-line description of the task, e.g. "verify webhook signatures in Next.js". Ranks the most relevant traps first.
include_stalebooleanAlso return traps not re-checked recently. Default false.
surfacestringOptional 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.

ParameterTypeDescription
error_text *stringThe error message or unexpected output, as shown. Known key and secret formats are redacted before matching.
include_stalebooleanAlso match traps not re-checked recently. Default false.
providerstringOptional 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.

ParameterTypeDescription
affected *stringWhich versions, plans or dates are affected.
apply *stringA short code or command example of the fix.
cause *stringWhy it happens.
fix *stringWhat to change, in plain words.
provider *stringThe service, by slug or common name, e.g. "stripe".
surface_name *stringThe specific endpoint, package, command or screen, e.g. "webhooks.constructEvent".
surface_type *stringWhich kind of surface broke: api, sdk, ui, billing, infra, or tool (CLIs and AI coding tools).
symptoms *arrayExact error messages or observed behavior, one per item. Leave out secrets and personal data.
title *stringOne line naming what goes wrong, as a developer would search for it.
sourcesarrayOfficial documentation or changelog URLs that confirm it.
tagsarrayOptional short keywords.
visibilitystringpublic 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.

ParameterTypeDescription
still_true *booleantrue if the trap happened as described, false if it no longer happens.
trap_id *stringThe trap id from a lookup or search result, e.g. "fg-0158".
hours_lostnumberOptional hours the trap cost before the fix was found.
version_seenstringOptional SDK, API or tool version where you saw it, e.g. "stripe-node 22.3.0".