Skip to main content
Glama
crisjonblvx

enrichrapi-mcp

by crisjonblvx

generate_qr

Generate a QR code from any text or URL. Receive a base64 PNG and HTML data URI for immediate use.

Instructions

Generate a QR code from any text or URL.

Returns a base64-encoded PNG and a ready-to-use HTML data URI. Works for URLs, plain text, vCards, WiFi credentials, payment links, etc.

Args: content: The text or URL to encode box_size: Pixel size of each QR module, 1–20 (default 10) border: Quiet-zone border width in modules, 1–10 (default 4)

Returns: dict with keys: image (base64 PNG), data_uri, qr_version, modules, cost_usd

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
borderNo
contentYes
box_sizeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations provided, the description carries the full disclosure burden, and it does well: it states the output is a base64-encoded PNG plus an HTML data URI and enumerates the exact return keys (image, data_uri, qr_version, modules, cost_usd). Minor gaps — cost_usd hints at billing but is never explained, and error/capacity behavior (e.g., QR content-length limits) is not mentioned — keep this short of a 5.

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?

The docstring-style layout is front-loaded (purpose first), then content scope, Args, and Returns — scannable and well organized. It loses a point for minor redundancy: the opening paragraph already mentions the base64 PNG and data-URI outputs, and the Returns section repeats those two keys.

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 low-complexity tool (3 params, 1 required, no enums, no output schema), the description covers purpose, every parameter, and the full return shape, so an agent can invoke it successfully. The remaining gaps — error behavior for oversized content and the meaning/billing implication of cost_usd — are not covered.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, and the Args section compensates fully: each parameter gets a plain-language meaning ('The text or URL to encode', 'Pixel size of each QR module', 'Quiet-zone border width in modules'), a numeric range (1–20, 1–10), and explicit defaults that match the schema. This goes well beyond the bare typed integers in the schema.

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 states a specific verb and resource ('Generate a QR code') plus the input scope ('from any text or URL'). It is immediately distinguishable from the many sibling generate_* tools (generate_uuid, generate_hash, generate_password), none of which overlap QR functionality, and the supported-content list further sharpens exactly what the tool produces.

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 'Works for URLs, plain text, vCards, WiFi credentials, payment links, etc.' list gives implied context about when to use the tool. However, there is no explicit when-to-use/when-not-to-use guidance, no exclusions, and no alternatives mentioned. Since no sibling tool overlaps QR generation, the missing routing is low-cost, but the guidance that exists is implied rather than stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.