Skip to main content
Glama

Update QR Code

update_qr_code
DestructiveIdempotent

Change a saved code's name, content (merged into its data) or style. A dynamic code keeps working after printing; a static one changes its picture.

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

Input Schema

NameRequiredDescriptionDefault
idYesThe QR code id (a UUID from create_qr_code or list_qr_codes).
dataNo
nameNo
styleNoHow the code looks. Colours are hex. Too little contrast between fg and bg is refused.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the mutation profile is covered. The description adds genuine value with "content (merged into its data)", disclosing partial-merge semantics, and the note that a static code's picture changes while a dynamic one keeps working. It does not say whether omitted fields are preserved, whether the update is reversible, or what failures occur, so it stays at 3.

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?

Two short sentences, front-loaded with the mutation scope and with no wasted wording. The second sentence is compact but slightly cryptic in isolation ("keeps working" / "changes its picture"), costing a point against maximum clarity.

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 destructive, idempotent mutation with a nested object parameter and no output schema, the description covers the main surfaces but leaves key agent questions unanswered: whether passed data replaces or merges the whole payload, whether name/style are optional partial updates, and what error cases exist beyond the schema's contrast note.

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 coverage is 50% and the nested style object is already documented with per-property descriptions and constraints. The description's main contribution is the word "merged" for data, which clarifies partial versus full replacement — meaningful, but it says nothing about merging behaviour for style or name.

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?

"Change a saved code's name, content ... or style" gives a specific verb plus the three mutable fields, so the agent knows exactly what resource and surface is being updated. It does not name or distinguish itself from siblings such as create_qr_code, delete_qr_code or update_link, so it falls short of a 5.

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 only implied: "a saved code" and the required id make it clear this operates on an existing code rather than creating one. There is no explicit when-to-use/when-not-to-use statement, no mention of prerequisites (e.g. that a static code cannot become dynamic), and no routing to alternatives.

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