Skip to main content
Glama

Genexxis paid agent tools (x402)

webtools_base64_encode_url

Fetch an image, PDF, audio or any public file by URL and get it back as base64 plus a ready data URI, to pass inline to vision/LLM APIs that need base64. Max 5 MB; redirects followed and re-checked; private addresses refused. Returns contentType, bytes, sha256, finalUrl. Errors are not charged: 400 bad URL, 413 over 5 MB, 422 target error/interrupted, 503 busy (retry). Price: $0.01 USDC per call, paid with x402 on Base.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "<url>"
    },
    "name": "webtools_base64_encode_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesPublic http(s) URL of the image, PDF or file to encode (max 5 MB), e.g. https://example.com/photo.jpg

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / url / description
      Previous value: -"Public http(s) URL of the file or page to encode (max 5 MB)"New value: +"Public http(s) URL of the image, PDF or file to encode (max 5 MB), e.g. https://example.com/photo.jpg"
  2. Added

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so thoroughly: size limit, redirect re-validation, SSRF-style blocking of private addresses, the exact returned fields (contentType, bytes, sha256, finalUrl), a full error-code table with retry guidance, and the x402 pricing model. This is well beyond what structured fields provide.

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?

Front-loaded with the core action and use case, then compactly packs limits, return fields, error codes and price into a few dense sentences with no filler. Slightly over-packed for a single block, but every clause carries operational information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no annotations and no output schema, the description compensates by documenting both the return payload and the failure modes. An agent has everything needed to call it, interpret the result, and decide whether to retry on a 503.

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?

Only one parameter exists and schema description coverage is 100%, with the schema already stating the public http(s) URL requirement and the 5 MB cap. The description adds the behavioral context around that URL (private addresses refused, redirects checked) but nothing new about the parameter's syntax or format, so the baseline 3 applies.

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?

States a specific compound action — fetch a remote file by URL and return base64 plus a data URI — along with the motivating use case (inline payloads for vision/LLM APIs). The verb, resource and output shape are all unambiguous.

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

Usage Guidelines4/5

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

Gives a clear usage context ('to pass inline to vision/LLM APIs that need base64') plus practical selection constraints: 5 MB cap, redirects re-checked, private addresses refused. It does not name the near-identical sibling webtools_image_for_llm or say when to prefer that one instead, so routing between the two is left to inference.

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.

Resources