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 (readOnly, idempotent), the description discloses data sources (SEC EDGAR/XBRL for companies, FAERS/FDA for drugs), specific metrics pulled, handling of off-calendar fiscal years, sorting by primary metric, and the inclusion of citation URIs. This is rich behavioral context that complements the annotations without contradiction.

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 dense, front-loaded with trigger phrases, and every sentence adds value. The all-caps emphasis is a bit noisy but not excessive. It packs a lot of information (data source, metrics, sorting, citation URIs) into a single paragraph without redundancy, though it could be slightly more structured.

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 the absence of an output schema, the description adequately explains the return format (paired data + citation URIs), sorting behavior, and type-specific data origins. It also covers edge cases like off-calendar fiscal years, making it complete for the agent to anticipate results and guide user expectations.

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?

The schema already describes both parameters with 100% coverage, but the description adds important semantics: explaining how 'type' determines the data source and metrics, and giving examples for 'values' (tickers vs. drug names). It also notes edge case handling (off-calendar fiscal years) that goes beyond the schema.

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 in one parallel call, with specific verbs like 'compare' and trigger phrases. It distinguishes itself from sequential lookups by saying 'ALWAYS PREFER over sequential single-pack lookups when comparing entities,' making the purpose unambiguous.

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?

Explicit guidance is given: use this tool when comparing entities and prefer it over sequential lookups, noting it 'Replaces 8–15 sequential lookups.' This tells the agent when to choose this tool over alternatives, though it doesn't name a specific sibling tool.

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

Most tools have clearly distinct purposes (e.g., ask_pipeworx for general queries, ask_pipeworx_grounded for high-stakes verification, deep_research for multi-faceted research). However, some overlap exists among the ask_* variants and the prediction-market tools (bet_research vs. polymarket_edges vs. polymarket_arbitrage), which could cause misselection without careful reading of the detailed descriptions.

Naming Consistency4/5

Tool names consistently use snake_case and mostly follow the verb_noun pattern (e.g., list_subscriptions, resolve_entity, validate_claim). Minor deviations like random_fact and today_fact (adjective_noun) and pipeworx_feedback (noun_noun) introduce slight inconsistency, but the overall pattern is predictable.

Tool Count3/5

With 33 tools, the count exceeds the typical 3-15 range and even the 16-25 'heavy' threshold. While the server covers an unusually broad domain (data retrieval, prediction markets, memory, subscriptions, AI visibility), several tools could be consolidated (e.g., the six polymarket tools, trivial random_fact/today_fact). The scope partially justifies the count, but it feels over-provisioned.

Completeness4/5

The tool surface is remarkably comprehensive for a data platform: it covers querying, entity resolution, comparison, change feeds, memory persistence, subscription management, validation, and even meta-tool discovery. Minor gaps exist (e.g., no explicit update/delete for external data, but that is not the service's purpose). Overall, no obvious dead ends.