Skip to main content
Glama

Log a won or lost deal, or a customer who left

log_win_loss

Record the outcome of one deal or one customer (for many at once use import_win_loss), with the reason if known and the date it closed. Use outcome churned for a customer who cancelled or left, which is how consumer products usually lose people, and set segment to business or consumer when the company sells to both. This is the most valuable input: it lets Ripplewatch tie a competitor's moves, and its own gaps, to real deals. The competitor is optional because most lost deals never learn who won: log the reason anyway and Ripplewatch will still count it. A competitor that isn't tracked yet is suggested for tracking instead of rejected. Pass the real close date (closed_on), because trends over time depend on it.

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": {
      "outcome": "<outcome>"
    },
    "name": "log_win_loss"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountNoDeal value, if known.
reasonNoWhy, in the customer's own words if possible.
outcomeYeswon or lost for a deal; churned for a customer who cancelled or left.
segmentNoWhich side of the business this is, for a company that sells to both businesses and consumers. Leave out when unsure.
closed_onNoThe date the deal closed, YYYY-MM-DD. Defaults to today.
deal_nameNoThe deal or account name, if known.
competitor_nameNoThe competitor that won (or was beaten), if the deal named one. Leave out when unknown.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / outcome / description
      Previous value: -"Whether the account won or lost the deal."New value: +"won or lost for a deal; churned for a customer who cancelled or left."
    • changedInput schema / properties / outcome / enum
      Previous value: -[
      -  "won",
      -  "lost"
      -]New value: +[
      +  "won",
      +  "lost",
      +  "churned"
      +]
    • addedInput schema / properties / segment
      Added value: +{
      +  "description": "Which side of the business this is, for a company that sells to both businesses and consumers. Leave out when unsure.",
      +  "enum": [
      +    "business",
      +    "consumer"
      +  ],
      +  "type": "string"
      +}
  2. Changed7 schema fields changed
    • addedInput schema / properties / amount
      Added value: +{
      +  "description": "Deal value, if known.",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / closed_on
      Added value: +{
      +  "description": "The date the deal closed, YYYY-MM-DD. Defaults to today.",
      +  "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      +  "type": "string"
      +}
    • changedInput schema / properties / competitor_name / description
      Previous value: -"The competitor involved in the deal."New value: +"The competitor that won (or was beaten), if the deal named one. Leave out when unknown."
    • addedInput schema / properties / competitor_name / maxLength
      Added value: +200
    • removedInput schema / properties / competitor_name / minLength
      Removed value: -1
    • addedInput schema / properties / deal_name
      Added value: +{
      +  "description": "The deal or account name, if known.",
      +  "maxLength": 200,
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "competitor_name",
      -  "outcome"
      -]New value: +[
      +  "outcome"
      +]
  3. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false and destructiveHint=false, and the description adds genuinely non-obvious behavior: an untracked competitor is suggested for tracking rather than rejected, competitor is optional and the loss still counts, and closed_on defaults to today. It does not address duplicate logging or what a successful write returns, which keeps it short of a 5.

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?

The scoping, bulk alternative, and churned semantics are front-loaded, and each subsequent sentence adds an operational rule. One sentence is motivational filler ("This is the most valuable input...") that could be trimmed without losing instruction value.

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?

Seven parameters with full schema descriptions plus annotations mean the description only needs to supply selection logic and non-obvious behavior, which it does. The remaining gap is post-write behavior, but with no output schema and clear safety annotations that is a minor omission.

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 earns above that by explaining why closed_on should be the real date (trend integrity) and why competitor_name can be omitted without losing the record. It still doesn't add anything on amount or deal_name beyond the schema.

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?

Opens with a specific verb and resource ("Record the outcome of one deal or one customer") and immediately distinguishes itself from import_win_loss for bulk entry. The three-valued outcome vocabulary and the customer-vs-deal distinction are stated up front, so an agent can tell exactly what this tool does.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit routing guidance: use import_win_loss for many at once, use churned for a customer who cancelled or left, set segment only when the company sells to both. It also tells the agent what to do under uncertainty (leave competitor out, leave segment out), which is rare and useful.

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.