Skip to main content
Glama

Octolane

find_stale_deals

Read-only

Find open deals that have not moved in at least days days, oldest first. stale_by sets what moving means: activity (default) is the linked account's last email or meeting, not deal edits; stage is the deal's last stage change (renaming or reordering a stage also counts as one). A deal is never counted as staler than it is old: with no account activity, or no recorded stage change, since it was created, it counts from its creation date, so it is included once it is older than days. So an empty or short result does NOT mean the other deals had recent activity: a deal created within days is simply too new to count. Do not claim activity the result does not show. Won and lost deals are left out. Pass days as a plain integer (e.g. 14) - do NOT compute a cutoff date yourself, the tool does the date math. Use when asked for stale, dormant, neglected, stuck or forgotten deals ("no activity in 2 weeks", "stuck in a stage for a month", "what's gone quiet"). Omit pipeline_name to search every pipeline in the org; a pipeline with exactly that name wins over partial matches, and matched_pipelines lists the pipelines searched. Each deal carries days_stale and stale_since_source, which says what it was measured from. Returns a page of deals (limit sets its size) with total_count and total_amount over every match; pass offset to page through the rest.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "days": "<days>"
    },
    "name": "find_stale_deals"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysYesDeals that have not moved in at least this many days, as a plain integer.
limitNoDeals per page (1-50, default 10).
offsetNo0-indexed row offset for paging. Start at 0, then increase by the number of results returned until `offset + results.length >= total_count`. Ordering is stable across pages, so tied sort values do not repeat or skip records.
stale_byNo`activity` (default): the linked account's last email or meeting. `stage`: the deal's last stage change.activity
session_idNoThe ID of the task this call belongs to. Leave it out on your first call. On every later call for the same task, send the ID an earlier result gave you, and pass it to any subagent working on that task.
pipeline_nameNoRestrict to one pipeline (name or partial name). Omit to search every pipeline.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover read-only, non-destructive and closed-world, so the safety profile is settled; the description still adds real behavior: the staleness floor at creation date, the explanation for short or empty results, the exclusion of won/lost deals, and the aggregate totals in the response. Slightly over-explained in the 'empty result does NOT mean...' passage but the substance is genuine.

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 core definition and mostly dense, but the caveat chain ('a deal is never counted as staler than it is old... So an empty or short result does NOT mean... Do not claim activity the result does not show') runs long and restates the same edge case more than once.

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?

Despite having no output schema, the description names the returned fields (days_stale, stale_since_source, matched_pipelines, total_count, total_amount) and explains paging, so an agent has everything needed to call it and interpret results correctly.

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 100%, so baseline is 3. The description goes beyond it by defining what 'moving' means per `stale_by` value and by explaining pipeline_name resolution ('a pipeline with exactly that name wins over partial matches') and the offset/limit paging contract with total_count.

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?

States a specific verb and resource plus ordering: 'Find open deals that have not moved in at least `days` days, oldest first.' The same opening sentence immediately disqualifies won/lost deals, so the tool is distinguishable from a generic deal search without reading the schema.

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?

Gives concrete trigger phrases ('stale, dormant, neglected, stuck or forgotten deals', plus example queries like 'no activity in 2 weeks') and implicitly excludes won/lost deals. It does not name a sibling such as search_deals as the alternative for non-staleness queries, which is the only meaningful gap.

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