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

A4.8/5.0
Behavior5/5

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

Beyond the annotations (read-only, idempotent), the description discloses that the tool makes a parallel call, pulls latest 10-K data with correct off-calendar fiscal year handling, sorts results by primary metric, and returns citation URIs. This gives the agent a clear behavioral model without contradicting 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 information-dense but not bloated. It front-loads trigger phrases and then packs data source, type-specific details, sorting, and output into a compact paragraph. Every sentence adds value, though it is longer than strictly minimal.

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?

With no output schema, the description explains output ('paired data + pipeworx:// citation URIs'), sorting behavior, data sources, and parallel execution. It covers both types and examples, making the tool's behavior clear without missing critical aspects.

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 baseline is 3. The description adds meaning by explaining what type='company' retrieves (revenue, net income, cash, long-term debt) and what type='drug' retrieves (adverse-event counts, FDA approvals, trial counts), and gives concrete value examples. This enhances the bare schema 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 performs side-by-side comparison of 2–5 companies or drugs in ONE parallel call, with clear trigger phrases like 'Compare X and Y' and 'X vs Y'. It distinguishes itself from single-entity lookups by emphasizing parallel execution and covering multiple entity types.

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?

Usage guidance is explicit: 'ALWAYS PREFER over sequential single-pack lookups when comparing entities' and it differentiates when to use type='company' vs type='drug'. This tells the agent when to choose this tool over alternatives like entity_profile for multi-entity comparisons.

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.1/5.0
Disambiguation4/5

Tools have mostly clear distinctions: ask_pipeworx variants differ by grounding/evidence guarantees, and meta-tools (discover_tools, suggest_questions) serve onboarding. However, ask_pipeworx_beta currently matches ask_pipeworx exactly, creating transient ambiguity, and deep_research vs ask_pipeworx overlap in routing capability though with different scopes.

Naming Consistency4/5

All tools use snake_case and most follow verb-first naming (ask_pipeworx, compare_entities, generate_avatar, subscribe). A few are descriptive nouns (recent_alerts, recent_changes, pipeworx_trending) but still readable and predictable. No mixed conventions; overall consistent style.

Tool Count2/5

33 tools is excessive for a single server, and many are auxiliary (avatar generation, memory, feedback) that do not serve the core data-access purpose. The primary question-answering capability is centralized in a few routers, making many separate tools feel redundant or unrelated, which dilutes navigability.

Completeness4/5

The core domain of structured data access is well covered with routing, grounded answering, deep research, entity profiles, comparisons, and claim validation. Subscription lifecycle (subscribe/unsubscribe/alerts) and memory (remember/recall/forget) round out the surface. Minor gaps like lack of direct tool invocation outside the router are covered by discover_tools, and no critical dead ends exist for typical queries.