generate_qr_code
Generate QR code as base64 PNG image
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Size in pixels (default: 300) | |
| text | Yes | Text or URL to encode |
Generate QR code as base64 PNG image
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Size in pixels (default: 300) | |
| text | Yes | Text or URL to encode |
Changes observed during successful MCP inspections.
Input schema / properties / bgcolorRemoved value: -{
- "default": "FFFFFF",
- "title": "Bgcolor",
- "type": "string"
-}Input schema / properties / colorRemoved value: -{
- "default": "000000",
- "title": "Color",
- "type": "string"
-}Input schema / properties / eccRemoved value: -{
- "default": "M",
- "title": "Ecc",
- "type": "string"
-}Input schema / properties / formatRemoved value: -{
- "default": "png",
- "title": "Format",
- "type": "string"
-}Input schema / properties / marginRemoved value: -{
- "default": 4,
- "title": "Margin",
- "type": "integer"
-}Input schema / properties / size / defaultRemoved value: -300Input schema / properties / size / descriptionAdded value: +"Size in pixels (default: 300)"Input schema / properties / size / titleRemoved value: -"Size"Input schema / properties / text / descriptionAdded value: +"Text or URL to encode"Input schema / properties / text / titleRemoved value: -"Text"Input schema / titleRemoved value: -"generate_qr_codeArguments"Output schema / (root)Previous value: -{
- "properties": {
- "result": {
- "title": "Result",
- "type": "string"
- }
- },
- "required": [
- "result"
- ],
- "title": "generate_qr_codeOutput",
- "type": "object"
-}New value: +nullDoes the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries full behavioral burden. It discloses the output format (base64 PNG) but omits default size behavior, error handling, determinism, or rate limits. Minimal beyond the schema.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single efficient sentence that front-loads the action and output. It earns its place, though it could be more specific about the encoding target.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple two-parameter tool with full schema coverage and no output schema, the description is adequate but lacks behavioral details that would help an agent understand return format and edge cases.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, so the schema already fully documents both parameters including defaults. The description adds no parameter detail beyond stating the output format, so baseline 3 applies.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb+resource ('Generate QR code') and specifies the output format ('base64 PNG image'), which is concrete and distinguishing. It doesn't reference siblings, but the purpose is unambiguous.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No indication of when to use this tool versus alternatives like encode_base64 or generate_uuid. The encoding target (QR vs base64 string) is implied but no explicit usage guidance is given.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.