Skip to main content
Glama
discava

discava – Business Directory for AI

get_rankings

Retrieve top-ranked businesses by demand score from Discava's global directory. Filter by country, category, or city to find high-demand local businesses.

Instructions

Get top businesses by demand score.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
countryYesISO country code (required)
categoryNoCategory slug or name
cityNoCity name
limitNoResults (1-20)
langNoLanguage for labelsen

Implementation Reference

  • The tool 'get_rankings' is defined and implemented within the server.tool() registration in server.ts. It fetches ranking data from the /ranking API endpoint based on provided search parameters.
    server.tool(
      'get_rankings',
      'Get top businesses by demand score.',
      {
        country: z.string().describe('ISO country code (required)'),
        category: z.string().optional().describe('Category slug or name'),
        city: z.string().optional().describe('City name'),
        limit: z.number().optional().default(10).describe('Results (1-20)'),
        lang: z.string().optional().default('en').describe('Language for labels'),
      },
      async ({ country, category, city, limit, lang }) => {
        const params = new URLSearchParams({ country });
        if (category) params.set('category', category);
        if (city) params.set('city', city);
        if (limit) params.set('limit', String(limit));
        if (lang) params.set('lang', lang);
        return jsonContent(await api(`/ranking?${params}`));
      }
    );
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It states what the tool does but doesn't mention whether it's read-only, has rate limits, authentication requirements, or what the output format looks like. For a tool with 5 parameters and no output schema, this is inadequate.

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 wasted words. It's appropriately sized for a simple retrieval tool and gets straight to the point without unnecessary elaboration.

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

Completeness2/5

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

For a tool with 5 parameters, no annotations, and no output schema, the description is insufficient. It doesn't explain what 'demand score' means, what the output format looks like, or provide any behavioral context. The agent would need to guess about important aspects of tool behavior.

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 all parameters thoroughly. The description doesn't add any parameter-specific information beyond what's in the schema, which meets the baseline expectation when schema coverage is high.

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 action ('Get') and resource ('top businesses by demand score'), making the purpose understandable. However, it doesn't distinguish this tool from sibling tools like 'search_businesses' or 'get_business', which likely retrieve business data in different ways.

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?

The description provides no guidance on when to use this tool versus alternatives like 'search_businesses' or 'get_business'. It lacks context about when this ranking-focused tool is appropriate compared to other business retrieval tools.

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/discava/mcp-server'

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