Skip to main content
Glama

Unlink a payment

loan_unlink_payment
Destructive

Undo a payment link, with a reason. The row goes back to how it was reviewed; the balance moves back. For a link that was wrong, or to relink it with the lender's split once the statement arrives. Say so to the person. Effects: payment unlinked; the row back to its earlier review.

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": {
      "loan_id": "<loan_id>",
      "payment_id": "<payment_id>",
      "reason": "<reason>"
    },
    "name": "loan_unlink_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonYesWhy.
loan_idYesThe loan. An existing loan_loan id.
payment_idYese.g. LP-0001.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/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 real detail beyond that: the row reverts to its earlier review state and the balance moves back, telling the agent exactly which entities change. It stops short of explaining reversibility of the undo itself.

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?

Short and front-loaded, with the effect statement compactly listed. A couple of fragments such as "Say so to the person." are ambiguous and consume space without adding much actionable information.

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 destructive, non-idempotent mutation with no output schema, the description covers the state change well but says nothing about what the call returns or whether the unlink can be reversed. Adequate, but a gap remains for an agent verifying the outcome.

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 loan_id, payment_id and reason are already documented in the schema. The description only echoes that a reason is required ("with a reason") and adds no format or lookup guidance for the IDs, which is the baseline for full schema coverage.

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?

States a specific verb+resource ("Undo a payment link") and makes the inverse relationship to loan_link_payment obvious through the word "Undo" plus "relink it". However it never names the sibling tool explicitly, so differentiation is implied rather than stated.

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 two concrete when-to-use cases: a link that was wrong, or relinking with the lender's split once the statement arrives. No explicit when-not or named alternative, but the context is clear enough for an agent to select it.

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.