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"]).

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Added

TDQS

A5/5.0
Behavior5/5

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

Annotations already indicate read-only, idempotent, open-world, and non-destructive behavior. The description adds valuable context beyond that: data sources (SEC EDGAR/XBRL for company, FAERS/FDA/trials for drug), handling of off-calendar fiscal years (AAPL Sep, NVDA Jan), sorting by primary metric, and output format (paired data + 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.

Conciseness5/5

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

The description is front-loaded with trigger phrases and immediately states the core purpose. Every sentence adds information: scope, data sources, fiscal year handling, sorting, output, and efficiency gains. Despite being detailed, it remains tight and readable with no filler. It earns its length.

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's complexity (different entity types, data sources, comparison logic) and no output schema, the description covers all essential aspects: when to use it, what data is pulled per type, edge cases (off-calendar fiscal years), result organization (sorted by primary metric), and output format (paired data + citation URIs). It is complete for an agent to select and invoke the tool correctly.

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?

Although the schema has 100% coverage, the description enriches parameter meaning substantially. For the 'type' parameter, it explains what data each enum value retrieves (latest 10-K financials vs. adverse events/approval/trials). For 'values', it clarifies the expected format for companies (tickers/CIKs) and drugs (names), with examples. This goes well beyond the schema's basic 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 states the tool's function: 'side-by-side comparison of 2–5 companies or drugs in ONE parallel call.' It specifies the verb 'compare', the resource 'entities' (companies/drugs), and the scope (2–5 items). It also distinguishes itself from sibling tools by referencing 'sequential single-pack lookups' and stating it replaces 8–15 sequential lookups. The trigger phrases further clarify intent.

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 explicitly states when to use this tool: 'ALWAYS PREFER over sequential single-pack lookups when comparing entities.' It provides clear trigger phrases ('compare X and Y', 'X vs Y', 'rank these companies') and implies when not to use it (single entity lookups, which are handled by sibling tools like entity_profile). This gives strong usage direction.

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.8/5.0
Disambiguation3/5

Many tools are crisply separated (memory CRUD, subscription lifecycle, single-entity vs compare vs profile), but several broad entry points overlap: ask_pipeworx, ask_pipeworx_beta, and ask_pipeworx_grounded are very close variants, and discover_tools/suggest_questions/ask_pipeworx all serve discovery/routing. Descriptions help, but an agent can still easily select one of the duplicate or adjacent tools instead of the intended one.

Naming Consistency3/5

All names are readable snake_case and there are coherent families (polymarket_*, ask_pipeworx_*, search_*, get_*), but there is no consistent verb_noun convention: noun-phrase names like recent_alerts and pipeworx_trending coexist with single verbs like remember and forget and domain-prefixed nouns like polymarket_edges. Mixed, but still reasonably navigable.

Tool Count2/5

At 35 tools, the surface is well past the comfortable 3-15 tool scope and even beyond the 16-25 heavy range unless the server has one explicit mega-purpose. The set also sprawls across music lookup, Pipeworx research, prediction markets, npm checks, LLM visibility, memory, and subscriptions, so no single coherent job emerges.

Completeness4/5

For the dominant read-only research workflow, the set is remarkably complete: discover tools, grounded and ungrounded asking, deep research, entity resolution, profiles, recent changes, comparisons, claim verification, search_within, plus full memory and subscription lifecycles. Minor gaps include the shallow music side relative to the rest of the server and the absence of an explicit source catalog.