hera

Queries Hera log details by spaceId, store, tailName and time range via CLI or Python script.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/XiaoMi/mone --skill hera
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hera
Source: https://github.com/XiaoMi/mone/tree/main/jcommon/mcp/mcp-hera-analysis/.claude/skills/hera
Command: npx skills add https://github.com/XiaoMi/mone --skill hera

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enables programmatic querying of Hera log details with flexible filters such as spaceId, storeId, tailName, search input text, and time range, reducing manual API calls.

Core Features & Use Cases

  • Query by spaceId, storeId, and tailName: Retrieve relevant log tails efficiently.
  • Text search and time-range filters: Narrow results with input_text, startTime, and endTime.
  • Command-line and programmatic usage: Use scripts directly or import the function into your code.
  • Configurable API endpoint: Change the Hera API URL via environment variable or parameter.

Quick Start

Use the Python script in scripts/hera_log_detail_query.py to query logs for a specific tail, e.g. spaceId=123, storeId=456, tailName="my-app-logs".

Frequently Asked Questions about hera

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I query Hera logs by spaceId, storeId, and time range?

Query Hera logs by calling the Python script with spaceId, storeId, tailName, and optional startTime/endTime parameters. The Skill formats your request as a JSON array, sends it via HTTP POST to the Hera API, and returns targeted log details matching your filters within the specified time window.

Can I search for specific text within Hera logs?

Yes, use the input_text parameter to narrow log results. The Skill accepts input_text as an optional filter alongside spaceId, storeId, and tailName, allowing you to retrieve only logs containing your search terms.

How do I configure the Hera API endpoint for my environment?

Set the Hera API URL via an environment variable or pass it directly as an argument to the script. The Skill supports flexible endpoint configuration, letting you point to different API instances without code changes.

What are the timeout and encoding requirements for Hera log queries?

Hera log queries enforce a 30-second HTTP POST timeout and require UTF-8 encoding. The Skill handles both automatically, including comprehensive error handling for timeouts and encoding failures.

Can I use Hera log queries in both CLI and programmatic workflows?

Yes, use the included Python script directly from the command line or import the function into your code. The Skill supports both standalone CLI execution and programmatic integration with parameter validation built in.

What input validation does the Hera log query perform?

The Skill validates spaceId, storeId, tailName, and optional parameters before sending requests to the API. Parameter validation prevents malformed requests and ensures only properly formatted queries reach the Hera API.