Skip to main content
Glama

Update a QR code

update_code
Idempotent

Change a code's destination, name or smart rules (rules replace the existing list; [] removes them). The owner is emailed about destination and rule changes.

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": {
      "code_id": "<code_id>"
    },
    "name": "update_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoNew label only the owner sees
rulesNoSmart rules; replaces the whole list, [] removes them
code_idYesThe 7-character code ID (the part after qrvow.com/)
timezoneNoIANA timezone for rule times, e.g. Asia/Kolkata
destinationNoNew https:// address scans go to

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare idempotentHint=true and destructiveHint=false, yet the description adds real behavior beyond them: rules are a full replacement ([] clears them) and the owner is emailed on destination/rule changes. That notification side-effect is exactly the kind of context an agent cannot get from annotations. The one notable omission is whether omitted optional fields are left untouched or cleared, which is the central risk for a partial-update tool.

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 short sentences with the mutable fields front-loaded and the destructive-adjacent replacement semantics attached parenthetically to the field it affects. No filler, nothing buried.

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

Completeness4/5

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

For a 5-parameter mutation tool with no output schema and no nested objects, this covers the highest-value surprises: list replacement and the owner-facing email. It would be complete at 5 if it stated the partial-update contract and any ownership/permission requirement.

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 100%, so the schema already documents every parameter including timezone and the rules sub-objects. The description's note that rules replace the existing list is useful but merely restates the schema's own rules description, and it adds nothing about timezone or destination formatting beyond what is already there.

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?

Names a specific verb+resource ("Change a code's destination, name or smart rules") and enumerates exactly which attributes are mutable, which separates it from create_code/delete_code/get_code. It stops short of explicitly contrasting itself with any sibling, so it lands just under 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: an agent can infer this is the edit path for an existing code from the verb and the required code_id. There is no statement of when to prefer it over delete+recreate, no prerequisites (ownership/permissions), and no indication of whether calls with no optional fields are meaningful.

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.