Skip to main content
Glama
agentreadycrm

agentreadycrm

Official

List Opportunities

list_opportunities
Read-onlyIdempotent

Find and page through CRM deals by title, account, stage, outcome, or field filters to retrieve missing deal IDs or check whether a deal exists before creating one.

Instructions

List deals: find them by title or account, or pull exactly the ones a task needs, a page at a time.

Call it to find a deal whose id you do not hold (query), to check for an existing deal before create_opportunity, or to read the deals that match: by account, primary contact, stage, outcome, or a filter on any field, including the account's (organization.industry), the primary contact's (contact.title) and the rollups interactions.count and interactions.last_at. Only open deals are listed unless stage, outcome or a filter on either says otherwise. For per-stage totals use get_pipeline; to read one deal in full, get_opportunity.

It opens no view: to show the user their pipeline, call get_pipeline.

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_opportunities"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNoA field path to order by, "-" first for descending (e.g. "-weighted_value", "close_date"). Rows with no value sort last. Default: newest first.
limitNoPage size (default 50, at most 200).
queryNoFree text matched against the deal's title and its account's name: split into words, each of which must appear in one of them.
stageNoOnly deals in this stage (get_pipeline lists the keys).
cursorNoThe next_cursor of the previous page. Pass the same query, filter, sort and columns with it.
filterNoRows to keep, as {"field": path, "op": op, "value": v}, or {"and": [...]} / {"or": [...]} of those. The server instructions list the operators for each field type; list_fields lists the paths.
columnsNoReturn only these paths per row (plus id and uri), e.g. ["title", "stage", "value", "organization.name"]. Without it each row is the whole deal but its dossier.
outcomeNoOnly deals with this outcome.
organization_idNoOnly this account's deals.
primary_contact_idNoOnly deals with this primary contact.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, closed-world behavior, so the description's main value-add is the default scoping rule: only open deals are returned unless stage, outcome, or a filter overrides it. That is a non-obvious result-shaping trait an agent could easily miss and is the strongest disclosure here. It does not discuss failure modes or cost of broad filters, but with annotations and an output schema carrying the rest, a 4 is warranted.

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?

Front-loaded with the purpose, then usage, then the exclusion, which is the right order for scanning. The middle sentence is long and stacks many filter dimensions, and the stray double-backtick markup adds visual noise. Almost every sentence earns its place, so only minor trimming is warranted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 10 optional parameters, a full schema, annotations, and an output schema, the description covers everything an agent needs to decide whether to call this versus a sibling: scope, default filtering, alternatives, and the fact that it has no UI side effect. Return shape is correctly delegated to the output schema rather than restated.

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%, so the baseline is 3. The description does add some real meaning beyond the schema by naming usable filter paths (organization.industry, contact.title, interactions.count, interactions.last_at) and rollup fields that the schema only gestures at via list_fields. That said, it frames these as examples rather than explaining cursor/columns interactions, so it sits at baseline-plus rather than clearly above it.

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 concrete verb+resource ("List deals") and immediately narrows the scope: find by title/account or pull a task-specific set, one page at a time. It also explicitly distinguishes itself from get_pipeline and get_opportunity by naming what those do instead, so an agent can route without opening any schema.

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?

Gives three explicit when-to-use triggers (finding a deal whose id you don't hold, pre-checking before create_opportunity, reading a filtered set) and names alternatives with their selecting conditions: get_pipeline for per-stage totals, get_opportunity for a single deal in full. The closing line adds a when-not case ("It opens no view") with the redirect to get_pipeline.

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