← 返回 Skills 市场
firefrog-pepe

Wolfram Alpha (LLM API)

作者 pepe · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ✓ 安全检测通过
228
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install wolfram-alpha-llm
功能描述
Delegate precise, formalizable computations and factual lookups to Wolfram|Alpha via its LLM API (HTTP) to get verified results and reduce arithmetic/modelin...
使用说明 (SKILL.md)

Wolfram|Alpha (LLM API) skill

Use the bundled wrapper script to call Wolfram|Alpha's LLM API and return concise, model-ingestible results.

Preconditions

  • Environment variable WOLFRAM_APP_ID must be set (your Wolfram|Alpha AppID). If it is not set, ask your human to set it (do not guess or hardcode keys).

Quick start

Run:

# default: cache ON (7d), auth via bearer header (keeps AppID out of URL)
python3 skills/wolfram-alpha-llm/scripts/wa_llm.py \
  --input "solve x^2 + 3x + 2 = 0"

What to send as --input

  • Prefer short English keyword-style queries when possible.
  • If the user asked in another language, translate to English for the API call, then answer in the user’s original language.
  • When you need an exact computation, be explicit (e.g., integrate sin(x)^2 from 0 to pi).

Core parameters (use these most)

  • --input (required): the query.
  • --maxchars (optional, default 2500): cap response length.
  • --units (optional): set units system, if needed for conversions/physics (metric is often a good default when unspecified).
  • --assumption (optional, repeatable): disambiguate when WA returns irrelevant interpretation or offers assumptions.

High-value optional parameters (use when relevant)

  • Localization / context:
    • --countrycode, --languagecode
    • --timezone
    • One of: --ip | --latlong | --location (pick exactly one)
  • Finance:
    • --currency (e.g., USD, EUR)
  • Performance / robustness:
    • --scantimeout, --parsetimeout, --formattimeout, --totaltimeout

Output handling guidance

  • Treat output as computed evidence: quote the key result, then add minimal interpretation.
  • If the result is too long/noisy, rerun with a smaller --maxchars.
    • Heuristic: for simple conversions / arithmetic / single-value answers, try --maxchars 800.
    • Keep default --maxchars 2500 for most multi-line or explanation-heavy results.
  • If the interpretation is wrong:
    1. retry with --assumption ... (use WA-provided suggestions when available),
    2. only then rephrase/simplify --input.

Wrapper script

  • Script: skills/wolfram-alpha-llm/scripts/wa_llm.py
  • Auth:
    • default --auth bearer: sends Authorization: Bearer \x3CAppID> header (keeps AppID out of the URL)
    • --auth query: sends appid as URL parameter
  • Cache:
    • default --cache on with --cache-ttl 604800 (7d)
    • stores best-effort results in: ~/.cache/openclaw-wolfram-alpha/
  • Returns:
    • stdout: API text body
    • stderr: errors, HTTP status context

For parameter details and error behaviors, see:

  • skills/wolfram-alpha-llm/references/llm-api.md
  • skills/wolfram-alpha-llm/references/full-api-params.md
安全使用建议
This skill appears to do what it says and only needs python3 plus your WOLFRAM_APP_ID. Before installing: (1) Prefer the default --auth bearer mode so your AppID is sent in an Authorization header (keeps it out of URLs and logs); avoid --auth query because that places the AppID in the URL (the script prints the URL on HTTP errors). (2) Be aware the skill writes cached API responses to ~/.cache/openclaw-wolfram-alpha/ (default TTL 7 days) — treat that directory as potentially containing sensitive outputs. (3) The skill will make outbound HTTPS calls to https://www.wolframalpha.com/api/v1/llm-api; ensure your environment/network policy allows this and that you trust the Wolfram AppID’s permissions. (4) The skill source is included in the package (you can inspect scripts/wa_llm.py); if you need higher assurance, review the code yourself. If any of these concerns are unacceptable (e.g., local caching or outbound network calls), do not install/use the skill or run it with cache disabled and/or in a restricted environment.
功能分析
Type: OpenClaw Skill Name: wolfram-alpha-llm Version: 0.1.0 The skill is a legitimate wrapper for the Wolfram|Alpha LLM API, designed to perform computations and factual lookups. The Python script (wa_llm.py) uses standard libraries to handle HTTP requests and implements a local caching mechanism in the user's home directory. Sensitive credentials (WOLFRAM_APP_ID) are handled appropriately via environment variables and secure HTTP headers, and the instructions in SKILL.md are aligned with the stated purpose without any evidence of malicious prompt injection or data exfiltration.
能力评估
Purpose & Capability
The name/description match the code and instructions. Required binary (python3) and required env var (WOLFRAM_APP_ID) are appropriate for calling the Wolfram|Alpha LLM API. No unrelated services or credentials are requested.
Instruction Scope
SKILL.md instructs use of the bundled wrapper script and documents parameters, localization options, and caching. Instructions do not ask the agent to read unrelated files or secrets. Behavior stays within the stated purpose (making API calls and returning results).
Install Mechanism
There is no external install step or download; the skill is instruction-only with a bundled Python script. No remote code fetch or archive extraction is performed.
Credentials
Only WOLFRAM_APP_ID is required. That single credential is proportional and necessary for the stated API usage. No other tokens/keys/config paths are requested.
Persistence & Privilege
The wrapper uses a local cache directory (~/.cache/openclaw-wolfram-alpha/) and writes responses there by default (7d TTL). This is reasonable for quota savings, but cached responses may contain sensitive query results and should be considered when sharing a machine or backups.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install wolfram-alpha-llm
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /wolfram-alpha-llm 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial release: Wolfram|Alpha LLM API wrapper (bearer auth default, cache ~7d, maxchars default 2500).
元数据
Slug wolfram-alpha-llm
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Wolfram Alpha (LLM API) 是什么?

Delegate precise, formalizable computations and factual lookups to Wolfram|Alpha via its LLM API (HTTP) to get verified results and reduce arithmetic/modelin... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 228 次。

如何安装 Wolfram Alpha (LLM API)?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install wolfram-alpha-llm」即可一键安装,无需额外配置。

Wolfram Alpha (LLM API) 是免费的吗?

是的,Wolfram Alpha (LLM API) 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Wolfram Alpha (LLM API) 支持哪些平台?

Wolfram Alpha (LLM API) 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Wolfram Alpha (LLM API)?

由 pepe(@firefrog-pepe)开发并维护,当前版本 v0.1.0。

💬 留言讨论