Skip to main content
Glama
benethos-hub

Yahoo Finance MCP Server

by benethos-hub

Sector

get_sector
Read-only

Retrieve a Yahoo Finance sector overview, including top companies, ETFs, mutual funds, and constituent industries. Use the sector key to explore market segments and drill into related industries.

Instructions

Browse a market sector by its Yahoo key (not a ticker symbol).

Returns the sector overview (company count, market cap/weight, description), its top companies, ETFs, and mutual funds, and the constituent industries. Each industry's key can be passed to get_industry to drill down, or to screen as its industry filter. This takes a sector key like technology or healthcare — not a ticker.

Input Schema

NameRequiredDescriptionDefault
keyYesA Yahoo sector key (lowercase, hyphenated). One of: basic-materials, communication-services, consumer-cyclical, consumer-defensive, energy, financial-services, healthcare, industrials, real-estate, technology, utilities.
limitNoMaximum number of top companies to return.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.8.6
    • removedInput schema / properties / key / title
      Removed value: -"Key"
    • removedInput schema / properties / limit / title
      Removed value: -"Limit"
    • removedInput schema / title
      Removed value: -"get_sectorArguments"
    • removedOutput schema / title
      Removed value: -"get_sectorDictOutput"
  2. First observedv0.2.2

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds a genuinely useful behavioral constraint by repeating that the key is a sector key and not a ticker, preventing a common misuse. It does not mention limits or error behavior, but with annotations the bar is lower.

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?

Front-loads the core action and follows with return contents and routing guidance, all of which earn their place. The 'not a ticker' warning is stated twice (once parenthetically, once as a closing line), which is mild redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be explained, and the description still usefully previews them. It covers the drill-down path to get_industry and screen. Nothing essential is missing for a two-parameter, read-only browse tool.

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

Parameters3/5

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

Schema description coverage is 100%, and the schema already enumerates every valid sector key plus the limit bounds, so baseline is 3. The description's examples ('technology', 'healthcare') and the key-vs-ticker clarification add only marginal value 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?

States a specific verb+resource ('Browse a market sector') and disambiguates it from its siblings by explaining the key is a Yahoo sector key, not a ticker symbol. An agent can tell it apart from get_industry, get_market, and search without opening a schema.

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?

Explicitly routes the agent onward: industry keys feed get_industry for drill-down or screen as an industry filter. This gives clear context and named alternatives. It does not state exclusions (e.g. when to prefer get_market instead), so it stops short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.