Skip to main content
Glama

cyberchef_url_encode

Convert plaintext into percent-encoded format for safe URL transmission. Optionally encode all characters with RFC 3986 standards.

Instructions

Encodes reserved and unsafe characters in a string into standard percent-encoded format (%XX) for safe transmission in URLs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputYesThe plaintext string to URL encode.
encodeAllNoOptional boolean. If true, encodes all characters including alphanumerics into percent format. Default is false (standard RFC 3986 encoding).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.0.2
    • changedInput schema / properties / encodeAll / description
      Previous value: -"Encode all characters including alphanumerics"New value: +"Optional boolean. If true, encodes all characters including alphanumerics into percent format. Default is false (standard RFC 3986 encoding)."
    • changedInput schema / properties / input / description
      Previous value: -"Raw string to encode"New value: +"The plaintext string to URL encode."
  2. First observedv1.0.1

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations provided, the description carries the full behavioral burden. It accurately describes the core behavior and standard format, but does not disclose specifics such as which characters are left unencoded, how non-ASCII input is handled, or that the operation is a pure transformation with no side effects. It is adequate for a simple encoding utility but not deeply transparent.

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, well-structured sentence. It front-loads the action and output format, contains no filler or redundant wording, and every word contributes to understanding the tool's purpose.

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?

This is a simple, stateless encoding operation with full schema coverage for its two parameters. The description and schema together are sufficient for an agent to invoke it correctly. Minor gaps like explicitly naming the inverse sibling tool or detailing the reserved character set prevent a perfect score.

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 explains both parameters ('input' and 'encodeAll'). The description adds no additional parameter-level meaning beyond what the schema provides, so the baseline score of 3 is appropriate.

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 uses a specific verb ('Encodes') and names the exact resource ('reserved and unsafe characters in a string') and output format ('standard percent-encoded format (%XX)'). It clearly distinguishes from the sibling cyberchef_url_decode by identifying the encoding direction.

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?

The description gives a clear context ('for safe transmission in URLs') that implies when to use the tool. However, it does not explicitly say when not to use it, nor does it compare with alternatives like cyberchef_url_decode or cyberchef_defang_url. The usage guidance is reasonable but left mostly to inference.

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