Skip to main content
Glama

Update a relationship

update_relationship
Idempotent

Update an existing relationship in place without changing its semantic relationship_type. Confirmation measures the join and derives cardinality unless either column's values are withheld; then no join runs and a stated cardinality is an unvalidated assertion. Use rejected=true with rejection_reason for an explicit negative.

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": {
      "relationship_id": "<relationship_id>"
    },
    "name": "update_relationship"
  }
}

Input Schema

NameRequiredDescriptionDefault
rejectedNoRecord a considered rejection. True requires rejection_reason; false confirms using measured join statistics.
cardinalityNoOptional cardinality assertion (1:1 or N:1), which must match the measured result; N:1 is also accepted where only measured uniqueness, not a declared key, makes it 1:1.
is_approvedNoOptional approval state to persist on the relationship.
relationship_idYesRelationship UUID to update
rejection_reasonNoReason for rejecting the candidate; requires an explicit rejection.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior4/5

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

Beyond the annotations (which only declare idempotent, non-destructive, closed-world), the description discloses real mechanics: confirmation runs a join and derives cardinality, and if column values are withheld no join runs and a stated cardinality becomes an unvalidated assertion. That is meaningful context an agent could not infer from the structured fields, though permissions and partial-update behavior remain unstated.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded and there is no filler, but the middle sentence ("Confirmation measures the join and derives cardinality unless either column's values are withheld; then no join runs...") is dense and its subject is ambiguous, requiring re-reading.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with a simple flat schema and no output schema, the description covers the core validation semantics. It still leaves gaps an agent would care about: whether unspecified fields are preserved, whether the operation requires approval rights, and what happens on a cardinality mismatch (error vs. override).

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 coverage is 100%, so all five parameters are already documented, and the description largely restates the rejected/rejection_reason coupling. It does add the nuance that a supplied cardinality is only an assertion when values are withheld, but says nothing about is_approved, which the schema must carry alone.

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?

"Update an existing relationship in place without changing its semantic relationship_type" states a specific verb, resource, and an important scope restriction. It is clearly distinguishable from create_relationship/delete_relationship by the 'existing'/'in place' framing, though no sibling is named explicitly.

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?

It gives one concrete routing rule — use rejected=true with rejection_reason for an explicit negative — and implicitly covers the confirmation path. However, it never says when to choose this over create_relationship or delete_relationship, and no prerequisites or exclusions are stated.

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