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

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

Annotations already declare readOnlyHint=true, destructiveHint=false, etc. The description adds substantial behavioral context: it states the tool pulls latest 10-K financials from SEC EDGAR/XBRL with correct handling of off-calendar fiscal years, and for drugs pulls FAERS adverse-event counts, FDA approvals, and trial counts. It also explains results sorting by primary metric and return of citation URIs. 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 well-structured, beginning with common trigger phrases, then providing usage guidance, then type-specific details, and finally output format. Every sentence adds value without redundancy. It is front-loaded with the core functionality.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (two entity types, multiple data sources, sorting, citations) and no output schema, the description covers key aspects: purpose, when to use, data sources, sorting behavior, and return format (paired data + citations). It mentions edge cases like off-calendar fiscal years. A slight gap is the exact structure of 'paired data', but overall it is sufficiently complete.

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% with both parameters described. The description enhances understanding by explaining what data each type retrieves (company yields financials, drug yields adverse events, etc.) and gives examples. This adds meaning 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 performs side-by-side comparison of 2-5 companies or drugs. It uses specific trigger phrases like 'compare', 'rank', 'head to head' and distinguishes from siblings by emphasizing 'ALWAYS PREFER over sequential single-pack lookups' and 'Replaces 8–15 sequential lookups', which differentiates it from tools like entity_profile or ask_pipeworx.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/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: when user asks for 'X vs Y', 'which is bigger', etc. It also instructs to prefer this over sequential single-pack lookups. However, it lacks explicit when-not-to-use scenarios (e.g., for a single entity or historical trends), though these are implied. Overall, clear and helpful.

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

Multiple tools overlap: ask_pipeworx and ask_pipeworx_beta are currently identical, and the five prediction-market tools (bet_research, polymarket_edges, polymarket_arbitrage, polymarket_fill_risk, polymarket_edge_tracker) cover adjacent tasks that require careful reading. However, descriptions are unusually explicit about when to prefer each, and non-overlapping domains (memory, subscriptions, earthquakes, npm) are clearly separated.

Naming Consistency4/5

All tool names are snake_case with a mostly verb-first pattern (ask_, compare_, discover_, generate_, list_, scan_, search_, validate_), making the surface predictable. Minor deviations like deep_research, entity_profile, and single-word verbs (remember, recall, forget) break the pattern slightly, but each family is internally consistent.

Tool Count2/5

33 tools exceeds the 25+ threshold for 'too many,' and several could be consolidated — ask_pipeworx_beta is redundant today, and the prediction-market suite could fold into 2-3 tools. The count reflects a genuinely wide data platform with meta-tools (discover_tools, suggest_questions, ask_pipeworx) already covering discovery, so the surface feels heavy for an agent to triage.

Completeness4/5

Core workflows are well covered: querying (ask_pipeworx, grounded, deep_research), research profiles (entity_profile, compare_entities, recent_changes), input resolution (resolve_entity), fact-checking (validate_claim), memory lifecycle, and subscription lifecycle all have complete loops. Minor gaps exist, notably no tool to fetch a pipeworx:// citation URI directly (search_within expects already-fetched text), and some one-off tools like generate_llms_txt and scan_dependency feel bolted on.