Skip to main content
Glama

search_companies_by_address

Find Swiss companies registered at a specific address or locality using open data. Input an address to retrieve company registrations with optional result limits.

Instructions

Search Swiss companies registered at a specific address or locality

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addressYesAddress or locality name
limitNoMax results (default: 20)

Implementation Reference

  • The handler function implementation for the "search_companies_by_address" tool in src/modules/companies.ts.
    case "search_companies_by_address": {
      const body = {
        name: args.address as string,
        maxEntries: (args.limit as number) ?? 20,
        languageKey: "en",
      };
      const response = await fetch(`${BASE}/firm/search.json`, {
        method: "POST",
        headers: { "Content-Type": "application/json", "Accept": "application/json" },
        body: JSON.stringify(body),
      });
      if (response.status === 404) return JSON.stringify({ companies: [], hasMoreResults: false }, null, 2);
      if (!response.ok) throw new Error(`HTTP ${response.status}: ${response.statusText}`);
      const data = await response.json() as { list?: unknown[]; hasMoreResults?: boolean; error?: unknown };
      if (data.error) return JSON.stringify({ companies: [], hasMoreResults: false }, null, 2);
      return JSON.stringify({ companies: data.list ?? [], hasMoreResults: data.hasMoreResults ?? false }, null, 2);
    }
  • The registration and schema definition for "search_companies_by_address".
      name: "search_companies_by_address",
      description: "Search Swiss companies registered at a specific address or locality",
      inputSchema: {
        type: "object",
        required: ["address"],
        properties: {
          address: { type: "string", description: "Address or locality name" },
          limit: { type: "number", description: "Max results (default: 20)" },
        },
      },
    },
Behavior2/5

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

No annotations are provided, so the description carries full burden. It states the search action but doesn't disclose behavioral traits like rate limits, authentication needs, response format, pagination, or whether it's read-only. For a search tool with no annotations, this leaves significant gaps in understanding its operation.

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?

The description is a single, efficient sentence with zero waste. It's front-loaded with the core purpose and appropriately sized for a simple search tool.

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?

Given the tool's moderate complexity (search with filtering), no annotations, and no output schema, the description is incomplete. It covers the basic purpose but lacks details on behavior, output format, and usage context, which are needed for effective agent operation.

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 both parameters ('address' and 'limit'). The description adds minimal value beyond the schema by implying the address parameter is for searching, but doesn't provide additional context like format examples or search behavior details.

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?

The description clearly states the verb 'search' and resource 'Swiss companies', with the specific scope 'registered at a specific address or locality'. It distinguishes from the generic sibling 'search_companies' by specifying address-based filtering, though it doesn't explicitly mention that distinction.

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?

No guidance is provided on when to use this tool versus alternatives like 'search_companies' or 'get_company'. The description implies usage for address-based queries but doesn't mention prerequisites, exclusions, or specific scenarios where this tool is preferred.

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/vikramgorla/mcp-swiss'

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