Skip to main content
Glama

SpainCompanyAPI: Spanish company data

Spanish company filing statistics

get_borme_stats
Read-onlyIdempotent

Returns how many filings were published in the Mercantile Registry gazette (BORME) per month or per year, for all of Spain or one province, since 2009: incorporations, dissolutions, extinctions, insolvencies, capital increases and reductions, address changes and mergers. Use it for questions such as "how many companies were created in Valencia in 2025?". Dissolutions and insolvencies are not comparable between provinces; use extinctions to measure closures.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_borme_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoLast month (YYYY-MM) or year (YYYY). Default: current month.
fromNoFirst month (YYYY-MM) or year (YYYY). Default: 11 months before "to".
groupNoGroup by month (default) or year.
metricsNoComma-separated metrics: incorporations, dissolutions, extinctions, insolvencies, capital_increases, capital_reductions, address_changes, mergers. Default: all.
provinceNoProvince of the Mercantile Registry by name (e.g. MADRID, VALENCIA) or INE code (e.g. 28). Omit for all of Spain.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so safety profile is covered. The description adds a valuable analytical caveat that dissolutions and insolvencies are not comparable between provinces and that extinctions should be used for closures — behavior an agent could not infer from the schema. However, it says nothing about rate limits, data latency, or response shape, so it is a moderate contribution.

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-loaded with what is returned and its scope, followed by a usage example and a caveat; every sentence adds value. Slightly dense with a long metric list, but no filler.

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?

For a read-only statistics tool with a fully documented 5-parameter schema and no output schema, the description covers scope, granularity, metrics, and an analytical caveat. Only a brief note on return structure or data update frequency would make it fully complete.

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 coverage is 100% with detailed per-parameter descriptions including formats, defaults, enum values, and metric names, so the schema does the heavy lifting. The description adds meaning by enumerating the available metrics and the geography/time scope, but the baseline 3 is appropriate given the schema already covers syntax.

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 (returns counts), the resource (BORME filings), and the full set of metrics, granularities, and scope (all of Spain or one province, since 2009). This is clearly distinguishable from siblings like get_company or search_companies which deal with individual companies.

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?

Gives a concrete example question ("how many companies were created in Valencia in 2025?") that anchors when to use it, and adds an analytical caveat about which metric to use for closures. It does not explicitly exclude other tools or state when not to use it, keeping it 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.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.