Skip to main content
Glama
Crates.io Rust MCP

Crates.io Rust MCP

Search Rust crates on crates.io

search_crates
Read-onlyIdempotent

Search crates.io by keyword to find Rust packages, with optional sorting by relevance, downloads, or recency and a result limit up to 50.

Instructions

Search crates.io by keyword with optional sort order ("relevance", "downloads", "recent-downloads", "recent-updates", or "new").

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": {
      "query": "<query>"
    },
    "name": "search_crates"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNoOptional sort order. Default is crates.io relevance.
limitNoNumber of crates to return (1 to 50). Default 10.
queryYesSearch keyword (e.g. "serde", "http client", "async runtime").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

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, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds only a restatement of the sort enum and 'keyword' scoping; it says nothing about result volume, pagination, or what a search hit contains. With annotations doing the heavy lifting, this is adequate but thin.

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?

A single front-loaded sentence with the core action first and the optional modifier second. Every clause earns its place and there is no filler or redundancy.

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?

This is a low-complexity, three-parameter read-only search tool whose annotations and schema are both rich, and no output schema exists to require explanation. The only modest gap is that the agent must infer result shape and that limit controls result volume, which is minor at this complexity level.

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%, so query, sort, and limit are already documented with examples, defaults, and bounds. The description repeats the sort values verbatim without adding meaning, and never mentions limit or its default of 10. Baseline 3 applies when the schema carries parameter semantics.

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: search crates.io by keyword, with the optional sort dimension called out. The verb 'search' naturally contrasts with the get_crate_* detail siblings without naming them, so an agent can distinguish intent, though no sibling is named explicitly.

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 — keyword search — but there is no explicit statement of when to prefer this over get_crate_details or how to proceed from a search result to detail lookup. Sort and limit behavior is left to the schema.

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