Skip to main content
Glama

Foundaree

Open a different link at different times

set_qr_times

Make one of the signed-in user's QR codes open a different link at different times of day, with the same printed QR. For example a cafe menu: breakfast menu 07:00-11:00, lunch menu 11:00-16:00, dinner menu 16:00-23:00. Outside every time, the QR opens its normal link. Times are 24-hour HH:MM in India time unless a timezone is given. A time that ends before it starts runs overnight (22:00-02:00). If two times overlap, the first in the list wins. Up to 8 times. This replaces all of the code's times; send an empty list to switch times off. Get the id from my_qr_codes (it also shows the current times). Read the times and links back to the user before calling this.

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>",
      "times": "<times>"
    },
    "name": "set_qr_times"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe QR id (10 letters and numbers), from my_qr_codes or create_qr_code.
timesYesThe times, in order. An empty list switches times off.
timezoneNoOptional IANA timezone, e.g. "Asia/Dubai". Default "Asia/Kolkata".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only cover the safety profile (readOnly=false, destructive=false), and the description adds substantial behavior beyond them: full-replacement semantics ('This replaces all of the code's times'), the fallback of the normal link outside all windows, the default timezone, the overnight rule for reversed ranges, the first-match-wins rule for overlaps, and a cap of 8. Those are exactly the traits an agent needs and no annotation conveys them.

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 effect and an example, then ordered from semantics to edge cases to the call-preparation instruction. Dense but nearly every sentence carries a distinct rule; the example could arguably be trimmed but it earns its place by anchoring the concept.

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 mutating tool with no output schema, the definition covers replacement semantics, defaults, edge cases, and the ID source. It does not say what the call returns or whether a partial failure across the up-to-8 entries is possible, which is a minor residual gap for a full-replace mutation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description earns above that by adding interpretation rules the schema does not state — 'A time that ends before it starts runs overnight (22:00-02:00)', 'If two times overlap, the first in the list wins', the India-time default, and the max of 8. The nested 'days' and 'name' fields are left entirely to the 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?

Opens with a specific verb+resource+scope: 'Make one of the signed-in user's QR codes open a different link at different times of day, with the same printed QR.' The cafe example makes the behavior concrete, and the tool is clearly distinguishable from update_qr_code or create_qr_code because the invariant ('same printed QR') is stated up front.

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?

Gives actionable preconditions and alternatives: 'Get the id from my_qr_codes (it also shows the current times)' and 'Read the times and links back to the user before calling this.' It also tells the agent how to disable scheduling entirely ('send an empty list to switch times off'). It stops short of explicitly contrasting against update_qr_code for changing the QR's normal link, which is the one likely confusion point.

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