Skip to main content
Glama
regaing

devbelt-mcp

by regaing

encode_utf8

Convert Chinese text to UTF-8 percent-encoded hex bytes with encode, or restore UTF-8 byte strings to Chinese with decode. Select via action parameter.

Instructions

UTF-8 编码与中文互转。encode=中文转 %XX 十六进制字节串;decode=字节串还原中文

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYes
actionNoencode
Behavior3/5

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

Without annotations, the description carries the burden of disclosing behavior. It does explain the core transformation mechanism (%XX hex bytes) and directionality, but it omits edge cases such as handling of non-Chinese characters, hex case sensitivity, malformed input, or error behavior. This leaves some behavioral gaps.

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

Conciseness5/5

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

The description is a single efficient sentence that front-loads the overall purpose and then details both operations. Every word earns its place with no redundancy or filler.

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 simple two-parameter tool with no output schema, the description covers the essential usage: what the tool does, what each action does, and the output format for encoding. It does not explicitly state that decode returns Chinese text or address error conditions, but the core functionality is sufficiently documented.

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

Parameters4/5

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

With 0% schema coverage, the description compensates by explaining the meaning of the action parameter (encode vs decode) and implicitly defining the text parameter as the Chinese text or byte string to convert. The default action is not mentioned but is present in the schema. This adds meaningful semantics beyond the raw schema.

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

Purpose5/5

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

The description clearly states the tool's function: UTF-8 encoding and bidirectional Chinese-to-byte-string conversion, with encode producing %XX hexadecimal bytes and decode restoring Chinese. This specifically distinguishes it from sibling tools like encode_url and encode_unicode.

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

Usage Guidelines4/5

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

The description provides clear context for both actions (encode/decode) and their respective inputs and outputs, implying when each should be used. It does not explicitly exclude alternatives or mention when not to use this tool, but the functionality is unambiguous.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/regaing/devbelt-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server