Skip to main content
Glama

Attach Task Relationships

attach-task-to-entities-tool
Idempotent

Attach a task to companies, people, opportunities, or assign to users. Adds links without removing existing ones.

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>"
    },
    "name": "attach-task-to-entities-tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe task ID.
people_idsNoPeople IDs to attach this task to.
company_idsNoCompany IDs to attach this task to.
assignee_idsNoUser IDs to assign this task to. Use whoami tool to discover valid user IDs.
opportunity_idsNoOpportunity IDs to attach this task to.

Output Schema

NameRequiredDescriptionDefault
dataYes
relationship_countsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / assignee_ids / items
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / company_ids / items
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / opportunity_ids / items
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / people_ids / items
      Added value: +{
      +  "type": "string"
      +}
  2. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare idempotentHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered structurally. The description adds the meaningful detail that existing links are preserved (additive semantics), which annotations alone don't express, but it says nothing about failure modes for invalid IDs or what the response contains.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences with the action and the additive guarantee front-loaded, and no filler. It is efficiently sized for a five-parameter attach tool, though it could have traded a clause for a pointer to the detach sibling.

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 an output schema present and full schema coverage on five parameters, the description only needs to convey purpose and additive behavior, which it does. Minor gaps remain around invalid-ID handling and whether at least one entity array must be supplied, but nothing critical to correct invocation 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 description coverage is 100%, so every parameter is already documented in the schema, including the whoami hint for assignee_ids. The description echoes the entity types but adds no syntax, cardinality, or format detail beyond what the schema provides, so it sits at the baseline.

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 names a specific verb ('Attach') and resource ('a task') and enumerates the target entity types (companies, people, opportunities, users), which maps cleanly onto the four optional ID arrays. It does not name the sibling detach-task-from-entities-tool, so the agent gets a clear purpose but no explicit differentiation.

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?

'Adds links without removing existing ones' implies this is the additive counterpart to a detach/replace operation, which is useful contextual guidance. However, it never states when to use this versus detach-task-from-entities-tool or create-task-tool, and offers no prerequisites beyond the schema note about whoami for user IDs.

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.