Skip to main content
Glama

check_package

Verifies a package directory's integrity—JSON-LD model, components, XML Schema, and published bytes when versions.json exists—and returns SHA-256 plus pinned schema URL.

Instructions

Run the reader's integrity check on a package directory: the JSON-LD names the directory's model, it has components, the schema is an XML Schema, and its bytes are the published current version when versions.json is present. Returns the SHA-256 and the pinned schema URL.

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": {
      "directory": "<directory>"
    },
    "name": "check_package"
  }
}

Input Schema

NameRequiredDescriptionDefault
directoryYesA package directory already on disk (dm-<ct>.jsonld and dm-<ct>.xsd, optionally catalog.json and versions.json). Give this or ct_id, not both.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.4.1

TDQS

A3.9/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full load. It discloses the integrity criteria, the conditional behavior when versions.json is present, and the returned SHA-256 and schema URL, but it does not specify failure behavior or explicitly confirm read-only side effects.

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 two sentences, front-loaded with the action and followed by a compact list of checks and return values. There is no filler and every clause contributes to understanding the tool.

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?

For a low-complexity one-parameter tool without annotations or an output schema, it explains what is validated and what is returned. However, it omits failure semantics and response shape details, which are important for an integrity-check tool.

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 100% and the single directory parameter is fully documented in the schema, so baseline 3 applies. The description adds only 'package directory' context and does not clarify the schema's stray 'ct_id' alternative, which is absent from the properties.

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?

States a specific verb and resource: 'Run the reader's integrity check on a package directory.' It then enumerates the exact conditions checked and the returned artifacts, making it clearly distinguishable from sibling read/describe tools.

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?

There is no explicit when-to-use or when-not-to-use guidance and no named alternatives. The purpose strongly implies it is for validating an existing package directory, but an agent must infer that from context.

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