Skip to main content
Glama

x402_cdnjs_get_v1_search

Search cdnjs for CDN-hosted JavaScript and CSS libraries and retrieve metadata such as names and version information to find and select assets for your project.

Instructions

cdnjs — cdnjs API: library metadata and search for CDN-hosted JS/CSS libraries. [GET /v1/search] $0.005 USDC on eip155:8453+137+42161+480. Example: /v1/search?search=lodash&fields=name%2Clatest

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": "x402_cdnjs_get_v1_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoJSON body for POST/PUT/PATCH/DELETE
queryNoQuery parameters, e.g. {base:'USD', quote:'EUR'}
restartNoExplicitly re-run a previously failed/unknown operation. Never set for unknown outcomes unless you know the paid call did not complete.
operationIdNoDurable operation id for this intent. Supply a stable id (e.g. your job/run id) to dedupe retries; omit to derive one from the arguments.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose genuinely useful behavior the schema cannot: the HTTP method, the $0.005 USDC price, and the four supported chains (eip155:8453/137/42161/480). It says nothing about pagination, result limits, error/payment-failure handling, or how the paid call interacts with the `restart` and `operationId` retry parameters.

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?

Two compact lines, front-loaded with the service, purpose, and endpoint, and the pricing and example are appended without filler. The phrase 'library metadata and search' is mildly redundant with the following clause but costs little.

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

Completeness3/5

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

For a paid, unannotated search endpoint with no output schema, the definition covers the essentials of invocation (method, cost, example query) but omits response shape, result count, and retry/dedup semantics tied to `restart` and `operationId`. An agent could call it, but not predict outcomes.

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 description coverage is 100%, but the schema only defines generic containers (body/query/restart/operationId). The example supplies the endpoint-specific query keys (`search`, `fields`) with a real value, which adds meaning the schema does not carry. The body and retry parameters remain generic and unillustrated for this endpoint.

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?

The description names a specific verb and resource — search over CDN-hosted JS/CSS library metadata in the cdnjs API — and anchors it to the concrete endpoint [GET /v1/search]. It blurs slightly by also claiming 'library metadata', which overlaps the sibling x402_cdnjs_get_v1_library_name, so the boundary between lookup and search is not cleanly drawn.

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?

Usage is only implied through the example query `/v1/search?search=lodash&fields=name,latest`, which shows how to search and project fields. There is no explicit statement of when to use this versus x402_cdnjs_get_v1_library_name, nor any prerequisites or exclusions.

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

Deploy Server

Other Tools