Skip to main content
Glama
Crates.io Rust MCP

Crates.io Rust MCP

Get Rust crate dependencies

get_crate_dependencies
Read-onlyIdempotent

Retrieve Cargo dependencies—normal, dev, and build—for a specific Rust crate version or the latest stable release. Use it to inspect a crate's dependency requirements.

Instructions

Retrieve Cargo dependencies (normal, dev, and build) for a specific crate version or the latest stable release if version is omitted.

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": {
      "crate_name": "<crate_name>"
    },
    "name": "get_crate_dependencies"
  }
}

Input Schema

NameRequiredDescriptionDefault
versionNoOptional exact semver version (e.g. "1.0.215"). Defaults to latest stable.
crate_nameYesRust crate name (e.g. "serde", "tokio", "reqwest").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld, and non-destructive, so safety is covered. The description adds real behavioral scope beyond that: the result covers three dependency categories (normal, dev, build) and resolves to the latest stable release when no version is given, which is the kind of context annotations cannot convey.

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 front-loaded sentence with the resource and scope stated first and the fallback behavior trailing naturally; no filler or repetition. It could be tightened slightly, but nothing is wasted.

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 two-parameter read-only lookup with full schema coverage and rich annotations, the description covers what is fetched, which dependency kinds are included, and the default version behavior. The only gap is how the dependency list is shaped in the response, which is less critical given the tool's simplicity and absent output schema.

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%, with both crate_name and version documented including format examples, so the schema carries the load. The description's only added semantics is the latest-stable fallback, which the version field already states, so nothing new is contributed.

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 (retrieve Cargo dependencies for a crate) and scopes it to normal, dev, and build dependency kinds plus version or latest-stable. It does not name the closest sibling, get_reverse_dependencies, so an agent must infer the direction (dependencies of a crate vs. crates depending on it) from the wording alone.

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 implies usage via the version-omission rule (fall back to latest stable), which is genuine guidance for choosing inputs. However, it never states when to prefer this over get_reverse_dependencies, get_crate_versions, or get_crate_details, and offers 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.