Skip to main content
Glama

Dependency Graph

get_dependency_graph
Read-onlyIdempotent

Shows the internal dependency graph between ZK-Kit packages: view the full graph, or enter a package name to see its dependencies and reverse dependencies.

Instructions

Show the internal dependency graph between ZK-Kit packages. Without a package name, shows the full graph: foundational, leaf, and independent packages. With a package name, shows what that package depends on and what depends on it (reverse dependencies).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_dependency_graph"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoPackage name to show reverse dependencies for (e.g., 'poseidon-lite', '@zk-kit/lean-imt')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.2

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint=false, so safety and side-effect behavior need no restating. The description adds only output-content hints (foundational, leaf, and independent package categories), and since there is no output schema this is genuinely useful, but it doesn't describe the shape or size of the returned graph.

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?

Three short sentences, front-loaded with the core purpose, then each mode stated in one clause. No redundancy or filler; only marginal gain would come from consolidating the mode sentences.

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 zero-required-parameter read-only tool with a fully documented schema and annotations covering safety, the description covers both call modes and the content of the returned graph. It leaves return format unspecified, but with no output schema that is a minor gap rather than a blocking one.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the schema already defines the single 'name' parameter, so the baseline is 3. The description earns an extra point by clarifying both directions of the per-package result (dependencies and reverse dependencies), something the schema's 'reverse dependencies' phrasing alone understates.

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: shows the internal dependency graph among ZK-Kit packages, and clarifies the two modes (full graph vs. per-package). It does not name or explicitly contrast with the closest sibling, get_package_dependencies, so the agent must infer that this one is about the internal ZK-Kit graph rather than external npm dependencies.

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 description gives explicit invocation conditions for the optional parameter — omit 'name' for the full graph, supply it for a package-centric view — which is real usage guidance. It never says when to prefer this over get_package_dependencies or get_ecosystem_overview, and there are no exclusions or prerequisites.

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