Skip to main content
Glama

PG1 Sovereign Threat Intelligence

check_crypto_usage

PG1 Sovereign Threat Intelligence: checks source code for weak or outdated cryptography BEFORE it ships. Send the files you already have: files[] of { path, text } (up to 500 files, 64 KB each, 1 MB in all; JavaScript/TypeScript, Python, Java/Kotlin, Go, PHP, Ruby, C#, shell and config files). PG1 matches deterministic rules line by line (comments skipped, no AI model, nothing fetched or run) and returns each finding with its file, line, a masked excerpt (secrets are cut) and the fix. High: CRYPTO_TLS_VERIFY_DISABLED (certificate checks off), CRYPTO_WEAK_CIPHER (DES, 3DES, RC4, Blowfish, RC2), CRYPTO_ECB_MODE (including Java "AES"), CRYPTO_SHORT_RSA_KEY (under 2048 bits), CRYPTO_HARDCODED_KEY, CRYPTO_PRIVATE_KEY_IN_CODE, CRYPTO_JWT_NO_VERIFY, CRYPTO_WEAK_PASSWORD_HASH. Medium: CRYPTO_WEAK_HASH (MD5/SHA-1; fine for non-security checksums), CRYPTO_STATIC_IV, CRYPTO_INSECURE_RANDOM, CRYPTO_OLD_TLS_VERSION. Informational: CRYPTO_QUANTUM_VULNERABLE (RSA or elliptic-curve public-key use: not broken today, noted for post-quantum migration planning; never flags on its own). Returns verdict weak_crypto_found (any high), review (medium only) or no_findings, with counts per code and files not inspected. No findings does not prove the code is free of weak cryptography; never "safe". Nothing is stored: only the verdict and reason codes are logged. Always free (60/hour per caller).

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": {
      "files": "<files>"
    },
    "name": "check_crypto_usage"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoOptional: a label for the project, echoed back. Never stored.
filesYesThe source files to check, up to 500.

Output Schema

NameRequiredDescriptionDefault
nameNo
noteNo
checksNoWhich underlying sources were checked for this result and whether each one completed.
countsNo
statusNo"unknown" whenever a source needed for this answer timed out, errored, or was skipped - never "no_flags" in that case.
reasonsNoMachine-readable reason codes for anything flagged in this result. Empty when nothing was flagged.
summaryYes
verdictYes
findingsYes
request_idNoUUID for this request, also sent as the X-Request-Id response header.
bytes_checkedNo
files_checkedYes
not_inspectedNo
rules_versionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full behavioral burden and does so thoroughly: comments skipped, no AI model, nothing fetched or run, secrets masked in excerpts, nothing stored beyond verdict and reason codes, and a 60/hour rate limit. It also pre-empts a dangerous misreading by stating no findings does not prove the code is safe.

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 purpose and input contract are front-loaded in the first two sentences, with rule codes and return semantics following in a logical order. The dense enumeration of rule identifiers is long but functional, since an agent needs them to interpret results; a few clauses could still 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?

For a scanner with an output schema and two parameters, the description covers inputs, limits, execution model, verdict meanings, logging behavior, and pricing. The one caveat an agent could misuse, treating a clean result as proof of safety, is explicitly closed off.

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 already 100%, so the baseline is 3, but the description adds real meaning beyond the schema: the 500-file, 64 KB-per-file and 1 MB total limits, the language list, and the fact that the extension selects the parser. It adds little about the optional name field beyond what the schema states, keeping it just under top marks.

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 opens with a specific verb and resource: checks source code for weak or outdated cryptography, scoped to pre-ship review. It further distinguishes itself from generic scanning siblings by naming the deterministic rule engine and the exact finding taxonomy, so an agent knows this is a static crypto-specific scanner rather than a package or repo check.

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?

It gives a clear triggering condition ("BEFORE it ships") and tells the caller exactly what to supply: files they already have, with supported languages and size caps. It stops short of naming when not to use it or pointing to a sibling such as check_package for dependency-level crypto issues, so routing among alternatives is left implicit.

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.