Skip to main content
Glama

Look up a Windows, Entra ID or Kerberos error code

lookup_error_code
Read-onlyIdempotent

Explains Microsoft authentication error codes from Microsoft's official tables: Entra ID sign-in errors (AADSTS50126, or the bare 50126), Windows NTSTATUS codes as logged in events 4625/4776 (0xC000006A, C000006A, or decimal 3221225578 / -1073741718), Kerberos failure codes from events 4768/4769/4771 (0x18), Win32 error codes such as the data value of an LDAP bind failure (data 52e, data 775) or System error 1326, and official names (IdsLocked, STATUS_ACCOUNT_LOCKED_OUT, KDC_ERR_PREAUTH_FAILED, ERROR_ACCOUNT_LOCKED_OUT). Paste a whole error message or event to find every code in it, or give words to search names and descriptions. Returns the official name and description, where the code is logged, and LogTriage's investigation page when one exists. Free; no API key needed.

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": {
      "query": "<query>"
    },
    "name": "lookup_error_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesA code, a pasted error or event, or words such as 'account locked'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, closed-world behavior, so the description only needs to add context. It does: it discloses the return payload (official name, description, where the code is logged, optional LogTriage investigation link) and that no API key is required, which is genuine operational context. It stops short of describing result ordering or volume when multiple codes are extracted from a pasted event.

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 capability statement is front-loaded and the long enumeration is information-dense rather than padded, since each format example prevents a real failure mode. It is a single dense block, however, and the trailing 'Free; no API key needed' could be tightened.

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?

There is no output schema, and the description compensates by stating what is returned (official name, description, logging location, optional investigation page). Combined with the accepted input formats and the free/no-key fact, an agent has everything needed to call this single-parameter tool correctly.

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% and the parameter description already mentions code, pasted event, or words. The tool description adds substantive meaning by spelling out the accepted code formats (hex with/without 0x, decimal, negative decimal, bare AADSTS digits, Win32 'data 52e') that an agent would otherwise have to guess. That goes beyond the schema text.

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 and resource ('Explains Microsoft authentication error codes') and then enumerates exactly which code families are covered (AADSTS, NTSTATUS, Kerberos, Win32, official names) with concrete examples. An agent can immediately tell this is the code-dictionary tool as opposed to scan_log_for_attacks or explain_log_record.

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 clear invocation contexts: paste a whole error message or event to find every embedded code, or supply words to search names/descriptions. It does not explicitly exclude or route to sibling tools such as explain_log_record or search_reference, so the when-not guidance is absent.

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