Skip to main content
Glama

Style a link’s QR code

set_qr_style

Set a link’s QR code colours, module shape, margin and logo (the organisation’s uploaded logo; it is uploaded in the console), checked for contrast; or plain: true for the plain code again. Styled codes are a plan feature.

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": "set_qr_style"
  }
}

Input Schema

NameRequiredDescriptionDefault
bgNoThe ground’s colour, #rrggbb; #ffffff when left out.
fgNoThe code’s colour, #rrggbb; #000000 when left out.
idYesThe link’s id.
logoNoThe organisation’s logo in the middle.
plainNoTrue: back to the plain code (the rest is ignored).
shapeNoThe module shape; needed unless plain.
marginNoThe quiet zone in modules; 4 when left out.
logoSizeNoWith logo: how big it is drawn; LARGE (as big as still scans reliably) when left out.
transparentNoNo ground colour.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does disclose non-obvious behavior: colours are "checked for contrast" (validation may reject input), the logo must already be uploaded in the console (prerequisite), and plain:true discards the other arguments. It omits overwrite-vs-merge semantics and what a failed contrast check does, which is why it is not 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.

Conciseness4/5

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

Front-loaded with the primary action, and the plan restriction is pushed to a short trailing sentence. The first sentence is dense and semicolon-dependent, but every clause carries information (fields, contrast check, logo origin, reset).

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?

Nine parameters with no output schema and no annotations makes completeness demanding; the description covers purpose, plan gating and the reset path but says nothing about the return value, what happens on contrast failure, or whether unattended style attributes are preserved or cleared.

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%, with defaults, ranges and enums all documented in the schema itself, so baseline applies. The description only restates the parameter groups (colours, shape, margin, logo) and the plain reset, adding no format detail beyond structured fields.

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?

Specific verb+resource: "Set a link's QR code colours, module shape, margin and logo", and it enumerates exactly which attributes are mutated. It does not name the sibling get_qr_style, so the read/write split must be inferred from the name alone, which keeps it just 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?

Adds a real precondition ("Styled codes are a plan feature") and an in-tool alternative ("plain: true for the plain code again"), which is useful routing context. However it never states when an agent should call this versus get_qr_style or update_link, so the guidance remains implied rather than explicit.

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