Skip to main content
Glama
crisjonblvx

enrichrapi-mcp

by crisjonblvx

encode_decode

Convert text between encoding formats like base64, hex, URL, HTML, or ROT13. Choose encode or decode to transform your string, with byte counts and cost included in the output.

Instructions

Encode or decode a string using a common encoding scheme.

Supports: base64, base64url, hex, url (percent-encoding), html (entity encoding), rot13.

Args: text: The string to encode or decode codec: Encoding scheme — base64 | base64url | hex | url | html | rot13 operation: "encode" or "decode"

Returns: dict with keys: operation, codec, input, output, input_bytes, output_length (or error), cost_usd

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYes
codecNobase64
operationNoencode

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden of behavioral disclosure, and it does so well. It explains the return shape with specific keys, including input_bytes, output_length, cost_usd, and an error fallback. This gives the agent a realistic view of what to expect, though it could further describe edge cases such as decoding invalid input.

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?

The description is well-structured with clearly separated sections for supported codecs, arguments, and return values. It is front-loaded with the core purpose. There is minor redundancy: the codec list appears both in the 'Supports' line and in the codec parameter description, but this is acceptable for clarity.

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?

Given the simple three-parameter tool, absent annotations, and missing output schema, the description is nearly complete. It documents all arguments, enumerates acceptable values, and describes the return dictionary. The remaining gaps are minor, such as not stating the default values for codec and operation, though those defaults are visible in the schema itself.

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?

The input schema provides no descriptions (0% coverage), so the description must compensate. It does: each parameter has a meaningful explanation, the codec values are enumerated, and the operation values are defined. The description could add more nuance around each codec's behavior, but it fully covers the basics and goes beyond the 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 a specific verb and resource: 'Encode or decode a string' using a common encoding scheme. It lists the supported codecs and the dual operation modes, making it easy to distinguish from sibling tools like generate_hash or parse_url. The name is reinforced without being tautological.

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?

No explicit guidance about when to choose this tool over alternatives is provided. The description implies usage through the list of supported codecs and operations, but it does not mention exclusions, prerequisites, or when a sibling tool would be more appropriate. An agent must infer the tool's scope entirely from the generic description.

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