Skip to main content
Glama

verify_artifacts

Verify that files registered in a session or linked to a stage still exist and match their recorded hashes, helping detect missing or changed artifacts.

Instructions

核对会话登记的文件或指定阶段关联的文件是否仍存在、哈希是否一致。

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": {
      "session_id": "<session_id>"
    },
    "name": "verify_artifacts"
  }
}

Input Schema

NameRequiredDescriptionDefault
band_codeNo
session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It does disclose the two checks performed (existence and hash equality), which implies a read-only verification rather than a mutation, but it never states that the tool has no side effects, what it reports when a file is missing or its hash is mismatched, or whether it fails or returns a partial result.

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?

A single sentence, front-loaded with the action and scope, with no filler. The three parallel clauses (scope, existence, hash) are dense but readable; a slight structural split would make the two verification criteria easier to scan.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With two parameters, no annotations, and no output schema, the description covers the purpose and both parameter roles adequately. It is not complete for an agent that needs to know what a failed verification looks like or how to interpret the result, since nothing is said about the response shape or failure semantics.

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 description coverage is 0%, so the description must carry parameter meaning. It does implicitly map both parameters: session_id to '会话登记的文件' and band_code to '指定阶段关联的文件', which is meaningful compensation. It still does not clarify that band_code is optional, what format a band code takes, or how the two scopes interact when both are supplied.

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?

The description names a specific verb (核对/verify) and a specific resource (会话登记的文件或指定阶段关联的文件), and it also states the two properties being verified: existence (是否仍存在) and hash consistency (哈希是否一致). This is far more precise than a generic 'check artifacts' statement, though it does not explicitly contrast itself with the sibling tool list_artifacts.

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

Usage Guidelines3/5

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

The usage context is implied by the wording: verify files registered to a session, or files tied to a specified band. However, it does not say when an agent should call this instead of list_artifacts or attach_artifact, nor does it state any preconditions such as whether the session must be active.

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