Skip to main content
Glama

candidate_info

Retrieve detailed candidate information from Ashby ATS using a candidate ID to access profile data and application details.

Instructions

Get full details of a single candidate by ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe candidate ID (UUID)

Implementation Reference

  • The handler function that processes tool calls by mapping the tool name to an Ashby API endpoint and executing the request.
    @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}")]
  • Tool definition and schema for candidate_info.
    types.Tool(
        name="candidate_info",
        description="Get full details of a single candidate by ID.",
        inputSchema={
            "type": "object",
            "properties": {
                "id": {"type": "string", "description": "The candidate ID (UUID)"},
            },
            "required": ["id"],
        },
    ),
  • Mapping registration for candidate_info tool to the /candidate.info API endpoint.
    "candidate_info": "/candidate.info",
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states it 'Get full details' but doesn't specify what 'full details' includes, whether it's a read-only operation, requires authentication, has rate limits, or error behaviors. This leaves significant gaps for a tool that retrieves data.

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 directly states the tool's function without unnecessary words. It's appropriately sized and front-loaded, making it easy to parse quickly.

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?

Given the complexity of retrieving candidate details, no annotations, and no output schema, the description is incomplete. It doesn't explain what 'full details' entails, potential response formats, or error handling, which are crucial for an AI agent to use this tool effectively.

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 schema description coverage is 100%, with the parameter 'id' documented as 'The candidate ID (UUID)'. The description adds no additional parameter semantics beyond this, such as format examples or constraints, so it meets the baseline for high schema coverage without extra value.

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 ('Get') and resource ('full details of a single candidate'), making the purpose understandable. However, it doesn't distinguish this tool from sibling tools like 'candidate_list' or 'candidate_search' that also retrieve candidate information, 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 no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites like needing a candidate ID or compare it to sibling tools such as 'candidate_list' for multiple candidates or 'candidate_search' for filtering, leaving usage context unclear.

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