Skip to main content
Glama

List deals

list_deals
Read-onlyIdempotent

Deals: where each sale stands on the workspace's pipeline (its stage, open, won or lost), what it is worth and whose it is, on the leads this person sees, the most recently changed first. Give lead_id for one lead's deals (a lead may have several), outcome for only open, won or lost ones. Read one whole with get_deal_record.

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
limitNoHow many to return, at most 50 (more is cut to 50).
cursorNoThe cursor a previous page of this tool gave, to read the next page. Leave it out for the first.
lead_idNoOnly this lead's deals.
outcomeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. Beyond that, the description discloses visibility scoping ('the leads this person sees'), sort order (most recently changed first), and cardinality (a lead may have several deals) — real behavioral facts not present in the annotations or schema.

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?

Two sentences with no filler; the scoping and ordering facts are front-loaded and the sibling pointer is placed last. The first sentence is a dense run-on with several parenthetical asides, which costs a little readability but not substance.

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?

There is no output schema, and the description compensates by enumerating what each deal carries and the ordering of results. Pagination is handled by the documented cursor/limit fields. A note on the 50-item cap or default page size would close the remaining gap, but nothing essential to calling it correctly is missing.

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 75%, so the baseline would be 3. The description earns above that by explaining that lead_id narrows to a single lead's deals (which may be multiple) and that outcome restricts to the three statuses — adding filtering semantics rather than repeating the schema's one-line property text. limit and cursor are left entirely to the schema, which documents them adequately.

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 names the resource (deals) and characterizes its content precisely: pipeline stage, open/won/lost status, value, owner, and 'the most recently changed first'. It also scopes results to 'the leads this person sees', which is more than a restatement of the name. It stops short of an explicit verb like 'list' but the intent is unmistakable.

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 tells the agent to pass lead_id to get one lead's deals and notes a lead may have several, and to use outcome for open/won/lost filtering. It also routes to the sibling get_deal_record when the agent needs one deal in full. No explicit when-not case is given, but the alternatives are named with their selecting conditions.

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