Skip to main content
Glama

x402_swapi_get_v1_search

Search Star Wars reference data by resource and query to retrieve canonical characters, planets, films, species, starships, or vehicles for demos and agent context.

Instructions

swapi — Star Wars API (SWAPI): characters, planets, films, species, starships, vehicles. Use when an agent needs canonical sci-fi reference data or demo content. [GET /v1/search] $0.005 USDC on eip155:8453+137+42161+480. Example: /v1/search?resource=people&q=skywalker

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_swapi_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 discloses the HTTP method (GET), the price ($0.005 USDC) and the supported chains (eip155:8453+137+42161+480), which is genuinely useful behavioral context. It omits payment/auth mechanics, rate limits, and the retry/idempotency semantics implied by the restart and operationId parameters in the schema.

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?

Short and front-loaded: resource domain first, usage cue second, then endpoint, cost, and example. Dense but each element carries information; the chain-ID list is the least readable part but is still actionable.

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 search tool with no annotations and no output schema, the definition covers cost, endpoint, and an example query, which is enough to attempt a call. It does not describe the response shape, pagination, or how to target each resource type, leaving meaningful gaps for an agent composing the request.

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%, but the schema only defines generic containers (body, query, restart, operationId). The description's example '/v1/search?resource=people&q=skywalker' reveals actual query parameter names and values not present in the schema, adding real meaning beyond the structured fields.

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?

Names the resource domain (SWAPI: characters, planets, films, species, starships, vehicles) and the endpoint [GET /v1/search], with an example query that makes the search behavior concrete. The word 'search' appears only in the path and example rather than in a stated verb, so the purpose is clear but slightly inferred.

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?

Gives one positive usage cue ('Use when an agent needs canonical sci-fi reference data or demo content') but no when-not condition and no routing against the sibling get-by-id tools (films_id, people_id, etc.) that cover single-record lookups. The agent must infer that keyword lookup belongs here and ID lookup belongs elsewhere.

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