Skip to main content
Glama

Get Crate Dependencies

get_crate_dependencies
Read-onlyIdempotent

List the dependencies of a specific crate version, what itself depends on. Returns each dependency with its version requirement, kind (normal/build/dev), optional flag, enabled features, and target. Version is optional (defaults to the latest stable). Use for "what does depend on", dependency audits, or sizing a crate's footprint.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

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

Input Schema

NameRequiredDescriptionDefault
nameYesCrate name (e.g. "tokio").
versionNoExact version (e.g. "1.40.0"), or omit for the latest stable.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "name": "tokio"
      +  },
      +  {
      +    "name": "serde",
      +    "version": "1.0.203"
      +  }
      +]
  2. Added

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds the returned field set and the version-defaulting behavior, but says nothing about pagination, result limits, or failure modes for unknown crates/versions.

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?

One dense, front-loaded paragraph: purpose first, then return shape, then default behavior, then use cases. Slightly run-on but every clause carries information.

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 compensates by enumerating the returned fields, and the two-parameter surface is fully covered. Only edge-case behavior (invalid crate, yanked versions, result size) is left unaddressed.

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% and both parameters are documented there, including the 'omit for latest stable' default. The description restates the version default but adds no new syntax or constraint meaning beyond the schema, so baseline 3 applies.

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 ('List the dependencies of a specific crate version') and disambiguates direction with 'what <crate> itself depends on', which separates it from the reverse-deps sibling without naming it.

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 concrete use cases ('what does <crate> depend on', dependency audits, sizing footprint) that map cleanly to intent, but never states when not to use it or names the reverse-deps alternative explicitly.

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.