Skip to main content
Glama

URLinks

apply_qr_template

Destructive

Apply a saved QR style template to a shortlink — copies the template's full style (colors, shapes, center logo/emblem) onto that link's QR. Reference the template by its name or id (see list_qr_templates).

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": {
      "shortlink": "<shortlink>",
      "template": "<template>"
    },
    "name": "apply_qr_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
templateYesThe template's name or id (from list_qr_templates)
shortlinkYesThe shortlink to style (e.g., 'my/docs')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, so the mutation risk is known from structured data. The description's wording 'copies the template's full style onto that link's QR' is consistent with an overwrite, but it never says explicitly that the link's existing QR styling is replaced or lost, nor whether other link settings are untouched. With the safety profile already supplied, this is a modest addition rather than rich behavioral context.

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 sentences, front-loaded with the action and followed by the lookup pointer. The parenthetical listing colors, shapes, and logo is informative and earns its place, though the sentence structure is slightly dense rather than maximally tight.

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 two-required-parameter tool with a fully documented schema and no output schema, the description covers purpose, effect, and how to source the template reference. The remaining gap is the absence of an explicit statement that existing QR styling is overwritten and whether the shortlink must already exist.

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 both parameters carry their own descriptions naming the shortlink format and the template name-or-id source. The description restates the name-or-id option and adds the shape of what the template carries, but adds no format, validation, or ambiguity-resolution detail beyond the schema, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource ('Apply a saved QR style template to a shortlink') and then spells out the effect ('copies the template's full style (colors, shapes, center logo/emblem) onto that link's QR'). This clearly separates it from siblings like save_qr_config, get_qr_config, and list_qr_templates.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It tells the agent where to obtain the template argument by pointing at list_qr_templates, which is a concrete prerequisite for correct invocation. It stops short of stating exclusions, such as how this differs from save_qr_config or whether it should be used instead of manually configuring style, so it does not reach a 5.

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.