Skip to main content
Glama
Agente Finnegans

Agente Finnegans

consultar

Read-onlyIdempotent

Query loaded Finnegans tables with read-only SQL, inspect schemas, or summarize data; get paginated chat results with row totals and next-page parameters.

Instructions

SQL de solo lectura (DuckDB) sobre las tablas que cargó leer: SELECT, WITH, SHOW TABLES, DESCRIBE tabla, SUMMARIZE tabla. Devuelve una página que entra en el chat, el total de filas y cómo pedir la siguiente (desde=N). Los campos anidados se abren con UNNEST.

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": {
      "sql": "<sql>"
    },
    "name": "consultar"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqlYes
desdeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/openWorld=false, and the description adds substantial context beyond them: the return shape (a page that fits in the chat, total row count, and how to request the next page via desde=N) and operational guidance for nested fields (UNNEST). This tells the agent exactly what to expect and how to iterate, which structured fields do not cover.

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?

Three dense sentences, front-loaded with the core capability and dialect, then the allowed statements, then the return/pagination behavior and the UNNEST tip. No filler; every clause adds actionable information.

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

Completeness5/5

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

For a 2-parameter tool with no output schema, the description covers purpose, prerequisite, allowed SQL surface, return format, pagination, and nested-field handling—everything an agent needs to invoke and iterate correctly. Nothing material is missing.

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?

With 0% schema coverage the description must carry the burden, and it largely does: it defines what goes in sql (read-only DuckDB statements, with allowed types) and explains the 'desde=N' parameter as the mechanism to fetch the next page. It leaves the default=0 first-page semantics and any validation/error specifics implicit, so it is strong but not exhaustive.

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 and resource ('SQL de solo lectura (DuckDB) sobre las tablas que cargó leer'), enumerates the exact statement types allowed (SELECT, WITH, SHOW TABLES, DESCRIBE, SUMMARIZE), and names the sibling 'leer' as the loader, so an agent can distinguish it from escribir/exportar without opening the 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?

Clearly signals the prerequisite (tables must be loaded via 'leer') and the read-only constraint that bounds when to use it, plus the UNNEST tip for nested fields. It stops short of explicitly naming an alternative for cases like bulk extraction (exportar) or when-not-to-use, so it is strong context but not full routing guidance.

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