Skip to main content
Glama

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

get_door_code_rules
Read-onlyIdempotent

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, send the user to the page (codes are generated in their browser).

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

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true and openWorldHint=false, so the safety profile is covered structurally. The description adds genuinely useful context beyond them: the data is static reference material cited from DataGenetics' 2012 study, and no user code is ever transmitted. It stops short of describing response shape or any freshness/staleness caveats for the cited data.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening line is well front-loaded and the inline enumeration of `facts` and `patterns` is efficient. However the closing two sentences restate the same point twice ('the page makes them in your own browser... open the page for a code' and 'for a random code, send the user to the page'), and the raw URL plus parenthetical asides clutter what should be a short definition.

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?

With no output schema, the description carries the burden of saying what comes back, and it does list the returned sections. It is not fully complete: the exact structure of `facts` versus `patterns` is not defined, so an agent knows the topics covered but not the precise shape of each field.

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 no parameters, so there is nothing the description needs to disambiguate; the schema provides an empty object with additionalProperties false. Baseline for a zero-parameter tool applies, with no gap to compensate for.

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

Purpose4/5

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

Names a specific resource (door code lock facts) and enumerates the payload: `facts` (4 digits, shock per wrong guess, 8 tries then 15-minute lockout, guest codes), the ten most common four-digit codes, and `patterns` with brute-force timing. It is distinguishable from siblings like get_cctv_codes by scope, though it never explicitly names an alternative to contrast with.

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 an explicit when-not-to-use rule: the API does not generate or check codes, so for a random code the agent should send the user to the page instead of calling this tool. That is actionable routing guidance, but it is framed only around code generation and says nothing about when this tool is preferable to other reference tools.

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