Skip to main content
Glama

QR Code Dinosaur

Change where a QR code points

update_destination
DestructiveIdempotent

Changes the URL a "redirect" QR code sends people to, so a printed code can point somewhere new. Requires Pro ($9/month) and the code's owner: signed in (OAuth) or an API key (Authorization: Bearer qrcd_...) whose owner owns the code. If the owner doesn't have Pro, it returns pro_required; if the code belongs to someone else, not_owner. The new URL gets the same safety checks as create_qr_code.

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": {
      "id": "<id>",
      "url": "<url>"
    },
    "name": "update_destination"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesQR code ID, e.g. "QR-ABCD1234EF". Must be a "redirect" code to have any effect on scans.
urlYesThe new destination, an http or https URL.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Added
  3. Removed
  4. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the paid-plan gate, the ownership requirement, both auth paths, and the concrete failure codes returned (pro_required, not_owner). It also warns that the new URL passes the same safety checks as create_qr_code, so the agent knows the write can fail on validation.

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 tight sentences: purpose first, prerequisites second, failure behavior third. No filler, and the most decision-relevant facts (redirect-only, Pro, ownership) are front-loaded.

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 two-parameter mutation with no output schema, the definition covers everything an agent needs: eligibility, auth, error outcomes, and validation behavior. Nothing material about calling it correctly or interpreting failure is left implicit.

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 parameters are already documented, and the description largely restates the redirect-only constraint on id. It does add one genuinely new semantic point: the supplied url undergoes safety validation, which tells the agent rejections are possible beyond schema constraints.

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 verb (changes) and resource (the URL a redirect QR code resolves to), plus the practical outcome that a printed code now points elsewhere. It scopes itself to "redirect" codes, which distinguishes it from create_qr_code and the read/analytics siblings.

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 clear preconditions for use: Pro plan, code ownership, and either OAuth sign-in or an API key. It does not explicitly tell the agent what to do instead when there is no existing redirect code (e.g., create_qr_code), so a naming of alternatives is the missing piece.

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