Skip to main content
Glama
starshield-forensics

starshield-forensics

by Ziqi

Parse LevelDB .log WAL Structural Skeleton

starshield_parse_leveldb_log
Read-onlyIdempotent

Carve uncompacted Chromium/Electron LevelDB .log write-ahead log records with 32 KiB Castagnoli CRC32C (polynomial 0x82F63B78, mask delta 0xA282EAD8) verification.

Instructions

Carve uncompacted Chromium/Electron LevelDB .log write-ahead log records with 32 KiB Castagnoli CRC32C (polynomial 0x82F63B78, mask delta 0xA282EAD8) verification. Default masked mode withholds raw free-form prose and returns deterministic structural skeletons (offsets, soft-delete flags, visible numeric currency amounts, and session-fingerprinted <IBAN_GB_XXXX_01> / <ENTITY_XXXX_01> placeholders whose IBAN/BIC tokens expose 2-letter ISO country codes).

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": {
      "log_path": "<log_path>"
    },
    "name": "starshield_parse_leveldb_log"
  }
}

Input Schema

NameRequiredDescriptionDefault
log_pathYesLocal path to a read-only LevelDB .log write-ahead log copy.
schema_modeNoJSON record schema filter (default: auto).auto

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.11

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description still adds real value beyond them: it discloses that masked mode withholds raw free-form prose, that output is a deterministic structural skeleton, and exactly which fields (offsets, soft-delete flags, numeric amounts, fingerprinted placeholders) are returned. It does not cover failure behavior on corrupt CRCs or partial records, which keeps it off a 5.

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 definition is front-loaded with the action and stays short, but the opening sentence is overloaded with implementation constants — polynomial 0x82F63B78 and mask delta 0xA282EAD8 — that do not help an agent decide whether or how to call the tool. Nesting the output contract inside a single trailing parenthetical hurts scannability.

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?

For a two-parameter tool with no output schema, the description does the necessary work of describing the returned structure — offsets, delete flags, amounts, and placeholder formats — so an agent knows what it will get back. What is missing is anything about error conditions, corrupt or truncated records, or output size limits.

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

Parameters3/5

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

With 100% schema description coverage, the schema already documents both parameters, so the baseline is 3. The description adds the notion of masked vs. unmasked output and hints at record schema filtering, but never explains the schema_mode enum values (auto, chatsvc, generic-json) or when an agent should choose one over the other.

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?

The description gives a specific verb and resource — carving LevelDB .log write-ahead log records with CRC32C verification — and states what the output looks like. It does not, however, distinguish this from sibling tools like starshield_precheck_leveldb or starshield_triage_json, so an agent must infer the boundary from names alone.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance, and no mention of when to run the precheck sibling first or when triage/validation siblings are more appropriate. The only usage signal is implicit in the phrase 'Default masked mode', which hints at a privacy-preserving default without stating when to override it.

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