Skip to main content
Glama
TAMA-MCP-Server

TAMA-MCP-Server

by Gitreceiver

add_dependency

Adds a dependency between tasks by linking a task ID to a required dependency ID, enabling execution order and dependency relationships to be managed.

Instructions

为任务添加依赖项。

Args:
    task_id: 要添加依赖的任务ID (例如: "1" 或 "1.2")
    dependency_id: 要添加的依赖任务ID (例如: "1" 或 "1.2")
    
Returns:
    添加成功返回True,失败返回False

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": {
      "task_id": "<task_id>",
      "dependency_id": "<dependency_id>"
    },
    "name": "add_dependency"
  }
}

Input Schema

NameRequiredDescriptionDefault
task_idYes
dependency_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the entire behavioral burden. It does disclose the boolean return ('添加成功返回True,失败返回False'), which is genuine value, but it says nothing about permissions, cycle/duplicate handling, whether the change is reversible, or what conditions cause False.

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?

The purpose is front-loaded in one line, then Args/Returns are listed compactly with no filler. Slightly redundant that both arg descriptions share the identical ID example, but the structure is easy to scan.

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 dependency-mutating tool with no annotations and no output schema, the description covers the happy path and return value but omits failure conditions, ID format constraints beyond examples, and relationship direction. An agent could invoke it and get False without any way to understand why.

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 0%, so the description must compensate; it does explain both parameters and gives the hierarchical ID format ('1' or '1.2'), which the schema lacks. However, the direction of the relationship is ambiguous — it does not clarify whether task_id depends on dependency_id or vice versa — leaving a key semantic gap.

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 first line states a specific verb and resource: '为任务添加依赖项' (add a dependency to a task). This is clearly separable from the sibling remove_dependency and from add_task/add_subtask, though the description never explicitly names those alternatives.

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

Usage Guidelines2/5

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

There is no guidance on when to use this tool versus remove_dependency or check_dependencies, no prerequisites (e.g. whether tasks must exist, whether cycles are rejected), and no statement of when an agent should not add a dependency. Usage is only implied by the verb.

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