Skip to main content
Glama

BlankQR

Set or change what a code does

set_code
DestructiveIdempotent

With the key: sets what a scan of an existing code does, or changes it. The printed picture stays the same.

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": "<code>",
      "token": "<token>",
      "action": "<action>"
    },
    "name": "set_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesThe 7 characters at the end of the code's short address, the part after the last slash.
tokenYesThe key of the code, from the answer that made it. With an account key, "" for a code of that account.
actionYesWhat a scan of the code does. A code can open a link, start an email, a call or a text message, or show Wi-Fi details, a contact card, a note, a place on a map or an event. Wi-Fi details, contact cards, notes, places and events are short text kept with the code (at most 2000 bytes) and shown by the page a scan opens; a link is only stored, the page it leads to is not.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and idempotentHint=true; the description's contribution is the observation that the printed picture survives the change, which is genuinely useful context an agent wouldn't get from the schema. However, it never states that the previous action content is replaced/lost, which is the core destructive behavior, nor does it mention authorization needs.

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, front-loaded with the key prerequisite and the core effect, with zero redundant phrasing. Nothing could be removed without losing meaning.

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 mutation tool with a richly described nested schema, the description covers the essential concept (only the scan destination changes) but omits replacement semantics, auth/permission expectations, and any failure modes. Adequate but with clear gaps against a destructive, open-world write operation.

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% and the nested action schema is extensively documented, including per-kind field rules, so the schema carries the semantic load. The description adds no parameter-level detail beyond the implicit 'key' reference. Baseline 3 is appropriate.

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 concrete verb and resource: it sets or changes what a scan of an *existing* code does, which implicitly separates it from make_code (creating) and get_code (reading). It also adds the useful scope note that the printed picture is unaffected. It is clear but never names the sibling it differs from, so an agent must infer the boundary.

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?

The phrase 'With the key' signals the prerequisite (a code plus its key/token) and 'existing code' signals this is not for new codes. There is no explicit when-to-use versus alternatives, no statement of what happens if the code already has a different action, and no guidance on errors or permissions.

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