Skip to main content
Glama

Align entities

align_entities
Idempotent

Create an alignment edge from a source entity to a target entity (e.g. a task to a goal, a project to a goal, a goal to a strategy), which places the source under the target in the alignment hierarchy. Idempotent: repeating the call for an existing edge changes nothing. Both IDs must already exist (find them with the list_ tools). Recorded in the audit log as an AI action and triggers a Work Graph recompute; aligning a task also closes its pending alignment suggestions. Undo with remove_alignment. Returns { status: "ALIGNED" } with the edge.

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": {
      "sourceType": "<sourceType>",
      "sourceId": "<sourceId>",
      "targetType": "<targetType>",
      "targetId": "<targetId>"
    },
    "name": "align_entities"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceIdYesSource entity ID
targetIdYesTarget entity ID
sourceTypeYesSource entity type: TASK, GOAL, KPI, or PROJECT
targetTypeYesTarget entity type: STRATEGY, GOAL, KPI, or PROJECT
relationTypeNoRelationship type: CONTRIBUTES_TO (default) or ALIGNED_TO

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses side effects (audit log entry as an AI action, Work Graph recompute, closing pending alignment suggestions for tasks) and states the return shape { status: "ALIGNED" }. The idempotency claim corroborates the idempotentHint annotation rather than contradicting it, and the explicit undo path adds recovery context.

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?

Front-loaded with the core action and hierarchy effect, then layers prerequisites, side effects, and undo in a logical order. It is dense but nearly every clause carries information; the return-value sentence could arguably be trimmed but is not wasteful.

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?

Though no output schema exists, the description supplies the return value, the side effects, the prerequisite, and the reversal path for a four-required-parameter mutation tool. An agent has everything needed to call it correctly and recover from a mistake.

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?

With 100% schema coverage the baseline is 3; the description earns a bump by clarifying directionality (source goes under target) and by giving entity-pair examples that map onto the sourceType/targetType parameters. It does not, however, add any meaning for relationType beyond what the schema already says.

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?

States a specific verb and resource ('Create an alignment edge from a source entity to a target entity') and immediately explains the semantic effect: the source is placed under the target in the alignment hierarchy. Concrete examples (task to goal, project to goal, goal to strategy) make the operation unambiguous and distinguish it from sibling create_* tools.

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?

Gives clear context for use, a hard prerequisite ('Both IDs must already exist (find them with the list_ tools)'), and names the inverse operation ('Undo with remove_alignment'). The one gap is that it never explains when to pick CONTRIBUTES_TO versus ALIGNED_TO, so the agent must guess at that fork.

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