Skip to main content
Glama
server-noonien

server-noonien

Official

Update Relations

update_relations
Destructive

Change existing relation types or repoint endpoints instead of deleting and recreating. Entries match current from/to/relationType; missing matches are reported while others continue.

Instructions

Prefer this to deleting a relation and creating another: change the type of existing relations and/or repoint their endpoints. Each entry is matched by its current from, to and relationType; a missing match is reported, not thrown, so the batch keeps its other entries.

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": {
      "relations": "<relations>"
    },
    "name": "update_relations"
  }
}

Input Schema

NameRequiredDescriptionDefault
relationsYesOne entry per relation: its current from/to/relationType and the new values

Output Schema

NameRequiredDescriptionDefault
resultsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.1.3
    • addedInput schema / properties / relations / description
      Added value: +"One entry per relation: its current from/to/relationType and the new values"
  2. Addedv1.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=false, so the safety profile is covered. The description adds material behavior beyond that: entries are keyed on the current from/to/relationType triple, and a non-matching entry is reported rather than thrown, so the rest of the batch still applies. It omits what happens when multiple relations share the same triple, which matters for a destructive mutation.

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?

Two sentences, both earning their place: the first front-loads the preference and the operation, the second carries the matching and partial-failure semantics. No restatement of the title or of schema-documented details.

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?

An output schema exists, so return values need no explanation, and the description covers the two things an agent most needs for a destructive batch mutation: match key and partial-failure behavior. Remaining gaps are edge cases such as duplicate-match ambiguity and permission requirements.

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%, so the baseline is 3, but the description contributes matching-key semantics the schema does not state: the from/to/relationType fields are the lookup key, while the new* fields are the replacement values. That is real added meaning for the single array parameter.

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: change the type of existing relations and/or repoint their endpoints. It also explicitly frames the tool as the alternative to the delete-plus-create pattern, which lets an agent distinguish it from delete_relations and create_relations without opening any schema.

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?

"Prefer this to deleting a relation and creating another" gives a concrete when-to-use rule with the alternative named. It stops short of explicit exclusions (e.g. that brand-new relations still need create_relations), so an agent must infer the boundary, but the positive guidance is clear.

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