Skip to main content
Glama

Link a product to an app

link_product
DestructiveIdempotent

Say which app a payment product belongs to, so its revenue shows up on that app. Needs write access. Pass app: null to unlink. Only link when it's clear from the code or product name.

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": {
      "product_id": "<product_id>",
      "app": "<app>"
    },
    "name": "link_product"
  }
}

Input Schema

NameRequiredDescriptionDefault
appYesApp slug, domain or URL, or null to unlink
product_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, and idempotentHint=true, so the write/destructive profile is covered. 'Needs write access' merely restates readOnlyHint=false, and the unlink instruction duplicates the schema's own 'null to unlink' text; the description adds little behavioral context beyond what structured fields already convey, and says nothing about what happens to an existing link when a different app is passed.

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, each carrying distinct information (purpose, permission requirement, unlink escape hatch, linking caution), with the core purpose front-loaded and no filler.

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?

For a two-parameter mutation with no output schema and annotations covering safety, this is nearly sufficient: purpose, auth need, unlink behavior, and a linking caution are all present. The remaining gap is product_id semantics and what happens to a pre-existing link, but those are minor for a tool this simple.

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%: the app parameter is fully documented in the schema, including the null-to-unlink case the description repeats. product_id has no schema description and the description does not explain it either, so the uncovered half remains unexplained; baseline 3 is appropriate given partial schema coverage.

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 ('Say which app a payment product belongs to') and adds the observable effect ('so its revenue shows up on that app'). This is clearly distinguishable from add_app, update_app, and the other app-related siblings, which manage the app itself rather than product-to-app association.

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 a real gating rule: 'Only link when it's clear from the code or product name,' which tells the agent when not to call it. It also documents the unlink path ('Pass app: null'), but names no sibling alternative for cases where the association is ambiguous, so it stops short of full when/when-not/alternatives guidance.

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