Skip to main content
Glama

Link or unlink a contact and a job

link_contact_to_job
Idempotent

Say this person is part of a job (or, with unlink, no longer is). An archived contact takes no new link (409): ask the user, restore it with archive_contact (restore: true), then link it.

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": {
      "id": "<id>",
      "jobId": "<jobId>"
    },
    "name": "link_contact_to_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesContact id.
jobIdYesJob id (UUID from list_jobs).
unlinkNoTrue to remove the link instead.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior3/5

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

The annotations already declare non-read-only, idempotent and non-destructive, so the safety profile is covered. The description's real contribution is the 409 failure mode for archived contacts plus the remediation sequence. It does not say whether unlinking removes history or any side effects, but for an idempotent link operation the added context is reasonable.

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?

Two tight sentences, no redundancy, and the primary action comes before the conditional error path. Every clause carries information an agent needs.

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

Completeness4/5

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

With annotations handling safety and no output schema to explain, the description covers the main operational hazard (archived contacts) and whom to hand off to. The only omission is post-call expectations or whether unlinking has side effects, which is minor for a simple association tool.

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 each parameter carries its own description, so the schema does the explanatory work. The description only restates the unlink flag's effect and implies the id/jobId pair; with full coverage a baseline 3 is appropriate.

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 states the effect concretely: establishing (or removing, via the unlink flag) an association between a contact and a job. That distinguishes it from the email-link siblings by naming the entities. It relies slightly on the title for the link/unlink framing but the action and both resources are unambiguous.

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

Usage Guidelines4/5

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

It specifies the unlink branch (use the unlink flag to remove rather than add a link) and gives an explicit recovery path for the archived-contact case: ask the user, restore with archive_contact (restore: true), then retry. It does not address when to prefer this over link_job_email, but that tool operates on a different resource, so the guidance gap is small.

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