Skip to main content
Glama

url_encode

Apply encodeURIComponent-style percent-encoding so query parameters, path segments, or form values are safe to place in a URL.

Use when:

  • Percent-encode this string for a query parameter

  • Make a path segment URL-safe with encodeURIComponent-style encoding

  • Encode special characters before inserting text into a URL

Do not use when:

  • Decode a percent-encoded string (use url_decode)

  • Encode binary data as Base64 (use base64_encode)

  • Build or rewrite a full absolute URL structure beyond component encoding

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
valueYes

TDQS

A4.2/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It states the encoding style is encodeURIComponent-like, which implies certain characters (e.g., !'()*) remain unencoded, but this is not explicitly disclosed. It also does not mention error handling or behavior with non-string inputs, leaving some gaps for a simple utility.

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 concise, front-loaded with the core purpose, and uses a clear bullet structure for usage guidelines. Every sentence contributes value, and the 'Do not use when' section avoids redundancy while adding essential alternative guidance.

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?

For a simple one-parameter transformation tool, the description covers purpose, usage, and alternatives well. It lacks explicit return-value details (though the output is the encoded string) and does not specify which special characters are left unencoded, but given the low complexity and clear examples, it remains largely complete.

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?

The input schema has 0% description coverage and only one parameter 'value' (type string). The description implies the 'value' parameter is the string to encode through examples like 'query parameters, path segments, or form values', but it never explicitly names the parameter or its role, leaving the agent to infer it from context.

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 the tool applies encodeURIComponent-style percent-encoding to make strings safe for URLs. It names the exact operation, the resource (URL components), and explicitly distinguishes from siblings by listing alternatives (url_decode, base64_encode, url building).

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

Usage Guidelines5/5

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

The description provides explicit 'Use when' and 'Do not use when' sections, covering when to use the tool (query params, path segments, form values) and when not to use it (decoding, base64 encoding, full URL building) with specific alternative tool names.

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.

TDQS

A4.1/5.0
Disambiguation5/5

Each tool targets a distinct data format and operation, with explicit 'Do not use when' cross-references to prevent confusion. For example, base64_encode/decode, url_encode/decode, and timestamp_convert/timezone_convert are clearly separated, and the various validators (ISBN, Luhn, UUID, JSON) apply to different identifiers.

Naming Consistency4/5

Most tool names follow an object_operation pattern (e.g., base64_decode, country_lookup, timestamp_convert), using lowercase with underscores. The main deviation is countries_bulk, which uses a noun+adjective form without an explicit operation, making it inconsistent with the verb-like operations used elsewhere.

Tool Count3/5

With 18 tools, the server falls into the 16-25 range which feels heavy for a utility collection. While each tool is individually useful and the scope is broad, the count is higher than typical for a well-focused server and may overwhelm agents scanning the available options.

Completeness4/5

The set provides solid coverage of encoding/decoding, validation, lookups, and conversions, with paired encode/decode and convert functions. However, some common utilities such as hashing, HTML entity encoding, UUID generation, or email validation are absent, leaving minor gaps for agents that need those operations.

Resources