Skip to main content
Glama

add_dependency

Add a task dependency: the downstream task waits until the upstream completes. Automatic cycle detection and waiting state assignment.

Instructions

添加任务依赖关系。下游任务必须等上游任务完成后才能开始。自动进行环检测。添加后下游任务自动进入等待状态。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
upstream_idYes上游任务 ID(需先完成)
downstream_idYes下游任务 ID(依赖上游完成后才能开始)
dep_typeNo依赖类型,默认 finish_to_startfinish_to_start
Behavior4/5

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

Given no annotations, the description discloses important behaviors: automatic cycle detection and auto-transition of downstream task to waiting state. This goes beyond just stating the function.

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?

Three concise sentences convey all necessary information with no superfluous words. Front-loaded with the main purpose.

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?

For a tool with 3 parameters and no output schema, the description covers the purpose, behavior, and parameter effects completely. No gaps are apparent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with descriptions for each parameter. The description adds value by explaining the effect of the parameters (e.g., downstream enters waiting) beyond the schema's definitions.

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 clearly states the action ('add dependency between tasks'), the direction ('downstream waits for upstream'), and contrasts with sibling tools like 'remove_dependency' and 'get_task_dependencies' by focusing on creation.

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 mentions automatic cycle detection, implying safe usage, but does not explicitly state when to use this tool over alternatives. However, the context provided is sufficient for typical use.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/liuboacean/agent-comm-hub'

If you have feedback or need assistance with the MCP directory API, please join our Discord server