Skip to main content
Glama

job_search

Search for jobs by title using the Ashby ATS hiring pipeline. Returns all matching job listings without pagination.

Instructions

Search for jobs by title. Not paginated; returns all matches.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleYesThe job title to search for

Implementation Reference

  • The handle_call_tool function routes incoming MCP tool requests to the Ashby API based on the TOOL_ENDPOINT_MAP.
    @server.call_tool()
    async def handle_call_tool(name: str, arguments: dict[str, Any]) -> list[types.TextContent]:
        """Route tool calls to the correct Ashby endpoint, passing arguments directly."""
        endpoint = TOOL_ENDPOINT_MAP.get(name)
        if not endpoint:
            return [types.TextContent(type="text", text=f"Unknown tool: {name}")]
    
        try:
            # Pass arguments straight through -- tool schemas already use Ashby's
            # camelCase param names so no translation is needed.
            response = ashby.post(endpoint, data=arguments if arguments else None)
            return [types.TextContent(type="text", text=json.dumps(response, indent=2))]
        except requests.exceptions.HTTPError as e:
            error_body = ""
            if e.response is not None:
                try:
                    error_body = e.response.text
                except Exception:
                    pass
            return [
                types.TextContent(
                    type="text",
                    text=f"Ashby API error on {endpoint}: {e}\n{error_body}",
                )
            ]
        except Exception as e:
            return [types.TextContent(type="text", text=f"Error calling {endpoint}: {e}")]
  • The MCP tool schema definition for 'job_search'.
    types.Tool(
        name="job_search",
        description="Search for jobs by title. Not paginated; returns all matches.",
        inputSchema={
            "type": "object",
            "properties": {
                "title": {"type": "string", "description": "The job title to search for"},
            },
            "required": ["title"],
        },
    ),
  • The TOOL_ENDPOINT_MAP maps the 'job_search' tool name to the '/job.search' Ashby API endpoint.
    # Map tool names -> Ashby API endpoints
    TOOL_ENDPOINT_MAP = {
        "job_list": "/job.list",
        "job_info": "/job.info",
        "job_search": "/job.search",
        "candidate_list": "/candidate.list",
        "candidate_search": "/candidate.search",
        "candidate_info": "/candidate.info",
        "candidate_create": "/candidate.create",
        "candidate_create_note": "/candidate.createNote",
        "candidate_list_notes": "/candidate.listNotes",
        "candidate_add_tag": "/candidate.addTag",
        "candidate_tag_list": "/candidateTag.list",
        "application_list": "/application.list",
        "application_info": "/application.info",
        "application_create": "/application.create",
        "application_change_stage": "/application.change_stage",
        "interview_stage_list": "/interviewStage.list",
        "interview_plan_list": "/interviewPlan.list",
        "interview_list": "/interview.list",
        "interview_info": "/interview.info",
        "department_list": "/department.list",
        "user_list": "/user.list",
        "source_list": "/source.list",
        "archive_reason_list": "/archiveReason.list",
        "location_list": "/location.list",
    }
Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses key behavioral traits: the search is based on title, it's not paginated, and it returns all matches. This covers scope and output behavior but misses details like rate limits, authentication needs, or error handling. The description doesn't contradict annotations (none exist), but it's moderately informative.

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 extremely concise and front-loaded: two short sentences with zero waste. The first sentence states the purpose, and the second adds critical behavioral context. Every word earns its place, making it easy for an agent to parse quickly.

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 low complexity (one parameter, no output schema, no annotations), the description is adequate but has gaps. It explains what the tool does and its non-paginated behavior, but lacks details on output format, error cases, or integration with siblings. For a simple search tool, it's minimally viable but not fully comprehensive.

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?

The input schema has 100% description coverage, with the 'title' parameter fully documented. The description adds no additional parameter semantics beyond implying the search uses this title field. Since schema coverage is high, the baseline is 3, and the description doesn't enhance or compensate beyond that.

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: 'Search for jobs by title.' It specifies the verb ('search'), resource ('jobs'), and search criteria ('by title'). However, it doesn't explicitly differentiate from sibling tools like 'job_list' or 'candidate_search,' which prevents 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 minimal guidance: it mentions 'Not paginated; returns all matches,' which hints at usage for retrieving complete result sets. However, it lacks explicit when-to-use advice, such as comparing to 'job_list' (which might list all jobs without filtering) or 'candidate_search' (which searches candidates, not jobs). No alternatives or exclusions are named.

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/PlenishAI/mcp-ashby'

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