Skip to main content
Glama
starshield-forensics

starshield-forensics

by Ziqi

Inspect PDF Container Structure & Incremental Save Revisions

starshield_inspect_pdf_tamper
Read-onlyIdempotent

CONTAINER STRUCTURE OBSERVATION ONLY (NOT TAMPER OR FORGERY DETECTION): Deterministically inspect ISO 32000 PDF container structure offline for multi-revision %%EOF / xref / startxref incremental save history, Info/XMP producer metadata…

Instructions

CONTAINER STRUCTURE OBSERVATION ONLY (NOT TAMPER OR FORGERY DETECTION): Deterministically inspect ISO 32000 PDF container structure offline for multi-revision %%EOF / xref / startxref incremental save history, Info/XMP producer metadata, and embedded action cues (/JavaScript, /Launch, /EmbeddedFiles) alongside benign e-signature, form-fill, and linearization caveats.

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": {
      "pdf_path": "<pdf_path>"
    },
    "name": "starshield_inspect_pdf_tamper"
  }
}

Input Schema

NameRequiredDescriptionDefault
pdf_pathYesLocal path to a PDF document file.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.11

TDQS

A3.9/5.0
Behavior3/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 without description help. The description does add real value beyond that: determinism, offline execution, and the crucial caveat that legitimate e-signatures/form-fills/linearization create extra revisions that should not be read as tampering. It says nothing about failure modes — encrypted/password-protected PDFs, malformed containers, or file-size limits — which matters for a parser.

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 scope disclaimer is front-loaded in caps before the substantive clause, which is the right ordering. It is a single very dense sentence, but every clause (deterministic, offline, the three artifact classes, the benign caveats) carries information an agent needs. Slightly run-on structure is the only cost.

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 one-parameter, read-only inspection tool with full schema coverage and annotations, the description covers inputs, scope, and the key interpretive caveat well. The remaining gap is return shape: with no output schema, the agent is not told whether findings come back as a revision list, boolean flags, or free-form text, which affects how it reports results.

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?

Schema coverage is 100% and the single parameter is already documented as "Local path to a PDF document file." The description only reinforces that the file must be a local PDF inspected offline, adding no new syntax, constraints, or format detail beyond the schema. Baseline 3 applies.

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 names a specific verb and resource ("Deterministically inspect ISO 32000 PDF container structure") and enumerates the exact artifacts examined: multi-revision %%EOF / xref / startxref history, Info/XMP producer metadata, and /JavaScript, /Launch, /EmbeddedFiles action cues. The leading "CONTAINER STRUCTURE OBSERVATION ONLY (NOT TAMPER OR FORGERY DETECTION)" cap removes any ambiguity with the name's "tamper" wording and cleanly separates it from the image counterpart by resource type.

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?

There is an explicit exclusion — this is observation only, not tamper/forgery verdicts — and the "offline" qualifier sets operational context. It also warns that e-signature, form-fill, and linearization produce benign revisions, which tells the agent how to interpret results. What's missing is a positive when-to-use statement or a named alternative (e.g., the image or log inspectors), so no sibling routing is provided.

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