Skip to main content
Glama

List Opportunities

list-opportunities-tool
Read-onlyIdempotent

List opportunities (deals) in the CRM with optional filters and pagination.

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

Input Schema

NameRequiredDescriptionDefault
pageNoPage number (max 1,000,000).
sortNoSort by field. Properties: field (string), direction (asc|desc).
filterNoAn object of conditions. Keys starting with $ are keywords: operators ($eq, $contains, $starts_with, $ends_with, $is_empty, $gt, $gte, $lt, $lte, $has_any, $has_none, $in, $not_in) and logic ($and and $or take a list of condition objects, $not takes one and also returns records where the inner fields are empty). Other keys are names. A filter holds at most 20 conditions, 3 levels of $and, $or and $not, and 2 levels of relations. A list holds at most 100 values. Email values match in any letter case. Phone values match in any format, and the operand needs a country code such as +1 415 555 0100. Link values match in any letter case, with or without the scheme. Domain values match as a bare host or a full URL, with or without www. Tags-input values match the exact stored value. Date-time values match a date without a time, such as 2026-10-01, as that whole day. Record values match the ID of a linked record. On an email field, $contains, $starts_with and $ends_with match against the address as stored. On a phone field, $contains, $starts_with and $ends_with match against the stored number, such as +14155550100, with an extension as ;ext=12 and no spaces. On a link field, $contains, $starts_with and $ends_with match against the link as it was saved, which keeps a scheme only when one was typed. On a domain field, $contains, $starts_with and $ends_with match against the bare host, without a scheme or www. Email and link fields also take a domain sub-field with $in or $not_in, such as {"domain":{"$in":["acme.com"]}}, which matches the host of each value. $not_in and $has_none also match records where the field is empty. $is_empty takes true or false. A record field link to a deleted record counts as no link. $contains, $starts_with and $ends_with ignore letter case. On a field that holds several values they match when any value matches, compared as stored. Native fields: name, created_at, updated_at, creation_source. Relations take $in, $not_in or $is_empty on record ids, or conditions on the related record that use that record type's own filter names, including custom_fields. Prefer conditions over listing the related records first and passing their ids: company (company), contact (people). Member relations take $in, $not_in or $is_empty on workspace member ids only, with no nested conditions: creator. stale_days takes $gte with whole days without activity, from 1 to 3650, for example {"stale_days":{"$gte":30}}. custom_fields takes an object keyed by custom attribute (custom field) code, each value an operator object. Native fields and relations sit at the top level of filter. get-crm-schema-tool lists those codes with their type and options under filterable_fields.custom_fields, and the operators, matching rule and example of each type under filterable_fields.types. Example: {"name":{"$contains":"Acme"},"$or":[{"creation_source":{"$eq":"api"}},{"created_at":{"$gte":"2026-01-01"}}]}.
includeNoSingular relationships or relationship counts to expand. Use a show tool for to-many records.
per_pageNoResults per page (default 15, max 25).

Output Schema

NameRequiredDescriptionDefault
pageYes
itemsYes
totalYes
has_moreYes
per_pageYes
next_pageYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / filter / description
      Previous value: -"An object of conditions. Keys starting with $ are keywords: operators ($eq, $contains, $is_empty, $gt, $gte, $lt, $lte, $has_any, $has_none, $in, $not_in) and logic ($and and $or take a list of condition objects, $not takes one and also returns records where the inner fields are empty). Other keys are names. A filter holds at most 20 conditions, 3 levels of $and, $or and $not, and 2 levels of relations. A list holds at most 100 values. Email values match in any letter case. Phone values match in any format, and the operand needs a country code such as +1 415 555 0100. Link values match in any letter case, with or without the scheme. Domain values match as a bare host or a full URL, with or without www. Tags-input values match the exact stored value. Date-time values match a date without a time, such as 2026-10-01, as that whole day. Email and link fields also take a domain sub-field with $in or $not_in, such as {\"domain\":{\"$in\":[\"acme.com\"]}}, which matches the host of each value. $not_in and $has_none also match records where the field is empty. $is_empty takes true or false. Native fields: name, created_at, updated_at, creation_source. Relations take $in, $not_in or $is_empty on record ids, or conditions on the related record that use that record type's own filter names, including custom_fields. Prefer conditions over listing the related records first and passing their ids: company (company), contact (people). Member relations take $in, $not_in or $is_empty on workspace member ids only, with no nested conditions: creator. stale_days takes $gte with whole days without activity, from 1 to 3650, for example {\"stale_days\":{\"$gte\":30}}. custom_fields takes an object keyed by custom field code, each value an operator object. Native fields and relations sit at the top level of filter. get-crm-schema-tool lists those codes with their type and options under filterable_fields.custom_fields, and the operators, matching rule and example of each type under filterable_fields.types. Example: {\"name\":{\"$contains\":\"Acme\"},\"$or\":[{\"creation_source\":{\"$eq\":\"api\"}},{\"created_at\":{\"$gte\":\"2026-01-01\"}}]}."New value: +"An object of conditions. Keys starting with $ are keywords: operators ($eq, $contains, $starts_with, $ends_with, $is_empty, $gt, $gte, $lt, $lte, $has_any, $has_none, $in, $not_in) and logic ($and and $or take a list of condition objects, $not takes one and also returns records where the inner fields are empty). Other keys are names. A filter holds at most 20 conditions, 3 levels of $and, $or and $not, and 2 levels of relations. A list holds at most 100 values. Email values match in any letter case. Phone values match in any format, and the operand needs a country code such as +1 415 555 0100. Link values match in any letter case, with or without the scheme. Domain values match as a bare host or a full URL, with or without www. Tags-input values match the exact stored value. Date-time values match a date without a time, such as 2026-10-01, as that whole day. Record values match the ID of a linked record. On an email field, $contains, $starts_with and $ends_with match against the address as stored. On a phone field, $contains, $starts_with and $ends_with match against the stored number, such as +14155550100, with an extension as ;ext=12 and no spaces. On a link field, $contains, $starts_with and $ends_with match against the link as it was saved, which keeps a scheme only when one was typed. On a domain field, $contains, $starts_with and $ends_with match against the bare host, without a scheme or www. Email and link fields also take a domain sub-field with $in or $not_in, such as {\"domain\":{\"$in\":[\"acme.com\"]}}, which matches the host of each value. $not_in and $has_none also match records where the field is empty. $is_empty takes true or false. A record field link to a deleted record counts as no link. $contains, $starts_with and $ends_with ignore letter case. On a field that holds several values they match when any value matches, compared as stored. Native fields: name, created_at, updated_at, creation_source. Relations take $in, $not_in or $is_empty on record ids, or conditions on the related record that use that record type's own filter names, including custom_fields. Prefer conditions over listing the related records first and passing their ids: company (company), contact (people). Member relations take $in, $not_in or $is_empty on workspace member ids only, with no nested conditions: creator. stale_days takes $gte with whole days without activity, from 1 to 3650, for example {\"stale_days\":{\"$gte\":30}}. custom_fields takes an object keyed by custom attribute (custom field) code, each value an operator object. Native fields and relations sit at the top level of filter. get-crm-schema-tool lists those codes with their type and options under filterable_fields.custom_fields, and the operators, matching rule and example of each type under filterable_fields.types. Example: {\"name\":{\"$contains\":\"Acme\"},\"$or\":[{\"creation_source\":{\"$eq\":\"api\"}},{\"created_at\":{\"$gte\":\"2026-01-01\"}}]}."
  2. Changed1 schema field changed
    • addedInput schema / properties / include / items
      Added value: +{
      +  "type": "string"
      +}
  3. First observed

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered structurally. The description adds no behavioral context of its own — no default result set, ordering, or note that filtering supports a rich operator language — so beyond annotations it contributes nothing.

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?

One front-loaded sentence with no filler, so it is maximally concise. The brevity is efficient but tips into under-specification given the tool's filter complexity.

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

Completeness2/5

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

For a tool with a nested, highly expressive filter object and 5 parameters, the description omits practical context: whether results are ordered by default, how pagination terminates, and how it relates to aggregate-opportunities-tool. The output schema covers return values and the input schema covers syntax, but the routing and usage context an agent needs is absent.

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 page, sort, filter, include and per_page each documented in the schema, including an extensive filter grammar and an example. The description says only "optional filters and pagination" and adds no meaning beyond that, so the baseline 3 applies.

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?

States a specific verb and resource ("List opportunities (deals) in the CRM") and adds the useful synonym "deals" so an agent can map user vocabulary to the tool. It does not distinguish itself from siblings such as aggregate-opportunities-tool or get-opportunity-tool, so the agent must infer the split.

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

Usage Guidelines2/5

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

"with optional filters and pagination" implies a filtered list but gives no when-to-use guidance, no exclusions, and no pointer to the obvious alternatives (aggregate-opportunities-tool for counts, get-opportunity-tool for one record). Nothing tells the agent when this tool is the wrong choice.

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.