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

A5/5.0
Behavior5/5

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

Annotations already declare readOnly/openWorld/idempotent hints. The description adds substantial context: specific data pulled for company (10-K revenue, net income, cash, long-term debt) and drug (FAERS counts, FDA approvals, trial counts), off-calendar fiscal year handling, sorting by primary metric, and citation URI returns. No contradiction 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.

Conciseness5/5

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

The description is dense but every sentence earns its place: usage triggers, preference instruction, data source details, fiscal year handling, sorting behavior, and return format. It is front-loaded with query examples and avoids filler.

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 two distinct modes (company/drug) and no output schema, the description covers key aspects: what data is pulled per mode, how results are ordered, and the return structure (paired data + citation URIs). This is sufficient for an agent to select and invoke the tool correctly, especially with sibling 'entity_profile' available for single lookups.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Though schema coverage is 100%, the description enriches parameter semantics: it explains what each enum value ('company' vs 'drug') produces, gives example value formats (tickers/CIKs vs drug names), and clarifies the array count constraints (2–5). This goes far beyond the schema's basic type 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 clearly identifies the tool as a side-by-side comparison engine for 2–5 companies or drugs, using explicit query patterns like "X vs Y" and "which is larger." It distinguishes itself from single-entity lookups (sibling tool 'entity_profile') by emphasizing parallel comparison and replacing sequential 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 states explicitly when to use this tool: 'ALWAYS PREFER over sequential single-pack lookups when comparing entities.' It also provides concrete example queries and contrasts with the alternative (sequential lookups), making the choice unambiguous.

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
Disambiguation2/5

Multiple tools overlap heavily: ask_pipeworx, ask_pipeworx_beta (currently identical), and ask_pipeworx_grounded share the same routing core, while bet_research, polymarket_edges, polymarket_arbitrage, and polymarket_fill_risk all target prediction-market edge detection. The descriptions are detailed, but an agent must read a lot of nuance to avoid selecting the wrong tool.

Naming Consistency3/5

All names are lowercase snake_case and readable, but the convention is mixed: verb_noun names like encode_html and resolve_entity sit alongside bare verbs like remember and forget, and noun-phrase names like entity_profile, recent_changes, and polymarket_fill_risk. The ask_pipeworx_* and polymarket_* families are internally consistent, but there is no single predictable pattern across the whole set.

Tool Count2/5

At 33 tools this exceeds the 25+ threshold for a heavy set. The bloat is especially noticeable because the server is named Htmlentities yet only encode_html and decode_html relate to that purpose; the rest are unrelated Pipeworx research, prediction-market, memory, and subscription utilities.

Completeness4/5

The Pipeworx surface is broadly complete: ask/grounded/deep_research/discover/suggest cover data access, entity_profile/compare_entities/recent_changes/validate_claim cover entity workflows, and subscriptions and memory have create/list/delete lifecycles. Minor gaps such as no update operation for subscriptions or memories are workable, and encode/decode fully covers the literal Htmlentities purpose.