Skip to main content
Glama

Encode text

encode_data
Read-onlyIdempotent

Encode UTF-8 text as base64, base64url, hex, or url. Paid like hash_text. POST https://api.agentpaywire.com/v1/tools/encode.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "encoding": "<encoding>",
      "text": "<text>"
    },
    "name": "encode_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
encodingYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world behavior, so the safety profile is covered. The description adds two genuinely useful traits beyond that: the call is billed (priced like hash_text) and it is a remote POST to a specific endpoint. However, the pricing note is only comparative and never states an actual cost, and nothing is said about size limits or failure modes.

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?

Three compact sentences with the operation stated first, followed by billing and transport details. No filler, though the raw endpoint URL in the third sentence is the least essential element for an agent deciding whether and how to call the tool.

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

Completeness3/5

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

For a simple two-parameter, fully-annotated tool this covers purpose, cost, and transport adequately. The notable gap is that no output schema exists and the description never says what is returned (presumably the encoded string), nor does it address input-size limits for large text payloads.

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 0%, so the description carries the burden, and it does partially compensate by stating that 'text' is UTF-8 input and by enumerating the four encoding values. It adds no semantics about input size constraints, whether empty strings are accepted, or whether the url encoding is percent-encoding versus a base64url variant, which is the ambiguity an agent would most need resolved.

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 gives a specific verb (encode) plus the input type (UTF-8 text) and an exhaustive list of target formats (base64, base64url, hex, url), which maps directly onto the encoding enum. It is clearly distinguishable from hash_text and decode_data by virtue of the stated transformation, though it never explicitly names the inverse operation as its counterpart.

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

Usage Guidelines2/5

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

There is no guidance on when to pick this over decode_data or hash_text, nor any hint about which encoding to choose for a given context (e.g., url-safe for query strings). The only comparative remark, 'Paid like hash_text', speaks to cost rather than tool selection, so usage must be inferred purely from the tool name.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources