Skip to main content
Glama

RubyGems (Unofficial)

Search Gems

search_gems
Read-onlyIdempotent

Search RubyGems by keyword in name/description. Returns matching gems sorted by relevance with name, version, downloads, and info text.

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

Input Schema

NameRequiredDescriptionDefault
pageNoPage number (1-based, default 1).
limitNoMax results to return (1-30, default 10). API caps at 30/page.
queryYesKeyword(s) to search for (e.g., "authentication", "json parser")

Output Schema

NameRequiredDescriptionDefault
gemsYesList of matching gems
pageYesPage number of results
countYesNumber of gems returned
queryYesSearch query that was used

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / limit / description
      Previous value: -"Max results to return (1–30, default 10). API caps at 30/page."New value: +"Max results to return (1-30, default 10). API caps at 30/page."
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare read-only, open-world, idempotent, and non-destructive behavior. The description adds useful context about relevance sorting and returned fields, though it does not discuss rate limits, authentication, or result truncation behavior.

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 efficient sentences with no wasted wording. Search scope is front-loaded, and the return behavior is summarized compactly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a simple search tool with full annotation coverage, complete parameter descriptions, and an output schema. The description supplies the remaining context an agent needs: what is searched, how results are ordered, and what fields are returned.

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%, so parameter documentation is already strong. The description adds meaning by clarifying that the query searches gem names and descriptions and that results are relevance-sorted, which goes slightly beyond the schema's generic keyword description.

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?

The description states a specific verb and resource: "Search RubyGems by keyword in name/description." It also explains the result ordering and key fields, making the tool's purpose immediately clear relative to a direct gem lookup.

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 for keyword-based discovery, but it does not explicitly say when to use this instead of a direct lookup such as get_gem. An agent can infer the distinction, but no exclusion or alternative is stated.

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.