Skip to main content
Glama

Unlink email from job

unlink_job_email
DestructiveIdempotent

Detach one email from a job, returning it to the unresolved pool. Use it when an email was filed on the wrong job; link_job_email re-attaches it. Any status the email already applied to the job stays, a pending status suggestion it raised for this job is dismissed, and the detach is logged on the job's activity. The email itself is not deleted. Calling it for an email not on the job changes nothing. Returns {unlinked: emailId}.

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": "unlink_job_email"
  }
}

Input Schema

NameRequiredDescriptionDefault
jobIdYesJob the email is currently linked to (UUID from list_jobs).
emailIdYesLinked email id, from 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?

The annotations declare destructiveHint=true and idempotentHint=true, but the description adds the details an agent actually needs to reason about that destructiveness: existing job statuses survive, a pending status suggestion is dismissed, the detach is logged on the job activity, and the email itself is not deleted. That last point materially softens the destructive hint in a way the structured fields cannot express.

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?

Four compact sentences, front-loaded with purpose and effect, followed by usage, then side effects, then the return value. Each sentence carries distinct information and nothing is repeated from the schema or annotations.

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 spells out the return value, the no-op behavior, and all side effects of the detach. For a two-parameter mutation with full schema coverage and annotations, nothing an agent needs to invoke it correctly is missing.

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 coverage is 100% and both parameters already document their provenance (list_jobs, list_job_emails), so the description correctly does not restate them. It adds the response shape ({unlinked: emailId}) but no extra meaning for the two inputs, so the baseline of 3 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 opens with a specific verb and resource: 'Detach one email from a job,' and immediately states the side effect ('returning it to the unresolved pool'). That scope plus the explicit contrast with link_job_email lets an agent separate it from the sibling tools without opening a 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 names the triggering situation ('when an email was filed on the wrong job') and points to the alternative that reverses it ('link_job_email re-attaches it'). It also states the no-op case ('Calling it for an email not on the job changes nothing'), which removes a common ambiguity for the caller.

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