Skip to main content
Glama

Genexxis paid agent tools (x402)

webtools_image_for_llm

Fetch an image by URL and get it ready for a vision LLM: auto-rotated, resized to fit max_side (default 1568 px, the size vision models use), re-encoded JPEG/PNG/WebP under 5 MB of base64, with data URI, media type, dimensions and sha256. Input up to 10 MB (jpeg, png, webp, gif, avif, heif, tiff; no SVG). Errors are not charged. 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_image_for_llm"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesPublic http(s) URL of the image (max 10 MB)
formatNoOutput format (default jpeg; transparency flattened on white)
qualityNoJPEG/WebP quality 40-95 (default 85; lowered automatically if needed to stay under 5 MB)
max_sideNoLongest side in px after resize, 64-4096 (default 1568); never enlarged

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/5

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

With no annotations provided, the description carries the full load and does it well: input cap of 10 MB, supported formats with an explicit SVG exclusion, automatic downscale-never-enlarge semantics, automatic quality reduction to stay under 5 MB of base64, and the returned fields (data URI, media type, dimensions, sha256). It also discloses the commercial behavior no annotation would cover — $0.01 USDC per call via x402 on Base and that failed calls are not charged.

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?

One dense paragraph, front-loaded with purpose then capabilities then limits then pricing; every clause contributes a fact an agent would otherwise have to guess. No filler, no restatement of the name.

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?

Rich enough for a paid, no-output-schema tool: it covers accepted inputs, transforms, returned fields, error billing, and payment rail. Minor gaps remain — it does not describe the error response shape or whether redirects/non-image content are handled — but nothing essential to correct invocation is missing.

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 every parameter already has documented ranges, defaults, and constraints, which sets the baseline at 3. The description only restates the max_side default with added rationale ("the size vision models use"); it adds no format enumeration, no interaction notes between quality and the 5 MB cap beyond what the schema says.

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?

Opens with a specific verb+resource ("Fetch an image by URL") and immediately names the goal state ("get it ready for a vision LLM"), then enumerates the concrete transforms performed. An agent can tell exactly what this does and how it differs from the only superficially similar sibling, webtools_base64_encode_url.

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 phrase "get it ready for a vision LLM" implies the use case (feeding images to a vision model) but never states when to prefer this over fetching the image directly or over webtools_base64_encode_url, and there are no exclusions beyond the format list. Usage is inferable, not prescribed.

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