Skip to main content
Glama

Update a QR code

update_qr_code
DestructiveIdempotent

Change a QR code's name, content or design. New content on a dynamic code changes where every printed copy goes.

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": {
      "qrId": "<qrId>"
    },
    "name": "update_qr_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
qrIdYesThe qrId from list_qr_codes or create_qr_code.
designNo
contentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / content / type
      Added value: +"object"
    • addedInput schema / properties / design / type
      Added value: +"object"
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the description's job is to explain *what* gets destroyed. It does that well: it warns that new content on a dynamic code silently redirects every already-printed copy — a consequence an agent could not derive from the schema. It does not cover permissions or what the response looks like, which keeps it below 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, zero filler, with the mutation scope front-loaded and the high-stakes consequence immediately after. Nothing needs to be trimmed and nothing important is buried.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with a very large nested schema and no output schema, the description leaves real gaps: it does not say whether the update is partial or full-replacement for design/content, nor that hosted content kinds (bio, pdf, app, business) are dynamic-only even though the schema hints at it. The dynamic-redirect warning is the one piece of behavior it properly carries.

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 only 25%, but the nested $defs carry extensive inline documentation (defaults, clamping, dynamic-only content kinds, upload restrictions), so the schema compensates for much of the gap. The description adds little beyond restating the three optional parameter groups and never clarifies whether supplying 'design' merges with or replaces the stored design.

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 ('Change') and resource ('QR code') and enumerates the mutable facets: name, content, design. An agent can separate it from create_qr_code/delete_qr_code/get_qr_code without any schema inspection. It stops short of a 5 because it never names a sibling or scope boundary explicitly.

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 rather than stated: this is the tool for modifying a code that already exists, and the qrId parameter says it comes from list_qr_codes or create_qr_code. The second sentence gives a real caution about changing content on a dynamic code, but there is no explicit when-not guidance and no alternatives named for restoring or reverting.

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