Skip to main content
Glama
second-desk-trust

second-desk-trust

Official

capsule_verify

Validate a capsule's manifest, hashes, digest and bundled proof checks, returning VERIFIED, FAILED, or INVALID with details. Use static mode to verify untrusted sources without executing checks.

Instructions

Verify a capsule: validate its manifest structure, recompute its content hashes and manifest digest, and in full mode re run its bundled proof checks in separate processes. Returns the verdict object: VERIFIED, FAILED, or INVALID, with per file and per check detail. Use static mode when the capsule comes from an untrusted source and its checks should not execute.

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": {
      "path": "<path>"
    },
    "name": "capsule_verify"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNofull
pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does well on the most important trait: it discloses that full mode re-runs bundled proof checks in separate processes, i.e. executes capsule-supplied code, and that static mode suppresses this. It does not say whether the tool writes anything to disk, what permissions it needs, how long execution may take, or what happens on unreadable input.

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 verb and resource, then a tight enumeration of the verification steps, then the return contract, then the mode-selection caveat. Four sentences, no filler, and the safety warning is placed where an agent will read it before choosing a mode.

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?

With no output schema, the description helpfully defines the verdict contract (VERIFIED / FAILED / INVALID) plus per-file and per-check detail. With no annotations, it covers the key hazard of executing untrusted checks. Remaining gaps are the meaning of 'path' and the absence of any note on side effects, timeouts, or failure behavior.

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 0% and 'mode' has no enum, so the description is the only source of meaning: it establishes the two modes ('full' and 'static') and what static mode changes behaviorally, which is genuinely valuable. However, the required 'path' parameter receives no explanation at all (local path vs URL, file vs directory), leaving one of two parameters undefined.

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?

States a specific verb and resource ('Verify a capsule') and enumerates exactly what verification entails: manifest structure validation, hash and digest recomputation, and bundled proof checks in full mode. This makes it clearly distinct from an inspection-style sibling, but no sibling is ever named, so the differentiation is left implicit.

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?

Gives an explicit, security-relevant selection rule: use static mode when the capsule is untrusted and its checks should not execute. That is strong when-to guidance for the mode choice, but there is no guidance on when to call this versus alternatives like capsule_inspect, and no statement of prerequisites (e.g., required local file access).

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