Skip to main content
Glama

Search deals

search_deals
Read-only

List and search pipeline deals, filtered by stage/owner/company/contact/stale and paginated. Returns summary rows (id, title, stage, amount, probability, owner, company, contact, next-action, isStale) plus pagination { page, perPage, total }. Use get_deal to fetch one deal's full detail by id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
qNoFree-text search over the deal title. Omit for no text filter.
pageNo1-based page number of results to return. Default 1.
staleNoSet "true" to return only stale deals (past their next-action date or long untouched).
ownerIdNoFilter to deals owned by this workspace member's user id.
perPageNoNumber of deals per page (1-100). Default 25.
stageIdNoFilter to deals in this pipeline stage id (from list_pipeline_stages).
companyIdNoFilter to deals linked to this company id (from search_companies).
contactIdNoFilter to deals linked to this contact id (from search_contacts).

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the readOnlyHint and destructiveHint annotations, the description discloses the exact return format: 'summary rows (id, title, stage, amount, probability, owner, company, contact, next-action, isStale) plus pagination { page, perPage, total }.' This adds meaningful behavioral context about what results look like and pagination, which annotations do not cover.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, each serving a distinct purpose: stating the action/filters, describing the return format, and pointing to the sibling tool for full detail. The description is front-loaded with the core purpose and contains no filler or redundant content.

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 no output schema and 8 optional parameters, the description still covers the essentials: the tool's purpose, filter options, pagination behavior, return fields, and how to obtain full detail. This is sufficient for an agent to invoke the tool correctly without additional context.

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?

The input schema already provides full descriptions for all 8 parameters (100% coverage), so the description adds little extra meaning. It merely lists filter categories (stage/owner/company/contact/stale) without detailing syntax or whether filters combine with AND/OR, so a baseline score of 3 is appropriate.

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?

The description opens with 'List and search pipeline deals' – a specific verb+resource combination – and enumerates the filter dimensions (stage/owner/company/contact/stale) and pagination. It also explicitly distinguishes from get_deal by noting 'Use get_deal to fetch one deal's full detail by id,' so an agent can clearly separate list/search from detail retrieval.

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?

The description gives explicit guidance: use this tool for list/search with filters and pagination, and use get_deal for full detail. This provides a clear when-to-use vs. alternative, which is exactly what an agent needs to select between the two deal-focused tools.

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.

TDQS

A3.9/5.0
Disambiguation4/5

Tools are generally separated by entity and action, with helpful cross-references such as get_marketplace vs list_channel_products vs check_channel_readiness. The main soft spots are update_product vs adjust_stock for stock changes and the many list_/search_/get_ triplets, but descriptions mostly make the boundaries clear.

Naming Consistency5/5

All tools follow a consistent lowercase snake_case verb_noun pattern: create_*, get_*, list_*, search_*, update_*, transition_deal, configure_pipeline, and so on. Despite the large count, the naming is highly predictable.

Tool Count1/5

52 tools is an extreme surface for an agent to reason over, even though the underlying domain is broad. The set could be consolidated substantially without losing core functionality.

Completeness3/5

Most core lifecycle workflows are covered across leads, contacts, companies, products, orders, and activities. However, there are notable gaps: deals cannot be updated except by stage transition, activities cannot be edited or rescheduled, and there are no delete operations at all, only status-based archiving.

Resources