Skip to main content
Glama

Get a saved payment link

get_payment_link
Read-only

Retrieves a saved invoice payment link by invoice ID or name/note so you can resend or share it; the server does not send messages.

Instructions

Use when the user wants to resend, share or find the payment link for an invoice ("send Acme their link again", "what was the link for the logo invoice?"). Returns the saved link for the user to send; this server never sends messages. Pass the invoice ID or who.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_payment_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
whoNoName or note the invoice was created with, e.g. "Acme".
requestIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, and the description adds a genuinely non-obvious trait: 'this server never sends messages', clarifying that the tool only retrieves and delivery is the caller's job. It stops short of saying what happens when no link is found (empty result vs. error) or whether links expire.

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?

Three short sentences: trigger and examples first, then the return behavior and the delivery caveat, then the identifier instruction. No filler, and the most decision-relevant information is front-loaded.

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?

With no output schema, it is right that the description states what comes back ('the saved link for the user to send'). For a two-parameter read tool this is close to complete; only the no-match/expiry behavior and the requestId parameter remain uncovered.

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 50%, and the description does add selection guidance ('Pass the invoice ID or who'). However, 'invoice ID' does not exist as a schema property (only who and requestId are defined), which is a mild inconsistency, and requestId is never mentioned — presumably idempotency-related but left for the agent to guess.

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 and resource ('Returns the saved link' for an invoice) and reinforces it with two quoted user phrasings. The word 'saved' implicitly separates it from create_payment_link, but no sibling is named, so differentiation is inferential rather than explicit.

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?

'Use when the user wants to resend, share or find the payment link for an invoice' plus two realistic example utterances gives a clear trigger context. It does not state the negative case (e.g. use create_payment_link when no link exists yet), so an agent must infer the boundary against the create sibling.

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