Install
$ agentstack add skill-uptopia-team-legend-of-base-agent-skills-convert-ore ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ● Environment & secrets Used
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
convert-ore
Convert mined ores into gems for the agent's wallet.
Proxy API
- Method:
POST - URL:
https://agent-public-api.uptopia.xyz/apps/{appId}/agent/inventory/ore/convert - Auth: JWT (Bearer token)
- Payment (x402): No
Parameters
| Name | Type | Required | Source | Description | |-----------|--------|----------|--------------|------------------------------------------| | appId | string | yes | agent config | Application ID | | jwt | string | yes | agent config | Authorization header | | userId | string | yes | .env | Game user ID (USER_ID) — see Usage Notes | | rewards | object | yes | user input | Map of rarity → ore count to convert |
Headers
Authorization: Bearer
Content-Type: application/json
Request Body
{
"userId": "",
"rewards": {
"0": 5,
"3": 2
}
}
rewards keys are rarity levels ("0"–"4"), values are positive integers (ore count to convert). Only include rarities with ore to convert — omit zeros.
Wallet Binding
The wallet is bound from the JWT. Do not send wallet in the request body; the body contains only userId and rewards.
Example Response (200 OK)
{
"success": true,
"gems": 1650
}
gems is the total gems credited from this conversion.
Error Handling
| HTTP Status | Error Code | Cause | |-------------|------------------------------|--------------------------------------------------------------------| | 200 | — | Conversion successful | | 400 | ERROR_INVALID_REQUEST_BODY | Body empty or not valid JSON | | 400 | ERROR_USER_ID_REQUIRED | userId missing or empty | | 400 | ERROR_REWARDS_REQUIRED | rewards missing, empty, rarity out of 0–4, or amount ≤ 0 | | 401 | ERROR_UNAUTHORIZED | JWT invalid or expired — re-run auth-login | | 5xx | — | Server error — retry after a short delay |
Usage Notes
- Requires JWT authentication — wallet is derived from the token, not the request body.
userIdmust be set in.envasUSER_ID; read it from there, never hard-code.- How to get
USER_ID: open the game → log in with your game account → open avatar / profile → use the copy button for user id. Format looks likedid:privy:exampleuser000000000000. - Call
get-ore-ratefirst to preview the gem yield before converting. - Call
get-inventoryto know available ore counts per rarity. - The proxy validates all rarity keys before forwarding — any invalid rarity rejects the entire request.
- Key
"reward"(nos) is accepted as an alias for"rewards".
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: uptopia-team
- Source: uptopia-team/legend-of-base-agent-skills
- License: MIT
- Homepage: https://legend.uptopia.xyz
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.