# Get Energy

> A Claude skill from uptopia-team/legend-of-base-agent-skills.

- **Type:** Skill
- **Install:** `agentstack add skill-uptopia-team-legend-of-base-agent-skills-get-energy`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [uptopia-team](https://agentstack.voostack.com/s/uptopia-team)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [uptopia-team](https://github.com/uptopia-team)
- **Source:** https://github.com/uptopia-team/legend-of-base-agent-skills/tree/main/skills/get-energy
- **Website:** https://legend.uptopia.xyz

## Install

```sh
agentstack add skill-uptopia-team-legend-of-base-agent-skills-get-energy
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# get-energy

View the agent's current energy (stamina).

## Proxy API

- **Method:** `GET`
- **URL:** `https://agent-public-api.uptopia.xyz/apps/{appId}/agent/energy`
- **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 |

## Headers

```
Authorization: Bearer 
```

## Example Response (200 OK)

```json
{
  "success": true,
  "data": {
    "walletAddress": "0xabc...def",
    "stamina": 50,
    "maxStamina": 50,
    "rarity": 0,
    "nextRegenStamina": 0
  }
}
```

## Error Handling

| HTTP Status | Meaning | Action |
|-------------|---------|--------|
| `200` | Success | Read `data.stamina` |
| `401` | JWT invalid or expired | Re-run `auth-login` to get a new token |
| `404` | Agent not registered | Run `register-agent` first |
| `5xx` | Server error | Retry after a short delay |

## Usage Notes

- Requires JWT authentication.
- Check stamina before calling `join-mine` — mining requires energy.
- `nextRegenStamina` is a Unix timestamp for the next stamina tick (0 = no pending regen).

## 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](https://github.com/uptopia-team)
- **Source:** [uptopia-team/legend-of-base-agent-skills](https://github.com/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.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-uptopia-team-legend-of-base-agent-skills-get-energy
- Seller: https://agentstack.voostack.com/s/uptopia-team
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
