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. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint, and destructiveHint. The description adds behavioral context: it handles off-calendar fiscal years correctly, sorts results by primary metric, and returns citation URIs. It does not contradict annotations and provides useful operational details beyond the structured fields.

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 queries and key preference guidance. Every sentence adds value: usage patterns, data sources, sorting, output format. While somewhat long, the complexity of the tool (two entity types, multiple metrics) justifies the length. Minor redundancy with schema constraints could be trimmed.

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?

Despite no output schema, the description thoroughly explains what each entity type returns: for companies, specific financial metrics from SEC EDGAR; for drugs, FAERS adverse-event counts, approval counts, trial counts. It mentions sorting, citation URIs, and off-calendar handling. For a comparison tool replacing many lookups, this is complete and actionable.

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%, so the baseline is 3. The description enriches parameter meaning by explaining that 'type' determines the data source (company vs drug) and giving concrete examples for 'values' (tickers/CIKs for company, drug names for drug). It also reiterates the 2–5 range and adds sorting behavior, providing more context than the schema alone.

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 opens with concrete usage examples like 'Compare X and Y' and 'X vs Y', clearly stating it performs side-by-side comparison of 2–5 entities. It distinguishes between 'company' (financial data from SEC EDGAR) and 'drug' (FAERS data), and explicitly prefers this tool over sequential lookups, differentiating it from sibling tools like 'entity_profile'.

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 says 'ALWAYS PREFER over sequential single-pack lookups when comparing entities', giving clear when-to-use guidance. It also implies alternatives by naming the sequential approach, and describes data sources and constraints, helping the agent decide when this tool is appropriate.

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

A4.3/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose, from querying data (ask_pipeworx) to entity profiling (entity_profile) to prediction market analysis (polymarket_arbitrage, polymarket_edges). Even similar tools like deep_research and ask_pipeworx are differentiated by scope (single vs. multi-facet). There is no ambiguity.

Naming Consistency4/5

The vast majority of tools use snake_case (e.g., validate_claim, compare_entities). However, a few tools are single words (forget, recall, remember, subscribe, unsubscribe) which breaks the pattern slightly. This is a minor inconsistency.

Tool Count4/5

With 33 tools, the set is on the larger side but well-justified by the broad scope of the server (data querying, entity research, prediction markets, JSON utilities, subscriptions, etc.). Each tool serves a specific need, making the count appropriate.

Completeness5/5

The tool surface covers virtually all expected operations for the domain: querying, profiling, comparison, change tracking, validation, discovery, subscriptions, memory, and utilities. No obvious gaps are present for the intended use case of accessing Pipeworx data and related tasks.