Skip to main content
Glama

registry_search

Search for service providers by vertical, location, and country. Get ranked organizations with names, slugs, and summaries to find professionals like physiotherapists in Santiago.

Instructions

Search for Servicialo-compatible organizations by vertical, location, and country. Use this as the primary discovery tool when a user needs a service (e.g., "find a physiotherapist in Santiago"). Do NOT use if you already have an org_slug (use registry.get_organization instead). Returns a ranked list of organizations with names, slugs, and service summaries.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
verticalNoVertical del servicio. Valores comunes: tecnologia, consultoria, kinesiologia, psicologia, dental, nutricion, fonoaudiologia, terapia-ocupacional, medicina, veterinaria, educacion, fitness, legal, belleza, hogar. Omitir para buscar en todas las verticales.
locationNoCity or district to filter by (e.g. "santiago", "providencia"). Omit for country-wide results.
countryNoISO 3166-1 alpha-2 country code (e.g. "cl", "mx", "ar"). Default: "cl"cl
limitNoMax results to return (1-100). Default: 10

Implementation Reference

  • The handler function for 'registry_search' (defined as 'registry.search'). It calls client.pub.get('/api/servicialo/registry', ...) with vertical, location, country, and limit parameters.
    handler: async (client: ServicialoAdapter, args: { vertical?: string; location?: string; country?: string; limit?: number }) => {
      const result = await client.pub.get('/api/servicialo/registry', {
        vertical: args.vertical,
        location: args.location,
        country: args.country ?? 'cl',
        limit: args.limit,
      });
      return result;
    },
  • The Zod schema for 'registry_search': validates vertical (optional string), location (optional string), country (string, default 'cl'), and limit (number, default 10).
    schema: z.object({
      vertical: z.string().optional().describe('Vertical del servicio. Valores comunes: tecnologia, consultoria, kinesiologia, psicologia, dental, nutricion, fonoaudiologia, terapia-ocupacional, medicina, veterinaria, educacion, fitness, legal, belleza, hogar. Omitir para buscar en todas las verticales.'),
      location: z.string().optional().describe('City or district to filter by (e.g. "santiago", "providencia"). Omit for country-wide results.'),
      country: z.string().default('cl').describe('ISO 3166-1 alpha-2 country code (e.g. "cl", "mx", "ar"). Default: "cl"'),
      limit: z.number().default(10).describe('Max results to return (1-100). Default: 10'),
    }),
  • The tool definition object exported as 'registry.search' within registryTools. This gets imported and registered via the MCP server in index.ts.
    export const registryTools = {
      'registry.search': {
        description:
          'Search for Servicialo-compatible organizations by vertical, location, and country. ' +
          'Use this as the primary discovery tool when a user needs a service ' +
          '(e.g., "find a physiotherapist in Santiago"). ' +
          'Do NOT use if you already have an org_slug (use registry.get_organization instead). ' +
          'Returns a ranked list of organizations with names, slugs, and service summaries.',
        schema: z.object({
          vertical: z.string().optional().describe('Vertical del servicio. Valores comunes: tecnologia, consultoria, kinesiologia, psicologia, dental, nutricion, fonoaudiologia, terapia-ocupacional, medicina, veterinaria, educacion, fitness, legal, belleza, hogar. Omitir para buscar en todas las verticales.'),
          location: z.string().optional().describe('City or district to filter by (e.g. "santiago", "providencia"). Omit for country-wide results.'),
          country: z.string().default('cl').describe('ISO 3166-1 alpha-2 country code (e.g. "cl", "mx", "ar"). Default: "cl"'),
          limit: z.number().default(10).describe('Max results to return (1-100). Default: 10'),
        }),
        handler: async (client: ServicialoAdapter, args: { vertical?: string; location?: string; country?: string; limit?: number }) => {
          const result = await client.pub.get('/api/servicialo/registry', {
            vertical: args.vertical,
            location: args.location,
            country: args.country ?? 'cl',
            limit: args.limit,
          });
          return result;
        },
      },
  • Import of registryTools from the registry module.
    import { registryTools } from './tools/public/registry.js';
  • Registration of registryTools into publicTools Record, which is later registered via registerTools() at line 165. The tool name 'registry.search' is converted to 'registry_search' (dots replaced with underscores).
    ...registryTools as unknown as Record<string, ToolDef>,
Behavior3/5

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

No annotations are provided, so description carries full burden. It discloses that results are ranked and returns names, slugs, and service summaries, but does not explain ranking criteria, authentication needs, rate limits, or pagination beyond the limit parameter. Adequate but not fully detailed.

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 with no fluff. First sentence states purpose, second gives usage guidance, third describes output. Front-loaded and efficient.

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?

No output schema, but description partially compensates by mentioning return fields (names, slugs, service summaries). However, it lacks details on response structure (e.g., array format). Overall, sufficient for a search tool with optional parameters.

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 coverage is 100% with descriptions for all 4 parameters. The description adds minimal extra meaning beyond summarizing the use case (e.g., 'by vertical, location, and country'). No new parameter details, so baseline 3 is appropriate.

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 clearly states 'Search for Servicialo-compatible organizations by vertical, location, and country' with a specific verb and resource. It also distinguishes from sibling tool registry_get_organization by noting when not to use it.

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

Usage Guidelines5/5

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

Explicitly says to use as primary discovery tool and provides an example ('find a physiotherapist in Santiago'). Also states not to use if org_slug is known, directing to registry_get_organization. No exclusions but clear context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/servicialo/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server