Skip to main content
Glama

Link email to job

link_job_email
Idempotent

Attach an ingested email to a job by hand, pulling in the rest of its conversation (same thread) and other unlinked mail on the job's profile that looks like it is about this job. Use it to file mail from list_unresolved_emails or move a mis-filed email from another job; to detach use unlink_job_email. The emails are replayed oldest to newest, so a newer one can change the job's status or raise a status suggestion, while one older than the job's latest status-setting email only attaches. Re-linking does not re-apply emails already applied. An email the caller cannot reach is 404. Returns the job's full email list afterwards, as list_job_emails does.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "jobId": "<jobId>",
      "emailId": "<emailId>"
    },
    "name": "link_job_email"
  }
}

Input Schema

NameRequiredDescriptionDefault
jobIdYesJob to attach the email to (UUID from list_jobs).
emailIdYesIngested email id, from list_unresolved_emails or another job's list_job_emails.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations, the description discloses important side effects: it pulls in the same thread and other unlinked mail that looks related, replays emails oldest to newest, and may change job status or raise a status suggestion. It also explains the 404 condition for unreachable email and states what the tool returns.

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 dense but well ordered: purpose first, then usage alternatives, then behavioral nuances, then return behavior. Each sentence contributes useful information for a tool with non-obvious replay and thread-pulling behavior.

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

Completeness5/5

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

Although there is no output schema, the description explains that it returns the job's full email list afterwards, as list_job_emails does. For a two-parameter mutation tool, the description covers the relevant usage, side effects, idempotency nuance, error condition, and return shape.

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%, and both parameters are already documented as UUIDs from list_jobs and list_unresolved_emails or another job's list_job_emails. The description reinforces the email source context but does not add significant per-parameter meaning beyond the schema, so the baseline is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: manually attaching an ingested email to a job. It also distinguishes the operation from sibling tools such as unlink_job_email and list_job_emails, so an agent can identify the tool without opening the schema.

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

Usage Guidelines5/5

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

It gives explicit when-to-use cases: filing mail from list_unresolved_emails or moving a mis-filed email from another job. It also names the detach alternative, unlink_job_email, and explains that re-linking does not re-apply already applied emails.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources