Skip to main content
Glama
houtini-ai

YubHub MCP Server

by houtini-ai

get_categories

Retrieve job counts categorized by sector with experience level breakdown for entry, mid, and senior positions.

Instructions

Get job counts by category/sector with experience level breakdown (entry, mid, senior).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function that executes the get_categories tool logic. Fetches category data from API client, formats it into a markdown table with category names, total counts, and breakdowns by experience level (entry, mid, senior).
      private async getCategories() {
        const { data } = await this.apiClient.getCategories();
        const rows = data.map(c =>
          `| ${c.category} | ${c.count} | ${c.entry_count} | ${c.mid_count} | ${c.senior_count} |`
        ).join('\n');
        return {
          content: [{
            type: 'text',
            text: `**Job Categories with Experience Breakdown**
    
    | Category | Total | Entry | Mid | Senior |
    |----------|-------|-------|-----|--------|
    ${rows}`,
          }],
        };
      }
  • TypeScript interface defining the structure of category statistics returned by the API, including category name, total count, and counts for each experience level.
    export interface CategoryStat {
      category: string;
      count: number;
      entry_count: number;
      mid_count: number;
      senior_count: number;
    }
  • src/index.ts:606-613 (registration)
    Tool registration defining the tool name, description, and input schema (no parameters required).
    {
      name: 'get_categories',
      description: 'Get job counts by category/sector with experience level breakdown (entry, mid, senior).',
      inputSchema: {
        type: 'object',
        properties: {},
        additionalProperties: false
      }
  • API client helper method that makes the HTTP request to /stats/categories endpoint and returns category statistics data.
    async getCategories(): Promise<{ data: CategoryStat[] }> {
      return this.request('/stats/categories');
    }
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the tool retrieves aggregated job data but doesn't cover critical aspects like whether it's read-only (implied by 'Get'), rate limits, authentication needs, data freshness, or error handling. For a tool with zero annotation coverage, this leaves significant gaps in understanding its operational behavior.

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 that front-loads the core functionality ('Get job counts by category/sector') and adds necessary detail ('with experience level breakdown (entry, mid, senior)'). There is no wasted verbiage, making it highly concise and well-structured for quick comprehension.

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 complexity (aggregating job data with breakdowns), no annotations, and no output schema, the description is minimally adequate. It specifies the data retrieved but lacks details on format, pagination, or error cases. For a read operation with no parameters, it meets basic needs but doesn't fully address potential agent uncertainties about behavior or output structure.

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?

The input schema has 0 parameters with 100% coverage, so no parameter documentation is needed. The description adds value by explaining what data is retrieved ('job counts by category/sector with experience level breakdown'), which clarifies the output semantics beyond the empty schema. This compensates appropriately for the lack of parameters.

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 tool's purpose: 'Get job counts by category/sector with experience level breakdown (entry, mid, senior).' It specifies the verb ('Get'), resource ('job counts'), and granularity ('by category/sector' with 'experience level breakdown'). However, it doesn't explicitly differentiate from siblings like 'get_stats_overview' or 'get_experience_levels', which might overlap in scope, preventing a perfect score.

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. It doesn't mention prerequisites, exclusions, or compare it to siblings such as 'get_stats_overview' or 'get_experience_levels', which could offer similar or complementary data. Without this context, the agent must infer usage from the purpose alone.

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/houtini-ai/yubhub'

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