Skip to main content
Glama

Ver historial financiero de una compañía

get_financials
Read-only

Retrieve a company's Supercías financial history by expediente or RUC, including revenue, assets, equity, profit, employees, and ratios, with optional fiscal year or range filters.

Instructions

One company's Supercías financial history (fiscal years 2008 to the latest): revenue, assets, equity, profit, employees and ratios. Takes expediente or RUC; anio or desde/hasta narrow the years.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "expediente_or_ruc": "<expediente_or_ruc>"
    },
    "name": "get_financials"
  }
}

Input Schema

NameRequiredDescriptionDefault
anioNoOptional single fiscal year.
desdeNoOptional first fiscal year of a range (inclusive).
hastaNoOptional last fiscal year of a range (inclusive).
formatNotext summary (default) or json structured result.text
expediente_or_rucYesThe company's Supercías "expediente" number (from search_companias/get_compania_info) or its 13-digit RUC.

Output Schema

NameRequiredDescriptionDefault
sourceNo
metadatosYes
url_fuenteNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.15.0
    • changedInput schema / properties / anio / description
      Previous value: -"Optional single fiscal year filter."New value: +"Optional single fiscal year."
    • addedInput schema / properties / desde
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Optional first fiscal year of a range (inclusive)."
      +}
    • addedInput schema / properties / hasta
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Optional last fiscal year of a range (inclusive)."
      +}
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "metadatos": {
      +      "properties": {
      +        "contrato": {
      +          "const": "ecudatamcp.response.v1"
      +        }
      +      },
      +      "required": [
      +        "contrato"
      +      ],
      +      "type": "object"
      +    },
      +    "source": {},
      +    "url_fuente": {}
      +  },
      +  "required": [
      +    "metadatos"
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changedv0.13.0
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "type": "object"
      -}New value: +null
  3. Changed3 schema fields changedv0.10.0
    • addedInput schema / properties / anio / description
      Added value: +"Optional single fiscal year filter."
    • addedInput schema / properties / expediente_or_ruc / description
      Added value: +"The company's Supercías \"expediente\" number (from search_companias/get_compania_info) or its 13-digit RUC."
    • addedInput schema / properties / format / description
      Added value: +"text summary (default) or json structured result."
  4. Changed5 schema fields changedv0.8.14
    • removedInput schema / properties / anio / title
      Removed value: -"Anio"
    • removedInput schema / properties / expediente_or_ruc / title
      Removed value: -"Expediente Or Ruc"
    • removedInput schema / properties / format / title
      Removed value: -"Format"
    • removedInput schema / title
      Removed value: -"get_financialsArguments"
    • removedOutput schema / title
      Removed value: -"get_financialsDictOutput"
  5. First observedv0.8.12

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so safety is covered. The description adds meaningful context beyond that: the data's historical coverage starting in 2008 and the exact set of metrics returned, which tells the agent what to expect from a successful call.

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?

Two dense sentences with no filler. The resource and its coverage window come first, followed by the identifier and filtering rules, so the most decision-relevant information is front-loaded.

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 the return values need not be explained, and the description covers identifiers, year filters and data coverage. Minor gaps remain, such as behavior when the company is not found or whether a missing year is omitted, but nothing essential for calling it correctly is absent.

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%, so every parameter is already documented, including the enum on format and the inclusive range semantics. The description restates the identifier choice and the year-filtering behavior but adds no syntax, format, or precedence details beyond the schema.

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 resource and scope: one company's Supercías financial history from fiscal year 2008 onward, enumerating the returned metrics (revenue, assets, equity, profit, employees, ratios). It also names the accepted identifiers. It does not explicitly distinguish itself from the sibling get_compania_info, though it points to that tool as the source of the expediente.

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

Usage Guidelines3/5

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

It gives useful upstream guidance, telling the agent to obtain the expediente from search_companias/get_compania_info, and explains that anio or desde/hasta narrow the year range. It offers no explicit when-not-to-use condition or exclusion relative to other financial-data siblings.

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

Deploy Server

Other Tools