Skip to main content
Glama
benswel

QR for Agent

create_webhook

Register a webhook endpoint to receive real-time notifications when QR codes are scanned. Returns an HMAC-SHA256 secret for verifying webhook signatures.

Instructions

Register a webhook endpoint to receive real-time notifications when QR codes are scanned. Returns an HMAC-SHA256 secret for verifying webhook signatures — store it securely, it is only shown once.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe endpoint URL that will receive POST requests with scan event data.
eventsNoEvents to subscribe to. Currently supported: "qr.scanned".

Implementation Reference

  • The handler for create_webhook in the MCP tools definition, which makes a POST request to /api/webhooks.
    handler: async (input: { url: string; events?: string[] }) => {
      return apiRequest("/api/webhooks", { method: "POST", body: input });
    },
Behavior4/5

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

No annotations provided, so description carries full burden. Critically discloses the one-time secret behavior ('only shown once') and security requirement ('store it securely'), but omits retry logic, idempotency, or duplicate registration behavior.

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 states purpose, second delivers critical security/behavioral information about the return value. Perfectly front-loaded and appropriately sized.

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?

Despite no output schema, description adequately covers return value (HMAC secret) and its security implications. Missing minor details like retry behavior or whether re-registering updates existing webhooks, but sufficient for safe invocation.

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 has 100% description coverage (url and events fully documented), establishing baseline 3. Description adds context that webhook receives 'scan event data' but does not elaborate parameter syntax or default values beyond schema.

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?

Specific verb 'Register' + resource 'webhook endpoint' + clear trigger 'when QR codes are scanned' distinguishes this from QR creation siblings like create_qr_code and from analytics tools like get_qr_analytics.

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?

Implies usage context ('real-time notifications') distinguishing it from polling alternatives like get_qr_analytics, but lacks explicit when-not-to-use guidance or named alternatives for historical data retrieval.

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