Skip to main content
Glama

Buscar un producto

buscar_producto
Read-onlyIdempotent

Finds price series by product, variety or province, in English, Spanish or Valencian (e.g. «orange», «olive oil», «wheat», «diesel zaragoza», «naranja navelina», «aceite de oliva virgen extra»). Returns each series' identifier, scope, unit, frequency, source and latest price with its date. Names and answers are in Spanish. — Busca series por producto, variedad o provincia, en español, valenciano o inglés.

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": {
      "texto": "<texto>"
    },
    "name": "buscar_producto"
  }
}

Input Schema

NameRequiredDescriptionDefault
textoYesProduct, variety or province, in English, Spanish or Valencian. Products work in English (orange, lemon, olive oil, almond, wheat, lamb, diesel…); varieties go by their Spanish names (navelina, clemenules, hojiblanca).
ambitoNoOptional: «España» (national average), «Comunitat Valenciana», «Lonja de Salamanca» or a province (for diesel).
fuenteNoOptional: gva (Generalitat Valenciana, prices at origin), mapa (Ministry of Agriculture, national average), lonja (Lonja de Salamanca) or gasoleo (diesel).
limiteNoOptional: how many series to return, the best matches first (10 by default, at most 20).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / limite / description
      Added value: +"Optional: how many series to return, the best matches first (10 by default, at most 20)."
  2. Changed3 schema fields changed
    • changedInput schema / properties / ambito / description
      Previous value: -"Opcional: «España», «Comunitat Valenciana», «Lonja de Salamanca» o una provincia (para el gasóleo)."New value: +"Optional: «España» (national average), «Comunitat Valenciana», «Lonja de Salamanca» or a province (for diesel)."
    • changedInput schema / properties / fuente / description
      Previous value: -"Opcional: gva (Generalitat Valenciana, origen), mapa (media nacional), lonja (Lonja de Salamanca) o gasoleo."New value: +"Optional: gva (Generalitat Valenciana, prices at origin), mapa (Ministry of Agriculture, national average), lonja (Lonja de Salamanca) or gasoleo (diesel)."
    • changedInput schema / properties / texto / description
      Previous value: -"Producto, variedad o provincia, en español o valenciano."New value: +"Product, variety or province, in English, Spanish or Valencian. Products work in English (orange, lemon, olive oil, almond, wheat, lamb, diesel…); varieties go by their Spanish names (navelina, clemenules, hojiblanca)."
  3. Changed3 schema fields changed
    • changedInput schema / properties / ambito / description
      Previous value: -"Opcional: «España», «Comunitat Valenciana» o una provincia (para el gasóleo)."New value: +"Opcional: «España», «Comunitat Valenciana», «Lonja de Salamanca» o una provincia (para el gasóleo)."
    • changedInput schema / properties / fuente / description
      Previous value: -"Opcional: gva (Generalitat Valenciana, origen), mapa (media nacional) o gasoleo."New value: +"Opcional: gva (Generalitat Valenciana, origen), mapa (media nacional), lonja (Lonja de Salamanca) o gasoleo."
    • changedInput schema / properties / fuente / enum
      Previous value: -[
      -  "gva",
      -  "mapa",
      -  "gasoleo"
      -]New value: +[
      +  "gva",
      +  "mapa",
      +  "lonja",
      +  "gasoleo"
      +]
  4. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds value beyond that by enumerating the returned fields (identifier, scope, unit, frequency, source, latest price and date) and by disclosing a non-obvious behavioral trait: names and answers come back in Spanish regardless of query language.

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?

The purpose and examples are front-loaded and the sentences are dense with useful detail. The description is roughly doubled by restating the same content in Spanish, which is defensible for a bilingual tool but is still redundancy an agent does not need twice.

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?

With four parameters and no output schema, the description does the right extra work by describing the shape of the response. What is missing is the empty-result behavior and any hint that the returned series identifier feeds into historico/plazos, which would matter for a discovery tool in this family.

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%, including the enum for 'fuente' and the min/max on 'limite', so the schema carries the load. The description's language examples (products work in English, varieties in Spanish) reinforce the 'texto' parameter but add little beyond the schema; baseline 3 applies.

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?

States a specific verb and resource — 'Finds price series by product, variety or province' — and backs it with concrete multi-lingual query examples («orange», «diesel zaragoza», «naranja navelina»). The functional role as a discovery/search tool is clear, but it never names how it differs from siblings like precio_ultimo, which also returns a latest price, so the boundary is only implied.

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?

Usage is implied: an agent infers this is the entry point for locating a series by free-text query, and the return of 'series' identifier' hints at a follow-up lookup elsewhere. However, there is no explicit when-to-use/when-not, no mention of the sibling tools, and no guidance on what to do when zero matches come back.

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.

Resources