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"]).

TDQS

A4.7/5.0
Behavior5/5

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

The description adds significant behavioral context beyond the annotations: it explains parallel call execution, correct handling of off-calendar fiscal years for companies, result sorting by primary metric, and inclusion of citation URIs. No contradictions with annotations (readOnlyHint, idempotentHint, etc.)

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 slightly long but well-organized: begins with common query phrases, then explains functionality, then specifics per type, and finally result format. Every sentence provides value; could be tightened slightly.

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 2 parameters and no output schema, the description covers input requirements, return data (financials or adverse events), sorting behavior, and citations. It also provides performance context (replaces 8-15 sequential lookups). Complete for its complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with descriptions for both parameters. The description adds further meaning by detailing what each 'type' returns (financial data for company, adverse events for drug) and the required format for 'values' (tickers/CIKs for company, names for drug).

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 uses specific verbs ('compare', 'side-by-side') and resource ('companies or drugs') and clearly distinguishes from sequential single-entity lookups by stating 'ALWAYS PREFER over sequential single-pack lookups when comparing entities.'

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 explicitly states when to use this tool (for comparisons of 2-5 entities) and provides example queries. It also advises preferring it over sequential lookups, though it does not explicitly name alternative tools like 'entity_profile' for single entities.

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

A3.8/5.0
Disambiguation2/5

Several clusters of tools are hard to tell apart: ask_pipeworx, ask_pipeworx_beta, ask_pipeworx_grounded, and deep_research all serve overlapping query paths, and the five polymarket_* tools plus bet_research cover heavily overlapping prediction-market analysis. Some pairs are nearly identical in purpose, like ai_visibility_check vs scan_competitor_ai_presence, and the descriptions must be read closely to avoid misselection.

Naming Consistency2/5

All names are snake_case, but the naming style is highly inconsistent across the set: some use verb_noun (ask_pipeworx, generate_llms_txt, resolve_entity), some are noun phrases (entity_profile, pipeworx_feedback, recent_alerts), and some use a vendor prefix without a clear verb (polymarket_edges, polymarket_edge_tracker). The pattern shifts between domain-specific prefixes (polymarket_*, pipeworx_*) and generic verbs with no predictable rule.

Tool Count2/5

32 tools is too many for a cohesive server, especially when the surface sprawls across unrelated domains: data querying, prediction markets, memory, subscriptions, npm scanning, AI visibility checks, and llms.txt generation. Many tools could be consolidated (the ask_pipeworx family, the polymarket family, the entity-comparison family), which would make the count feel more justified.

Completeness4/5

Within its apparent purpose as a broad data-and-research assistant, the tool set is fairly complete: it covers entity resolution, lookup, grounded verification, deep research, comparisons, memory CRUD, subscription lifecycle, discovery, and feedback. Minor gaps exist, such as no direct tool to fetch a record by its pipeworx:// citation URI (search_within implies fetching happens elsewhere) and no evident update operation for stored memories beyond save/delete.