Skip to main content
Glama

Create a QR code

create_code

Create a dynamic QR code that redirects to destination. Optional smart rules send some scans elsewhere (first match wins). Returns the short link to print.

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": {
      "destination": "<destination>"
    },
    "name": "create_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoLabel only the owner sees
rulesNoSmart rules (paid plans)
timezoneNoIANA timezone for rule times, e.g. Asia/Kolkata
destinationYeshttps:// address scans go to

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false and destructiveHint=false, so the write-without-destroy profile is covered structurally. The description usefully adds rule precedence ('first match wins') and the return value ('short link to print'), but omits the paid-plan gating for rules and the fact that a dynamic code's destination is editable later, which is the whole point of choosing dynamic over static.

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?

Three short sentences, front-loaded with the primary action and destination, then optional behavior, then the return value. Nothing redundant with the title or schema.

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?

For a four-parameter creation tool with no output schema, the description covers the destination, the optional rules behavior and precedence, and the returned short link. Availability gating for smart rules is the only notable omission, and it is already stated in the schema.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description goes beyond it by explaining rule ordering ('first match wins'), which the schema does not state. It still treats name, timezone, and the rule matching fields as self-evident, leaving the schema to carry those.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Create') and resource ('dynamic QR code') plus the core behavior — redirecting to `destination`. It does not explicitly contrast with update_code or delete_code, but the create action is unambiguous against those sibling names.

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?

Usage is implied: this is the creation entry point, and the mention of smart rules hints at when the optional rule set matters. There is no explicit guidance on when to prefer update_code (e.g., editing an existing code) or that smart rules require a paid plan — that constraint lives only in the schema.

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.