Skip to main content
Glama
Commish MCP Server

Commish MCP Server

list_deals

Lists and filters sales deals by status, sales rep, or close-date range, returning pipeline and commission details to review closed, pending, approved, or rejected deals.

Instructions

List and filter sales deals. Returns deal fields including opportunity_name, arr_amount, total_commission, arr_commission, wnc_commission, status (draft/pending/approved/rejected), user_id, comp_plan_id, customer_name, close_date, deal_type, and contract_term. Use when the user asks about deals, pipeline, revenue, or wants to see what's been closed, pending, or approved. Filter by status, user_id, or date range.

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": "list_deals"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number for pagination (default: 1).
statusNoFilter by deal status. 'draft' = entered but not submitted, 'pending' = submitted awaiting approval, 'approved' = approved and commission calculated, 'rejected' = not counting toward commissions.
date_toNoFilter deals with close_date on or before this date (ISO 8601 format: YYYY-MM-DD).
user_idNoFilter deals by a specific sales rep's user ID. Use list_users to find user IDs.
per_pageNoNumber of results per page (default: 25, max: 100).
date_fromNoFilter deals with close_date on or after this date (ISO 8601 format: YYYY-MM-DD).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description must carry the behavioral load. It establishes that this is a non-mutating retrieval and lists the returned fields, but says nothing about sort order, whether results are capped, what permissions are required, or how pagination totals behave.

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 purpose is front-loaded in the first clause, followed by return fields and then usage. The field enumeration is long but earns its place because no output schema exists; the closing filter sentence is somewhat redundant with the schema.

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, enumerating the returned fields (including status values) is the right compensating move, and all six parameters are documented in the schema. The remaining gap is result ordering and any row cap or total-count behavior, which an agent paginating results would want.

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 description coverage is 100%, with per-parameter docs for page, per_page, status enum values, date bounds, and user_id lookup. The description only restates the filter axes ('status, user_id, or date range') and adds no semantics beyond the schema, which is the expected baseline here.

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?

The description opens with a specific verb+resource ('List and filter sales deals') and enumerates the returned fields, so the agent knows exactly what domain object is being fetched. It does not explicitly contrast itself with get_deal or list_commissions, so differentiation from siblings is left to inference from the verb 'list'.

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?

It gives concrete trigger contexts ('user asks about deals, pipeline, revenue, or wants to see what's been closed, pending, or approved') plus the three filter axes. There are no exclusions or routing hints — nothing tells the agent to prefer get_deal for a single record or list_commissions when the question is really about commission amounts.

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