Repository navigation
fix: account_usage no longer links to checkout or upgrade pages - #48
Merged
Merged
Conversation
OpenAI's plugin directory rejects tools that link to a page that starts a purchase or an upgrade; an informational page about plans is allowed. The account_usage description pointed at the credit-pack checkout (app.zenrows.com/billing?topup=open) and the in-app plans page. It now points at www.zenrows.com/pricing and at period_ends_at, the date the allowance renews. A test pins it. Refs ACT-1566 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BUChpDttrHDtU8izeDT2op
AnderRV
approved these changes
Oct 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The OpenAI plugin directory (ACT-1566) applies this rule from https://developers.openai.com/plugins/plugin-guidelines, under Commerce and monetization: plugins may "link to an informational page describing available plans", but may not "link directly to a checkout or other transactional page" or "promote upgrades".
The
account_usagedescription sent the model to two pages:app.zenrows.com/billing?topup=open, which opens the credit-pack checkout;app.zenrows.com/plans, the in-app billing plans page.Change
period_ends_at, already in the tool's response). For plans it points to https://www.zenrows.com/pricing, the informational page, which returns 200.tests/account.test.tsfails if the description links toapp.zenrows.com/billingor/plans. It failed on main before the fix and passes after it.Trade-off
Every client loses the direct top-up link, including stdio and Claude users, because the description is shared. The alternative is to keep the links for non-hosted clients. That adds a branch to the description for one sentence, so I didn't take it. Say if you want it.
Verification
npm test: 178 pass, 0 fail.npm run typecheck,npm run lint,prettier --check: clean.Separate from #47, which covers the tool-wording change.
Refs ACT-1566
🤖 Generated with Claude Code
https://claude.ai/code/session_01BUChpDttrHDtU8izeDT2op
Generated by Claude Code