Skip to main content
Glama

Search items for sale

search_listings
Read-onlyIdempotent

Searches things people are selling on agentPickup's marketplace, picked up in person: by words, category, top price and distance. Items are collected in person, so before searching for someone, ask where they are and how far they're happy to travel if they haven't said, then pass near (a suburb) or lat/lng, with within_km. Shows the results as a grid card the person can tap to open an item; returns each item's listing_id, title, price, condition, suburb, distance and first photo.

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

Input Schema

NameRequiredDescriptionDefault
latNoWhere the person is, if known: latitude. Send with lng.
lngNoWhere the person is, if known: longitude. Send with lat.
nearNoWhere the person is: a suburb or neighbourhood with its city, state or country, e.g. "New Farm QLD" or "Shoreditch, London" (many places share a name).
queryNoWhat the person wants, e.g. "road bike" or "standing desk".
suburbNoOnly items picked up in this suburb. A city or a suburb with nothing listed searches around it instead.
categoryNo
currencyNoThe currency of max_price as an ISO code, if it isn't the local one.
max_priceNoTheir top price, in the local currency where they are (or in currency).
within_kmNoHow far they'll travel to pick up, in km. Default 10.
max_price_audNoOlder name for max_price, in Australian dollars. Use max_price.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / currency
      Added value: +{
      +  "description": "The currency of max_price as an ISO code, if it isn't the local one.",
      +  "maxLength": 3,
      +  "minLength": 3,
      +  "type": "string"
      +}
    • addedInput schema / properties / max_price
      Added value: +{
      +  "description": "Their top price, in the local currency where they are (or in currency).",
      +  "exclusiveMinimum": 0,
      +  "maximum": 300000,
      +  "type": "number"
      +}
    • addedInput schema / properties / max_price_aud / description
      Added value: +"Older name for max_price, in Australian dollars. Use max_price."
    • changedInput schema / properties / max_price_aud / maximum
      Previous value: -1000New value: +300000
    • changedInput schema / properties / near / description
      Previous value: -"Where the person is: a suburb and state, e.g. \"New Farm QLD\" (several suburbs share a name)."New value: +"Where the person is: a suburb or neighbourhood with its city, state or country, e.g. \"New Farm QLD\" or \"Shoreditch, London\" (many places share a name)."
  2. Added

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the bar is lower. The description still adds real value by disclosing the response shape (grid card the person can tap) and the returned fields: listing_id, title, price, condition, suburb, distance, first photo. It says nothing about result caps, paging, or empty-result behavior, which keeps it at a solid 3-4 rather than 5.

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 sentences, front-loaded with the capability, then the interaction rule, then the output. Dense but every clause carries information. The middle sentence is long and slightly run-on, which costs a point.

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 10-parameter, no-required-parameter tool with no output schema, the description does well: it explains the location prerequisite, the location-parameter pairing, and even the return fields. Gaps remain on result volume, ranking, and behavior when query is omitted, which matter for a zero-required-parameter search tool.

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 90%, so the baseline is 3, but the description adds the coupling rule not obvious from individual fields: pass near (a suburb) OR lat/lng, combined with within_km. It reinforces that location is required in practice despite every parameter being optional. It adds no guidance on currency vs. max_price_aud, which the schema handles.

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 ("Searches things people are selling on agentPickup's marketplace") and enumerates the search facets it supports: words, category, top price and distance. It also pins the domain constraint (in-person pickup), which separates it from shop- or listing-detail tools. It stops short of explicitly naming a sibling it replaces, so a 4 rather than a 5.

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

Usage Guidelines4/5

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

Gives a concrete prerequisite workflow: if the person hasn't said where they are or how far they'll travel, ask before searching, then pass near or lat/lng together with within_km. That is unusually actionable guidance. It does not state when NOT to use it (e.g. browsing a known listing via get_listing), so no explicit alternative routing.

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.