Token Efficiency
Tokens are reserved up front and refunded on failure, but a 30-token employee search that finds nothing useful is still 30 tokens spent. Here are the patterns that compound.
Qualify before you prospect
Running list_linkedin_company_employees (30 tokens) on a company with no buying signal is the most expensive mistake in this stack. Always front-load detect_signal (free dispatch, ~15 tokens median) and skip accounts that don’t fire.
The savings grow as your hit rate drops. At a 10% qualification rate, you save 60%+.
Set signal order to short-circuit
If you can act on the first signal that fires, configure set_signals_order to put the highest-precision detectors first. Then break out of the loop in your code as soon as one fires — detect_signal won’t help you here, but the individual detectors will.
In a 5-detector run where the first one hits, you spent 5 tokens instead of 25.
Use filters, not pagination
list_linkedin_company_employees charges 30 tokens regardless of limit or page. The cost is the search itself, not the row count.
- Always pass
title_filters. Empty filters return everyone — you’ll usually scroll past the right person. - Use boolean syntax (
AND,OR,NOT,()) to narrow precisely. - Set
limitto what you actually want to look at. It doesn’t reduce cost, but it reduces noise.
Avoid the 80-token tool unless you need it
list_linkedin_company_employees_posts (80 tokens) fans out across the whole employee list. Use it only when:
- You’re tracking a small set of accounts and want a full activity feed.
- You’ve exhausted cheaper alternatives.
Cheaper alternatives:
5 known employees costs 25 tokens instead of 80 if you already know the profile URLs.
Cache profile lookups
get_linkedin_profile_url (5) and get_linkedin_profile (4) return stable data. Cache the URL → profile mapping per org. The CLI doesn’t do this automatically, but a few minutes of caching in your code saves a lot of tokens on repeated runs.
Don’t double-check
Use the ping endpoints
ping is free on every server. Wire it into your deploy / CI checks so you catch broken auth or downtime before a real workload spends tokens.
Watch your invoices
list_invoices shows top-ups and charges. Audit weekly to spot drift — a misconfigured loop calling list_linkedin_company_employees_posts in a tight retry can burn through $50 fast.