Skip to main content
Glama

add_dependency

Define task dependencies in OmniPlan by linking a predecessor and successor task, specifying dependency type (finish-to-start, start-to-start, etc.) and optional lead time.

Instructions

Add a dependency from predecessor to successor.

Args: predecessor_id: uniqueID of the prerequisite task. successor_id: uniqueID of the dependent task. kind: One of "FS" (finish-to-start, default), "SS", "FF", "SF". lead_time_seconds: Lead time before the successor can start, in work-seconds. Defaults to 0. Negative values are not supported here; if you need lag in the other direction, model it as a different dependency kind.

Returns: JSON {predecessor_id, successor_id, kind, lead_time_seconds}. lead_time_seconds is read back via dep.leadTimeDuration.workSeconds after the write — a true round-trip, not an echo. When no Duration is set on the dependency (e.g. lead_time_seconds=0), the field is reported as 0 rather than null.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
predecessor_idYes
successor_idYes
kindNoFS
lead_time_secondsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

With no annotations provided, the description fully discloses behavior: it adds a dependency, returns JSON with round-trip values, explains the `lead_time_seconds` read-back via `dep.leadTimeDuration.workSeconds`, and notes edge case when `lead_time_seconds=0`. No contradictions.

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?

Well-structured with clear 'Args' and 'Returns' sections. The first sentence is concise. Slightly lengthy due to detailed parameter descriptions, but justified given the schema lacks descriptions. No superfluous content.

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?

Covers parameters, return format, and important nuances like round-trip and default behavior. Lacks discussion of error conditions (e.g., duplicate dependencies), but overall complete for typical usage. Output schema exists but description adds useful context.

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

Parameters5/5

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

Schema description coverage is 0%, so the description adds full meaning. It explains each parameter's role, default values, allowed enum values for 'kind', and constraints on 'lead_time_seconds'. Substantially adds value beyond the bare schema.

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 tool's action: 'Add a dependency from predecessor to successor.' It uses specific verb+resource and distinguishes from sibling 'remove_dependency'.

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?

No explicit guidance on when to use this tool versus alternatives like 'remove_dependency' or 'list_dependencies'. Usage is implied by the tool name but not elaborated.

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/johntrandall/omniplan-mcp'

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