Skip to main content
Glama
thesma-dev

Thesma MCP Server

Official
by thesma-dev

get_industry_lending

Get quarterly SBA 7(a) loan aggregates for any NAICS industry. Scope by nation, state, or county, and choose the latest quarter or a custom time series.

Instructions

Get quarterly SBA 7(a) loan aggregates for a NAICS industry. Default scope is national; pass geo='state' with state=<2-digit FIPS> or geo='county' with county=<5-digit FIPS> to scope the aggregate. Without period filters, returns the latest available quarterly observation. Provide both from_period and to_period (YYYY-Qq, e.g. '2024-Q1') for a time series. Params: naics is a NAICS code (2–6 digits, e.g. '541211' for Offices of Accountants). Source: US Small Business Administration, 7(a) Loan Program (public domain).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
geoNo
yearNo
naicsYes
stateNo
countyNo
quarterNo
to_periodNo
from_periodNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description carries the transparency burden. It discloses the default scope, the latest-observation default when no period filters are given, the requirement for both from_period and to_period for a time series, and the data source. It does not explain how the year and quarter params interact with period filters, which is a notable omission.

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?

The description is four sentences long, front-loaded with the core purpose, and every sentence adds useful detail about scoping, behavior, parameter format, or source. There is no filler or repetition.

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

Completeness3/5

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

The description covers the main use cases (national, state, county, time series) and the output schema exists to document return values. However, the year/quarter parameters are left unexplained, and the description does not explicitly differentiate from sibling lending tools, leaving the overall context incomplete.

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?

The schema description coverage is 0%, so the description must compensate. It does explain naics, geo, state/county, from_period, and to_period, including format examples. However, the year and quarter parameters are completely undocumented and their relationship to the period filters is unclear, leaving a significant gap.

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 a specific verb 'Get' and names the exact resource: 'quarterly SBA 7(a) loan aggregates for a NAICS industry.' It also immediately states the national default, which differentiates it from geography-specific sibling tools like get_county_lending and get_state_lending.

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 gives clear context on when to use national scope vs. state/county scoping via geo/state/county parameters, and explains that period filters are needed for time series. It stops short of explicitly naming alternatives or saying when not to use this tool, so it earns a 4 rather than a 5.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/thesma-dev/thesma-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server