Skip to main content
Glama

x402_weatherapi_get_v1_search

Find and autocomplete city or location names through WeatherAPI's search endpoint to resolve place queries before retrieving weather data.

Instructions

weatherapi — WeatherAPI.com endpoints complementing weathernow (open-meteo): current conditions with AQI/UV/pollen, 14-day forecast, severe weather alerts, sun/moon astronomy, marine forecast with tides, location autocomplete, historical weather. $0.005/call on Base/Polygon/Arbitrum/World. [GET /v1/search] $0.005 USDC on eip155:8453+137+42161+480. Example: /v1/search?q=new%20york

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_weatherapi_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

C2.8/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose genuinely useful behavior: a metered cost of $0.005/call, accepted chains (eip155:8453/137/42161/480) in USDC, and that the call is paid. It does not explain that payment must be settled via the x402 flow, whether failures are charged, or what the response contains, which matters for a paid endpoint.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The text is short but front-loads family-level marketing copy rather than the tool's own job, pushing the discriminating details (path, price, example) into a single trailing line. Every sentence is short, but the ordering works against quick tool selection.

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?

No output schema exists, so the description should indicate what a search returns (a list of matching locations with ids/coordinates usable by the other endpoints), and it does not. Pricing and chain information are covered well, but the description is only marginally sufficient for an agent to call and use this paid endpoint correctly.

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 the schema already documents body, query, restart, and operationId. The description adds only a concrete query example ('?q=new york'), clarifying that the query object should carry a 'q' key, but says nothing about other search options or limits. This is the expected baseline when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The bulk of the text enumerates the whole weatherapi family (current, forecast, alerts, astronomy, marine, history) and only the bracketed '[GET /v1/search]' line plus the 'q=new%20york' example indicate this tool's actual function. 'Location autocomplete' appears only as one item in a feature list, so the agent must infer that this specific tool resolves place names rather than returning weather data.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Complementing weathernow (open-meteo)' hints at a relationship to another provider, but there is no statement of when to call search versus the sibling endpoints (current, forecast, alerts, etc.), nor any note that a location lookup typically precedes those calls. No exclusions or prerequisites are given beyond the implicit pay-per-call model.

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