Skip to main content
Glama
benswel

QR for Agent

get_qr_code

Retrieve details of an existing QR code by its short ID to access the target URL, metadata, and timestamps for tracking purposes.

Instructions

Retrieve details of an existing QR code by its short ID. Returns the current target URL, metadata, and timestamps.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
short_idYesThe short ID of the QR code to look up.

Implementation Reference

  • The handler for 'get_qr_code' which fetches QR code details from the API.
    get_qr_code: {
      description:
        "Retrieve details of an existing QR code by its short ID. Returns the current target URL, metadata, and timestamps.",
      inputSchema: z.object({
        short_id: z.string().describe("The short ID of the QR code to look up."),
      }),
      handler: async (input: { short_id: string }) => {
        return apiRequest(`/api/qr/${input.short_id}`);
      },
    },
Behavior3/5

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

No annotations provided, so description carries full burden. Compensates partially by disclosing return values ('target URL, metadata, and timestamps'), but omits error behavior (e.g., 404 if ID not found), idempotency guarantees, or permission requirements.

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 sentences with zero waste: first establishes action and method, second specifies return payload. Front-loaded with essential operation verb. No redundancy with schema or title.

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 single-parameter lookup tool without output schema, description adequately compensates by describing return structure. Minor gap on error handling documentation, but sufficient for agent to select and invoke correctly given the simple input contract.

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 100%, establishing baseline 3. Description mentions 'by its short ID' which aligns with the parameter, but adds no additional semantic context about ID format, length constraints, or lookup behavior beyond what the schema already documents.

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?

Description uses specific verb 'Retrieve' with clear resource 'QR code' and identifier 'short ID'. Distinct from siblings like list_qr_codes (single vs bulk), create_qr_code (read vs write), and delete_qr_code (safe retrieval vs destructive).

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?

Implies usage pattern (lookup by specific ID vs listing), but lacks explicit guidance on when to prefer this over list_qr_codes or what constitutes a valid short_id format. No mention of prerequisites or error cases.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/benswel/qr-agent-core'

If you have feedback or need assistance with the MCP directory API, please join our Discord server