Skip to main content
Glama

Code lock facts and what makes a door code easy to guess

get_door_code_rules
Read-onlyIdempotent

[Calculators] Code lock facts and what makes a door code easy to guess. The facts behind https://rust.wiki/calculators/door-code: the code lock's rules (facts: 4 digits, a shock per wrong guess, 8 wrong tries then a 15-minute lockout, guest codes), the ten most common four-digit codes (cited from DataGenetics' 2012 PIN study), the patterns the page flags as guessable and how long a full brute force takes. The API deliberately doesn't generate or check codes: the page makes them in your own browser and never sends them anywhere - open the page for a code. For a random code use generate_door_code; to rate a code use check_door_code.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_door_code_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds meaningful behavior beyond that: the data is a fixed reference set (4 digits, shock per wrong guess, 8 tries then a 15-minute lockout, guest codes) sourced from a browser-side page, and it warns that codes are never generated or transmitted server-side. It doesn't describe the concrete response shape, but that's a minor gap against the annotation coverage.

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?

The lead sentence states the subject and the remainder is front-loaded with the highest-value detail: what data comes back, then the guardrail, then the sibling routing. It is dense but nearly every clause carries information; only the 'open the page for a code' phrasing is slightly redundant with the 'doesn't generate or check codes' sentence.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no input parameters, no output schema, and full annotation coverage, the remaining burden is explaining what the response contains and what the tool will not do — both are addressed by naming the returned data sets and disclaiming generation/checking. An agent has everything needed to call this correctly and interpret the result.

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?

The tool takes zero parameters, so there is no parameter semantics to explain and the baseline of 4 applies. The description instead spends its words on the returned content categories (`facts`, `patterns`, common-code list, brute-force time), which is appropriate given there is nothing to parameterize.

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 names a concrete resource (the code lock's rules, the ten most common four-digit codes, the guessable `patterns`, brute-force duration) and a specific verb-frame (return these static facts). It explicitly separates itself from `generate_door_code` and `check_door_code`, so an agent can pick the right tool without opening any schema.

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

Usage Guidelines5/5

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

It states the exclusion up front — 'the API deliberately doesn't generate or check codes' — and names both alternatives with the condition that selects each ('For a random code use generate_door_code; to rate a code use check_door_code'). Nothing about when to use this versus siblings is left to inference.

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