Skip to main content
Glama
paladini

devutils-mcp-server

url_decode

Decode URL-encoded strings to restore original text, useful for processing web data and debugging encoded URLs.

Instructions

Decode a URL-encoded string.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputYesThe URL-encoded string to decode

Implementation Reference

  • The implementation and registration of the "url_decode" tool using `server.tool`. The handler uses `decodeURIComponent` to perform the decoding and includes error handling.
    server.tool(
      "url_decode",
      "Decode a URL-encoded string.",
      { input: z.string().describe("The URL-encoded string to decode") },
      async ({ input }) => {
        try {
          return {
            content: [
              { type: "text" as const, text: decodeURIComponent(input) },
            ],
          };
        } catch {
          return {
            content: [
              {
                type: "text" as const,
                text: "Error: Invalid URL-encoded input",
              },
            ],
            isError: true,
          };
        }
      }
    );

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/paladini/devutils-mcp-server'

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