Skip to main content
Glama

decodeUrl

Decode URL-encoded data using this tool to restore original text or parameters. Ideal for processing encoded inputs quickly and accurately.

Instructions

Decode URL-encoded input data

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputYesData to decode

Implementation Reference

  • The asynchronous handler function that decodes the input URL-encoded string using decodeURIComponent and returns it as text content in MCP format.
    handler: async ({ input }: { input: string }) => { const decoded = decodeURIComponent(input); return { content: [ { type: 'text', text: decoded } ] }; }
  • The input schema defining the expected 'input' parameter as a string for the decodeUrl tool.
    inputSchema: { type: 'object', properties: { input: { type: 'string', description: 'Data to decode' } }, required: ['input'] },
  • src/index.ts:27-33 (registration)
    Combines and registers encodingTools (including decodeUrl) with other toolsets into allTools, which is used by the MCP server's listTools and callTool request handlers.
    const allTools: ToolKit = { ...encodingTools, ...geoTools, ...generatorTools, ...dateTimeTools, ...securityTools };

Other Tools

Related 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/MissionSquad/mcp-helper-tools'

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