Skip to main content
Glama

ACTION_BASE64

Encode or decode UTF-8 text to and from Base64 within HabitatEngine workflows, returning the result as a variable snapshot for later automation steps.

Instructions

Base64 编码或解码(UTF-8 文本)。输出:base64_result, base64_success。字符串参数支持 ${var} 插值;结果以变量快照 JSON 返回。

Input Schema

NameRequiredDescriptionDefault
dataYes要编码/解码的文字(支持 ${var})
actionYesencode=编码,decode=解码
requireNo执行后要求为 true 的变量名(如 click_success),不满足按出错处理
on_errorNo节点出错时:skip=跳过继续(默认),stop=停止整个工作流
output_varNo结果存到的变量名(默认 base64_result)
node_timeout_msNo单节点超时毫秒,0=不限;默认 30 分钟

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden. It usefully discloses that results are returned as a variable snapshot JSON with base64_result/base64_success, and that the scope is UTF-8 text (implying binary payloads aren't supported). It says nothing about failure behavior, the require/on_error semantics, or timeout defaults beyond what the schema already states.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Compact and front-loaded: purpose first, then outputs, then interpolation/return-shape notes. Every sentence carries information; only minor gain from splitting the output-variable details.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-parameter action tool with a fully documented schema and no output schema, the description covers purpose, return variables, and result delivery. The remaining gap is error/timeout behavior, which the schema partly covers and which is unlikely to block correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already defines all six parameters including action enum values. The description adds modest value by noting ${var} interpolation in string parameters and naming the default result variable, but does not explain require or on_error behavior.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb pair (encode/decode) and resource (Base64, UTF-8 text), which is distinctive against siblings like ACTION_TEXT_OPERATION or ACTION_PARSE_JSON. It does not explicitly name an alternative tool, but the resource itself is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: an agent can infer it should call this when it needs Base64 conversion of UTF-8 text. There is no explicit when-to-use/when-not-to-use guidance or pointer to a sibling for related text operations.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.