Repository navigation
Add Numbers.sg tool plugin (numbers-sg/numbers_sg) 0.0.1 - #4114
Open
jeremiahsay wants to merge 1 commit into
Open
jeremiahsay wants to merge 1 commit into
jeremiahsay wants to merge 1 commit into
Conversation
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.
Plugin Submission
Plugin information
Submission type
What changed
New tool plugin for Numbers.sg, which publishes Singapore's money numbers read on a schedule from official sources (MAS, LTA, CPF Board, IRAS, SingStat, SP Group). Eight read-only tools, no credentials:
Each tool returns a text message written for a model to quote (the figure, the date of the row, the publisher, when the source was last read and whether that read is late, a page to link and a CC BY 4.0 credit line) and a JSON message with the full answer for workflows. Tool forms are generated from the server's own input schema (
scripts/gen_tools.py), and CI fails if they drift. Labels and descriptions are in English withzh_Hanstranslations.Risk level
Medium: the calculators send user-provided numbers (for example a monthly salary and age, or a property price) to the Numbers.sg service. Otherwise it only calls one fixed, documented HTTPS API.
Required checks
.envfiles,.gitdirectories, virtual environments, caches, logs, or IDE files.PRIVACY.mdor a hosted privacy policy, andmanifest.yamlreferences it.Security and privacy notes
https://numbers.sg/api/mcp(declared undernetwork.domains), with a 30 s timeout and one retry. Not chosen by the model or the user; no arbitrary URL fetching, proxying or crawling.PRIVACY.mdsays so, and that nothing is sold or shared.dify_pluginonly; the client uses the Python standard library.Local validation
The 32 tests load each tool with
dify_plugin'sload_single_subclass_from_source(as the plugin runtime does), validate every YAML file withToolConfiguration/ToolProviderConfiguration, and invoke all eight tools against the live server with no key. Checks include IRAS's worked example (BSD on a S$1.5 million first home = S$44,600) and CPF's 20% employee rate (S$6,000 at age 30 = S$4,800 take-home before tax). CI runs the same suite every week ondify_plugin0.9.x and 0.11.x: https://github.com/numbers-sg/dify-numbers-sg/actionsThe package is the release asset of https://github.com/numbers-sg/dify-numbers-sg/releases/tag/v0.0.1 (SHA-256
659908ed6a58b447b5a70adbb34e78a8962072b57f90396410676ecd0bdf6c32), built byscripts/build.pyas a plain zip of the runtime files.Reviewer notes
Testing limitation: I tried Dify Cloud through remote debugging (
debug.dify.ai:5003). The plugin started and loaded its tools locally, but the debug server answeredhandshake failed, invalid keywith the key shown in the workspace's Debugging panel (Sandbox plan), so I could not complete an end-to-end run on Cloud. I have not run it on a full Community Edition install. Coverage is the SDK-level tests above against the live service. Happy to rerun anything you'd like checked.I run Numbers.sg.
🤖 Generated with Claude Code