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.9/5.0
Behavior5/5

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

Annotations already declare the tool read-only, open-world, idempotent, and non-destructive, so the description adds rich behavioral context beyond those hints. It details data sources (SEC EDGAR/XBRL for companies, FAERS for drugs), handles off-calendar fiscal years correctly (AAPL Sep, NVDA Jan), explains result sorting by primary metric, and mentions paired data with 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?

Although the description is longer than typical, every sentence earns its place: trigger examples, preference over alternatives, data source details, sorting behavior, and return format are all packed densely. It is front-loaded with user intents and ends with functional benefits. No filler or repetition with the schema.

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?

For a tool with only two parameters and no output schema, the description is remarkably complete. It covers both entity types, input formats, data provenance, fiscal-year nuances, sorting, and output structure (paired data + citation URIs). This gives an agent sufficient context to invoke the tool correctly and set expectations for results, even without an output schema.

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 adds value by providing concrete examples ('AAPL','MSFT' vs 'ozempic','mounjaro') and explaining type-specific requirements (tickers/CIKs vs drug names) beyond the schema's concise descriptions. It also clarifies behavior tied to parameters (off-calendar fiscal year handling) but does not introduce entirely new semantics, hence a 4 rather than 5.

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 comparisons of 2–5 companies or drugs in a single parallel call. It specifies the verb "compare" and the resource (entities), and distinguishes from sibling tools by emphasizing it should replace sequential single-pack lookups. Trigger phrases like 'X vs Y' and 'which is bigger' make the intent unmistakable.

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: it lists exact user phrasings that should trigger this tool ('Compare X and Y', 'X versus Y', etc.) and states 'ALWAYS PREFER over sequential single-pack lookups when comparing entities.' It also clarifies when to use type='company' vs type='drug', providing clear decision criteria relative to alternative tools.

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 with detailed usage guidance, but the several query entry points (ask_pipeworx, ask_pipeworx_beta, ask_pipeworx_grounded, deep_research) overlap conceptually and require careful reading to select correctly. Notably, ask_pipeworx_beta currently behaves identically to ask_pipeworx, which could cause confusion.

Naming Consistency3/5

Tool names mix verb-first (remember, resolve_entity) and noun-first (entity_profile, deep_research) patterns, with some using prefixes like 'polymarket_' or 'ask_pipeworx'. While all are snake_case and readable, the lack of a single consistent convention makes the set feel less coherent than it could be.

Tool Count3/5

33 tools is on the high end for a single server, though the broad domain (data retrieval, prediction markets, memory, subscriptions, web scraping) justifies much of the sprawl. Still, the count borders on heavy, and some tools could potentially be consolidated (e.g., the ask_pipeworx variants).

Completeness4/5

The toolset provides comprehensive coverage for its core data querying and analysis domain, with lifecycle coverage for memory and subscriptions. Minor gaps exist, such as no generic 'fetch page content' tool despite having get_metadata and take_screenshot, but these do not undermine the primary functionality.