Skip to main content
Glama
lkcair

yfinance-ai MCP server

by lkcair

get_sector_overview

Read-onlyIdempotent

Fetch a Yahoo Finance sector summary—size, weight, top companies, industries, and sector ETFs—by sector name.

Instructions

Get a sector overview: size, weight, largest companies, industries and sector ETFs.

Args: sector: basic-materials, communication-services, consumer-cyclical, consumer-defensive, energy, financial-services, healthcare, industrials, real-estate, technology, utilities

Returns: Sector summary with top companies and its industries

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sectorNotechnology

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, openWorldHint=true, and destructiveHint=false, so the safety profile is fully covered without the description's help. The description adds nothing beyond that profile (no auth, rate-limit, or data-freshness notes), and its 'Returns' sentence restates content already carried by the output schema.

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?

Purpose is front-loaded in the first sentence, followed by a compact Args block and a Returns block. Nothing is padded, and the enum list is presented in a scannable single line.

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?

Because an output schema exists, the description need not explain return values further, and the one optional parameter's value space is fully documented. The main gap is the absence of any routing guidance against the many sibling 'overview'-style tools, which for a 68-tool surface is a meaningful omission.

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 description coverage is 0% and there is no enum on the 'sector' property, so the description's explicit enumeration of the eleven valid sector slugs is a genuine and necessary contribution. It does not, however, mention that the parameter is optional or that its default is 'technology', which the schema only implies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb+resource ('get a sector overview') and enumerates the scope it covers: size, weight, largest companies, industries, and sector ETFs. This clearly distinguishes it from performance- or holdings-oriented siblings, though it never names the closest sibling (get_sector_performance) to sharpen the boundary.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no statement of when to use this over get_sector_performance, get_industry_overview, or get_fund_sector_weights, nor any prerequisite or context guidance. The only usage-relevant content is the inline list of valid sector values.

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