Skip to main content
Glama

crypto_constants

Locate known crypto and hash tables or round constants by byte value to identify algorithms in memory dumps or binary data; treat hits as leads, not proof.

Instructions

Locate known crypto/hash tables and round constants by value.

AES S-box and its inverse, the CRC-32 table, MD5/SHA initial states, TEA and xxHash primes, FNV offsets, MurmurHash constants, base64 and hex alphabets. A hit means the bytes are there — treat it as a lead, not a proof.

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": {
      "key": "<key>"
    },
    "name": "crypto_constants"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYes
limitNo
sessionNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full load. It usefully discloses the key behavioral caveat — hits are evidence of bytes, not proof of algorithm use, implying false positives — and scopes what families are covered. It does not say what is searched (whole session vs. current region), whether it is a read-only scan, or anything about cost/pagination beyond the 'limit' default.

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?

Three sentences, front-loaded with the core action, then a compact evidence list, then the caveat. The constant-family list is long but each item is informative about detection coverage. Little waste.

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

Completeness3/5

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

Return values are covered by the output schema, and the description explains what a hit means. However, for a three-parameter tool with zero annotation coverage, the description leaves the search scope, the 'key' input format, and the role of 'session'/'limit' entirely undocumented.

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

Parameters2/5

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

Schema description coverage is 0% for all three parameters. 'By value' hints that 'key' is the value to match, but neither its expected format (hex string? integer? raw bytes?) nor the meaning of 'limit' (default 40) and 'session' (default empty) is explained anywhere. The description does not compensate for the coverage gap.

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?

States a specific verb ('Locate'), a specific resource ('known crypto/hash tables and round constants'), and the matching method ('by value'), then enumerates concrete families (AES S-box, CRC-32, MD5/SHA IVs, TEA/xxHash primes, FNV offsets, base64/hex alphabets). This is unmistakably distinct from the surrounding disassembly/decompilation siblings.

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

Usage Guidelines3/5

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

Usage is implied by the enumeration — you call it when you want to identify which cryptographic primitives a binary uses — and the closing line gives interpretation guidance ('a hit means the bytes are there — treat it as a lead, not a proof'). But there is no explicit when-to-use/when-not statement and no named alternative for broader byte searching.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.