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.8/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 sources from SEC EDGAR/XBRL for companies (handling off-calendar fiscal years) and FAERS for drugs, sorts results by primary metric, and returns citation URIs. Annotations already indicate safe read operations; description enriches with concrete data sources and handling.

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 every sentence adds value. It is front-loaded with example queries and structured into logical sections (usage, data details). No redundant information; achieves a good balance between completeness and conciseness.

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?

Given the tool has 2 parameters and no output schema, the description fully covers the input semantics, return value (paired data + citation URIs), sorting behavior, and data sources. It provides all necessary information for an agent to correctly invoke and interpret results.

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 meaningful context: explains that for company type, values should be tickers/CIKs; for drug type, names. It also clarifies the number range and gives concrete examples, slightly exceeding what the schema provides.

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 that the tool performs side-by-side comparison of 2-5 companies or drugs, with example queries like 'X vs Y' and 'rank these companies'. It clearly differentiates from sibling tools like entity_profile by emphasizing preference over sequential single lookups.

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?

The description provides explicit context for when to use the tool (comparing entities, ranking) with example queries and states 'ALWAYS PREFER over sequential single-pack lookups', offering clear guidance on when not to use alternatives.

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

Most tools have clearly distinct purposes, but there is some overlap among the meta-querying tools like ask_pipeworx, ask_pipeworx_grounded, deep_research, and discover_tools, which could cause confusion for an agent deciding which to use.

Naming Consistency3/5

Tool names use a mix of verb_noun and noun patterns, with snake_case throughout but no single consistent structure (e.g., ask_pipeworx vs. bet_research vs. dataset). The naming is readable but not uniform.

Tool Count4/5

At 33 tools, the count is on the higher side but justifiable given the broad scope of the Pipeworx platform, covering data querying, entity analysis, prediction markets, memory, subscriptions, and feedback.

Completeness4/5

The toolset covers a wide range of data sources and operations, including querying, entity profiling, comparisons, prediction market analysis, and monitoring. Minor gaps exist (e.g., no direct SEC filing viewer), but the meta-tools handle these adequately.