Skip to main content
Glama

Search activities

search_activities
Read-onlyIdempotent

Searches children's enrichment activities (camps, classes, after-school programs) in the United States by keyword, city and state or latitude/longitude radius, participant age, session date range, and category. Returns a paginated list of listings; each result carries the activity name, its "slug", the provider organization, location, age range, categories, a price range where available, and a "url" for the listing page. Results are ordered by relevance to the query and are not influenced by paid placement. The "slug" field is the identifier accepted by get_activity_details.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cityNoCity name (e.g., 'Petaluma', 'San Francisco')
pageNoPage number (default: 1)
limitNoResults per page (default: 20, max: 50)
queryNoKeyword search (e.g., 'coding camp', 'ballet', 'science')
stateNoTwo-letter US state code (e.g., 'CA', 'OR', 'WA')
age_toNoMaximum participant age (0–19; 19 = adult)
date_toNoLatest session end date (YYYY-MM-DD)
age_fromNoMinimum participant age (0–19; 19 = adult)
latitudeNoLatitude for proximity search
date_fromNoEarliest session start date (YYYY-MM-DD)
longitudeNoLongitude for proximity search
categoriesNoComma-separated category IDs
distance_milesNoSearch radius in miles (default: 25, max: 100)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / age_from / description
      Previous value: -"Minimum participant age (4–19)"New value: +"Minimum participant age (0–19; 19 = adult)"
    • changedInput schema / properties / age_from / minimum
      Previous value: -4New value: +0
    • changedInput schema / properties / age_to / description
      Previous value: -"Maximum participant age (4–19)"New value: +"Maximum participant age (0–19; 19 = adult)"
    • changedInput schema / properties / age_to / minimum
      Previous value: -4New value: +0
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

The annotations already establish read-only, idempotent, and open-world behavior. The description adds meaningful behavioral detail on top: paginated results, relevance-based ordering, independence from paid placement, and the role of slug as the identifier for get_activity_details. It does not mention rate limits, but that is not a significant gap given the existing annotations.

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

Conciseness5/5

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

Three sentences, front-loaded with the core action and resource, with no redundant restatement of schema fields. Every sentence contributes: what it searches, what it returns, and how the results relate to a sibling tool.

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

Completeness5/5

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

Despite 13 parameters and no output schema, the description covers the purpose, filter groups, return fields, pagination, ordering, and cross-tool linkage. Combined with the fully-described input schema and safety annotations, this is sufficient for an agent to select and invoke the tool correctly.

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. The description adds relational parameter semantics beyond individual schema entries: it groups location parameters into city/state versus latitude/longitude radius modes, summarizes age and date range filters, and implies pagination via 'paginated list.' This helps an agent compose valid queries more effectively.

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?

The description states a specific verb ('Searches'), a concrete resource ('children's enrichment activities in the United States'), and the key filter dimensions. It clearly distinguishes this list/search tool from the sibling tools by describing the returned listing and the slug handoff to get_activity_details.

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?

The description establishes a clear usage context: searching for activities by keyword, location, age, date, and category. It also points toward get_activity_details for detail lookup via the slug, but it does not explicitly state when not to use search_activities or how it relates to get_provider_info.

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