Skip to main content
Glama

Inspect Artifact

inspect_artifact
Idempotent

Inspect archives, packages, firmware, and Node.js SEA carriers in one call, returning content-addressed artifact graphs with integrity observations and next probes.

Instructions

Inspect an active archive, application package, firmware container (including FIT and legacy uImage), or Node.js SEA carrier in one call. By default returns the complete content-addressed artifact graph once, as the typed nested inventory Evidence, with root and integrity observations, integrity contradictions, hypotheses, unexplored branches, limitations, and next probes inline. Bun standalone inventory describes stored module, sourcemap and opaque bytecode regions. For PCK, Bun and large containers prefer detail summary: it retains the complete inspection and returns its derived summary view; read exact paths, batch occurrence/content IDs and selected fields with inspect_analysis_view using parent_evidence_id. This changes delivery, not inventory coverage. Classic iNES includes header facts, PRG/CHR file-region hashes and byte-exact reconstruction evidence; mapper execution and CPU bank mappings remain unobserved. Read-only DMG mounting is used automatically on supported macOS hosts. Integrity mismatches fail by default; record-and-continue keeps mismatches explicitly untrusted. It does not extract files; use extract_artifact to materialize regular contents of supported formats. DMG extraction is unavailable; use a caller-managed read-only mount on macOS to access its files.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "inspect_artifact"
  }
}

Input Schema

NameRequiredDescriptionDefault
detailNoOmitted or complete returns the complete inspection Evidence. summary retains that complete Evidence in this session and returns its inspect_analysis_view summary; use normalized_result.parent_evidence_id for inventory views.
integrity_policyNo

Output Schema

NameRequiredDescriptionDefault
subjectYes
providerYes
authorityYes
locationsYes
operationYes
confidenceYes
parametersYes
raw_resultYes
environmentYes
evidence_idYes
limitationsYes
evidence_linksYes
predicate_typeYes
analysis_profileYes
caller_input_pathNo
normalized_resultYes
caller_input_pathsNo
relationship_coverageYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.25.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare readOnly=false, idempotent, openWorld and non-destructive; the description goes well beyond that by explaining the default return (complete content-addressed graph returned once as typed nested Evidence), that detail=summary changes delivery rather than coverage, that integrity mismatches fail by default with record-and-continue marking them untrusted, and that read-only DMG mounting happens automatically on supported macOS hosts. These are exactly the operational facts an agent needs before calling.

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 core capability and default return are front-loaded in the first sentence, and following sentences handle mode selection, format-specific coverage caveats, integrity policy and extraction boundaries in a logical order. It is dense and long for a two-parameter tool, with several format-specific asides (iNES, Bun, FIT) that could be compressed, but no sentence is pure filler.

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?

Given an output schema exists and the return payload is complex nested Evidence, the description supplies the surrounding context an agent needs: what the default payload contains (inventory, integrity observations, hypotheses, unexplored branches, limitations, next probes), what summary mode yields, and what remains unobserved per format. Nothing material for correct invocation or interpretation 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 50%: the 'detail' enum is documented in the schema, but integrity_policy has no schema description. The description compensates by explaining the default ('fail') versus 'record-and-continue' semantics, including the trust consequence, and by restating what detail=summary retains and how parent_evidence_id connects to the summary view. It adds real meaning beyond the enum values, though it does not spell out every accepted input shape.

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 ('Inspect') and an explicit enumeration of the resource classes it handles: archives, application packages, firmware containers (FIT, legacy uImage), Node.js SEA carriers, Bun standalone, PCK, iNES, DMG. It also explicitly states what it does not do ('does not extract files') and names the sibling that does, so an agent can separate it from extract_artifact and inspect_analysis_view without opening a 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 concrete routing rules: prefer detail=summary for PCK, Bun and large containers, then read exact paths/IDs via inspect_analysis_view with parent_evidence_id; use extract_artifact to materialize files; DMG extraction is unavailable so use a caller-managed read-only mount. It also sets an explicit boundary (mapper execution and CPU bank mappings remain unobserved), which tells the agent when this tool's answer is insufficient.

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