Skip to main content
Glama

save_search

Destructive

DEMO. Save a car search and get alerted when new cars match. Returns a search_id (keep it; it is the only way to read or cancel the search) and an expiry (default 30 days, renewable). Check for new cars with get_new_matches, or give a callback_url. Shopper email alerts are optional and need explicit consent. On this demo, email sending is switched off (alerts are logged, not sent) and new arrivals are simulated.

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

Input Schema

NameRequiredDescriptionDefault
zipNoShopper's five-digit ZIP, the center of the search area.
makeNoMake, e.g. Toyota.
trimNoTrim.
modelNoModel, e.g. RAV4.
stateNoTwo-letter state of the selling store.
year_maxNoNewest model year.
year_minNoOldest model year.
conditionNonew, used or cpo.
fuel_typeNoe.g. gasoline, hybrid, electric.
price_maxNoHighest advertised price, USD.
body_styleNoe.g. suv, sedan, truck.
drivetrainNoe.g. awd, fwd.
credit_tierNoexcellent, good, fair or poor, for the payment estimate.
max_mileageNoMost miles.
term_monthsNoLoan term for the payment estimate.
callback_urlNoOptional HTTPS webhook for new matches. Public addresses only; HMAC-signed (X-MoonshotLab-Signature: t=<unix>,v1=<hex HMAC-SHA256 of '<t>.<body>'>).
down_paymentNoDown payment used for the payment estimate, USD.
radius_milesNoMiles from zip (needs zip).
email_consentNotrue only if the shopper explicitly agreed to alert emails.
shopper_emailNoOptional: shopper's email for alert emails. Only with email_consent=true after the shopper agreed. Every email has a one-click unsubscribe.
expires_in_daysNoDays until the search ends (default 30, max 90). Renew any time.
renew_search_idNoPass an existing search_id to renew it instead of saving a new one.
max_monthly_paymentNoHighest estimated monthly payment, USD.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing that the returned search_id is the only way to read or cancel the search, that expiry defaults to 30 days and is renewable, and that on this demo emails are only logged and new arrivals are simulated. These are exactly the operational caveats an agent needs and cannot be inferred from readOnlyHint/destructiveHint/openWorldHint.

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?

Front-loads the action, then return values, then alternatives, then the demo caveat in a compact sequence. Slightly dense with parentheticals, but every sentence carries information an agent needs.

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

Completeness4/5

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

With 23 optional parameters and no output schema, the description correctly compensates by explaining the returned search_id and expiry, the demo limitations, and the consent requirement. It omits only minor details such as what a persisted search returns on renewal.

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 the baseline is 3, but the description adds cross-parameter meaning the schema does not: email_consent must be paired with shopper_email and requires explicit shopper agreement, and callback_url is an alternative to polling get_new_matches. With 23 params it cannot cover each one, but the risky ones are explained.

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?

States a specific verb and resource ("Save a car search") plus the outcome ("get alerted when new cars match"), and names the follow-up tools get_new_matches and cancel_search so it is clearly distinguished from reading or cancelling a saved search.

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 clear routing: use get_new_matches to poll, or supply a callback_url for webhooks, and use renew_search_id to renew instead of saving new. It does not exclude or compare against search_inventory, but the within-tool alternatives are explicit.

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.

Resources