Skip to main content
Glama

Compare Entities

compare_entities
Read-onlyIdempotent

"Compare X and Y" / "X vs Y" / "X versus Y" / "which is bigger / better / larger / more profitable" / "rank these companies" / "head to head" — side-by-side comparison of 2–5 companies or drugs in ONE parallel call. ALWAYS PREFER over sequential single-pack lookups when comparing entities. type="company" pulls LATEST 10-K revenue + net income + cash + long-term debt from SEC EDGAR/XBRL (off-calendar fiscal years handled correctly — AAPL Sep, NVDA Jan, etc.). type="drug" pulls FAERS adverse-event counts, FDA approval counts, active trial counts. Results sorted by primary metric so "largest" / "most" / "biggest" reads off the top of the response. Returns paired data + pipeworx:// citation URIs per entity. Replaces 8–15 sequential lookups.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeYesEntity type: "company" or "drug".
valuesYesFor company: 2–5 tickers/CIKs (e.g., ["AAPL","MSFT"]). For drug: 2–5 names (e.g., ["ozempic","mounjaro"]).

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already indicate read-only, open-world, idempotent behavior. The description adds valuable context: it handles fiscal year variations, returns LATEST data, sorts by primary metric, and includes citation URIs. No contradictions with annotations.

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 description is front-loaded with example phrases and a clear usage directive. It is slightly verbose but each sentence provides essential context. The structure is logical: examples, then straight-to-use advice, then type-specific details.

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?

Given the tool has 2 parameters with 100% schema coverage and no output schema, the description fully explains what the tool returns (paired data + citation URIs), covers both entity types, and specifies sorting behavior. It is complete enough for correct invocation.

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%, but the description adds meaning by detailing what each type retrieves (e.g., 'pulls LATEST 10-K revenue + net income + cash + long-term debt' for company), explains values format (tickers/CIKs for company, names for drug), and confirms min/max items. This goes beyond the schema's minimal 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 explicitly states the tool does side-by-side comparison of 2-5 companies or drugs, with concrete example phrases like 'Compare X and Y' and 'head to head'. It clearly distinguishes its purpose from sequential lookups by stating 'ALWAYS PREFER over sequential single-pack lookups'.

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 provides explicit when-to-use guidance with example queries and a strong preference directive. It explains when to use company vs drug type, and what data each retrieves. This helps the agent decide between this tool and sibling tools like entity_profile or ticker_details.

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

B3.2/5.0
Disambiguation3/5

Tools like ask_pipeworx, ask_pipeworx_beta, and ask_pipeworx_grounded have overlapping purposes (all answer questions via a universal router), with only subtle distinctions (beta version, grounded mode). Additionally, many tools like entity_profile, compare_entities, recent_changes, and resolve_entity all pull SEC/company data, and polymarket_arbitrage, polymarket_edges, polymarket_fill_risk, bet_research all relate to prediction markets, creating potential confusion. However, each tool does have a somewhat distinct purpose and detailed descriptions help differentiate them, so it's not extreme overlap.

Naming Consistency2/5

Tool names are mostly lowercase with underscores (e.g., 'ask_pipeworx', 'compare_entities', 'resolve_entity'), but there's a mix of verb-first (bulk_splits, list_subscriptions) and noun-first (data_types, get_quote) patterns. Also 'aggregates' and 'grouped_daily' both fetch bars but have different naming styles. The naming is inconsistent with no clear uniform pattern, and some names are vague like 'helpers' or 'utility-*'.

Tool Count2/5

43 tools is quite heavy for a single MCP server, exceeding the typical 15-25 range for 'too many'. While the server aggregates many different domains (Polygon stocks, Pipeworx data, Polymarket, npm, etc.), the sheer number makes it overwhelming for an agent to discover and select the right tool. Many tools are meta-tools (ask_pipeworx, discover_tools) that add complexity rather than mapping to a clear domain.

Completeness4/5

The server covers a huge range of operations: stock data (retrieve, search, details), prediction markets (arbitrage, edges, research, fill risk), entity resolution, subscriptions, memory, and meta-tools. There are some gaps like no obvious tool for modifying stock data (not expected) and the Polymarket side lacks a tool for placing actual trades or managing positions. But overall the surface is quite complete for a comprehensive data/research server.