Skip to main content
Glama

inspect_file

Read-onlyIdempotent

Inspect a Base64-encoded file locally for deterministic structural and security risk signals without executing it, and return a policy-aware decision (allow, notice, confirm or block) under the applicable policy — permissive, balanced or strict, balanced by default.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
policyNoOptional policy used to compute the decision: permissive, balanced or strict (default: balanced).
contextNoOptional declarative context.
filenameYesThe original filename, including its extension.
content_base64YesThe complete file content encoded as canonical Base64 (maximum decoded size: 1 MiB).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
riskYes
validYes
checksYes
sha256Yes
signalsYes
decisionYes
filenameYes
risk_scoreYes
size_bytesYes
detected_typeYes
policy_appliedYes
schema_versionYes
ruleset_versionYes
declared_extensionYes
context_completenessYes

TDQS

A4.5/5.0
Behavior5/5

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

The description adds substantive behavioral context beyond the annotations: it explains the tool does not execute the file, performs local inspection, and returns specific decision types (allow, notice, confirm, block). This complements the readOnly/idempotent hints with concrete operational details, and there is no contradiction with annotations.

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?

The description is a single, well-structured sentence that front-loads the core action ('Inspect a Base64-encoded file locally') and efficiently conveys the purpose, safety, and policy aspects without redundant words. Every phrase earns its place.

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 the tool's complexity, the description covers essential aspects: what it does, how it behaves (no execution), the decision output, and policy options. The output schema exists, so return values are already documented. The description is sufficient for an agent to understand and invoke the tool correctly.

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%, so the baseline is 3. The description does mention the policy options and default, but this largely restates the schema's enum description. It adds minimal information beyond what the schema already provides for filename/content_base64, so no higher score is warranted.

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 clearly states the tool's function: inspect a Base64-encoded file locally for structural and security risk signals without executing it, and return a policy-aware decision. It distinguishes itself from siblings by focusing on file inspection and explicitly noting non-execution, which differentiates it from tools like inspect_command or analyze_url_risk.

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?

The description provides clear context on when to use the tool—for evaluating a Base64-encoded file's risk locally without execution—and mentions the policy parameter. However, it does not explicitly name alternatives or state when not to use it, so it lacks the explicit exclusions that would merit a 5.

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.

TDQS

A4.4/5.0
Disambiguation5/5

Each tool targets a distinct artifact: tool calls, URLs, shell commands, and files. There is no overlap in their input types or risk-analysis scopes, so an agent can clearly select the right tool for the situation.

Naming Consistency4/5

All tool names follow a snake_case verb_noun pattern, but two different verbs are used ('analyze' and 'inspect'). This is a minor deviation from a single consistent verb, yet the pattern remains predictable and readable.

Tool Count5/5

Four tools is well within the ideal 3-15 range and each one addresses a distinct, necessary aspect of pre-execution safety analysis. The count feels purposeful and not bloated.

Completeness4/5

The set covers the major categories of risky operations (actions, URLs, commands, files). A minor gap is the lack of a tool to configure or retrieve the policy that governs the decisions, but the core analysis surface is adequately complete.

Resources