Skip to main content
Glama

candidate_add_tag

Add tags to candidate profiles in Ashby ATS to organize and categorize applicants for better hiring pipeline management.

Instructions

Add a tag to a candidate. Use candidate_tag_list to find tag IDs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
candidateIdYesThe candidate ID
tagIdYesThe tag ID to add

Implementation Reference

  • The handler for all tools, including candidate_add_tag, routes requests to the configured Ashby API endpoint using the AshbyClient.
    @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}")]
  • Definition and schema for the candidate_add_tag tool.
    types.Tool(
        name="candidate_add_tag",
        description="Add a tag to a candidate. Use candidate_tag_list to find tag IDs.",
        inputSchema={
            "type": "object",
            "properties": {
                "candidateId": {"type": "string", "description": "The candidate ID"},
                "tagId": {"type": "string", "description": "The tag ID to add"},
            },
            "required": ["candidateId", "tagId"],
        },
    ),
  • Registration of candidate_add_tag in the TOOL_ENDPOINT_MAP.
    "candidate_add_tag": "/candidate.addTag",
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 this is an 'Add' operation (implying mutation) but doesn't disclose permissions needed, whether the operation is idempotent, what happens if the tag already exists, rate limits, or error conditions. The description adds minimal behavioral context beyond the basic action.

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 with just two sentences that both serve clear purposes: the first states the core functionality, the second provides implementation guidance. There's zero wasted language and it's appropriately front-loaded with the primary action.

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 mutation tool with no annotations and no output schema, the description is insufficiently complete. It doesn't explain what the tool returns, error conditions, side effects, or important behavioral characteristics. While concise, it leaves too many contextual gaps for a tool that modifies data.

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?

With 100% schema description coverage, the schema already documents both parameters adequately. The description adds marginal value by implying that tag IDs should be obtained from 'candidate_tag_list', but doesn't provide additional semantic context about parameter formats, validation, or relationships beyond what the schema provides.

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 ('Add a tag') and target resource ('to a candidate'), providing a specific verb+resource combination. However, it doesn't explicitly differentiate from sibling tools like 'candidate_create_note' or 'candidate_tag_list' beyond mentioning the latter as a prerequisite.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides implied usage guidance by referencing 'candidate_tag_list' as a way to find tag IDs, suggesting this tool should be used after tag discovery. However, it doesn't explicitly state when to use this tool versus alternatives or mention any exclusions or prerequisites beyond the tag ID requirement.

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