Skip to main content
Glama

APKCube

Identify a file by its checksum

lookup_hash
Read-onlyIdempotent

Which app and which build a file checksum names. Use this when you have a hash and no package name — an APK pulled off a device, a sample from a threat feed, a digest in an incident report. Takes an MD5 (32 hex), SHA-1 (40) or SHA-256 (64) and works out which from the length, so do not try to label it; colons, spaces and upper case are fine and are normalised. A miss is a real answer, not an error, and it is free when nothing matches (found: false): we hold no build with that checksum, and says nothing about whether the file exists elsewhere. READ note: only SHA-256 is carried by every stored build, so a SHA-1 or MD5 miss can mean we hold the file and never computed that digest for it — re-check with the SHA-256 if you have it. Once you have the packageName and apkId, the per-build tools will tell you what the file is.

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": {
      "hash": "<hash>"
    },
    "name": "lookup_hash"
  }
}

Input Schema

NameRequiredDescriptionDefault
hashYesAn MD5, SHA-1 or SHA-256 hex digest of the file. The algorithm is taken from its length.

Output Schema

NameRequiredDescriptionDefault
hashYesThe hash as matched: lowercase hex, separators stripped.
noteYesWhat a miss does and does not prove for THIS algorithm. Only SHA-256 is carried by every stored build, so a SHA-1 or MD5 miss can mean we hold the file and never computed that digest for it.
foundYesWe hold a build with this checksum. FALSE is a complete answer and a 200 — it says nothing about whether the file exists anywhere else.
matchYesThe build, when found: packageName, appName, apkId (the id every per-build call takes), versionName, versionCode, arch, format, fileSize in bytes, sha256, isLatest and uploadedAt.
algorithmYesInferred from the value's own length. Not a parameter you send.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Goes well beyond the readOnly/openWorld/idempotent annotations: a miss is explicitly a successful answer with `found: false` and is free, and the READ `note` caveat warns that only SHA-256 is carried by every build, so an MD5/SHA-1 miss is not proof the file is absent. That is exactly the kind of non-obvious behavior an agent would otherwise misread as an error.

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

Conciseness5/5

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

Front-loaded with the purpose, then usage trigger, then input handling, then the miss/`note` caveats, then next steps. Despite being dense, every sentence carries operational information an agent needs; the only trimming possible is the repeated length table already implied by the schema.

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?

An output schema exists, so return values need no explanation, and the description still covers what matters: `found: false` semantics, the `note` field's meaning, and which tool to call next. Nothing an agent needs to call this correctly or interpret a miss is missing.

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%, so the baseline is 3, and the description adds real value on top: it lists accepted digest lengths, says the algorithm is inferred and must not be labelled, and notes that colons, spaces and upper case are normalised. Minor duplication of the schema's length-based detection keeps it from a 5.

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 opening line names the exact operation and outcome: map a file checksum to "which app and which build." It implicitly separates itself from lookup_certificate and other siblings by naming the input (checksum) and the outputs (packageName, apkId), so an agent can route without opening the schema.

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

Usage Guidelines5/5

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

It gives an explicit trigger — "when you have a hash and no package name" — with three concrete cases (APK pulled off a device, threat-feed sample, digest in an incident report). It also states the exit path: once you have packageName and apkId, the per-build tools describe the file.

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