Skip to main content
Glama

Company Engagement Overlap

get_company_engagement_overlap
Read-onlyIdempotent

[Read · free] Given two companies, return the people who engaged (reacted or commented) with posts published by BOTH companies' own LinkedIn pages, counting only company-page posts and engagers already collected in your library. Use it to find people interested in two target accounts at once. It does NOT compare which employees of each company engage with you (for that, use get_post_engagers_by_company). It needs data collected first: each company's page posts (a company stream, or linkedin_company_posts) and their engagers (get_post_set_engagers on those posts, or linkedin_post_reactions / linkedin_post_comments); when a company has no page posts in your library the response says so. Identify each company by company_x_url, company_x_linkedin_id (LinkedIn's numeric id, as linkedin_company_info returns it), company_x_name (exact, case-insensitive; several matches return candidates instead of a guess) or company_x_id (companies.id UUID). A company not saved in Flux returns _meta.next_step naming linkedin_company_info (1 credit). Pure DB read — no LinkedIn pull, no credits charged.

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": "get_company_engagement_overlap"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax overlapping engagers to return (1-100, default 20)
company_a_idNoCompany A — companies.id UUID
company_b_idNoCompany B — companies.id UUID
company_a_urlNoCompany A — LinkedIn URL
company_b_urlNoCompany B — LinkedIn URL
company_a_nameNoCompany A — exact company name, case-insensitive
company_b_nameNoCompany B — exact company name, case-insensitive
company_a_linkedin_idNoCompany A — LinkedIn's numeric company id (from linkedin_company_info)
company_b_linkedin_idNoCompany B — LinkedIn's numeric company id (from linkedin_company_info)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / company_a_linkedin_id
      Added value: +{
      +  "description": "Company A — LinkedIn's numeric company id (from linkedin_company_info)",
      +  "type": [
      +    "string",
      +    "number"
      +  ]
      +}
    • addedInput schema / properties / company_a_name
      Added value: +{
      +  "description": "Company A — exact company name, case-insensitive",
      +  "type": "string"
      +}
    • addedInput schema / properties / company_b_linkedin_id
      Added value: +{
      +  "description": "Company B — LinkedIn's numeric company id (from linkedin_company_info)",
      +  "type": [
      +    "string",
      +    "number"
      +  ]
      +}
    • addedInput schema / properties / company_b_name
      Added value: +{
      +  "description": "Company B — exact company name, case-insensitive",
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, but the description adds behavior beyond that: it says the call costs no credits ('[Read · free]', 'no LinkedIn pull, no credits charged'), that it reads only the local database, and what happens when a company has no page posts ('the response says so') or is not saved in Flux ('_meta.next_step' naming linkedin_company_info). That failure behavior matters greatly for a tool whose usefulness depends on prior data being present.

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?

The definition is dense and front-loaded: the '[Read · free]' tag and the core purpose come first, then the exclusion, then the prerequisites, then the identifier options, then the failure behavior. Every sentence does useful work, though the middle section about prerequisites is long and parenthetical-heavy, which costs a little readability.

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?

For a read-only query tool with no output schema, the description covers everything an agent needs: the inputs it accepts, the preconditions for a useful result, expected failure signals, and the cost. Nothing important is left to inference, and return-body details are naturally limited since no output schema exists.

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?

The schema describes each parameter itself, so the baseline would be 3. The description adds meaning beyond the schema: it explains that a company can be identified by any of four forms, that company_x_name is case-insensitive and exact and that several matches return candidates rather than a guess, and that company_x_linkedin_id is LinkedIn's numeric id as linkedin_company_info returns it. These notes on matching and ambiguity go beyond the schema's one-line descriptions.

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 states a specific verb and resource (return people who engaged with posts from BOTH companies' own LinkedIn pages) along with the scope constraint (company-page posts only, and engagers already collected in the library). It then names the sibling that does a different job (get_post_engagers_by_company) and the distinction it does not cover, so an agent can pick between them without opening either 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?

It gives explicit when-to-use guidance ('find people interested in two target accounts at once') and an explicit when-not-to-use rule with the alternative named ('does NOT compare which employees of each company engage with you (for that, use get_post_engagers_by_company)'). It also spells out the prerequisites for the data that must be collected first and how to satisfy them, which is what an agent needs before calling.

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.