Skip to main content
Glama

presupuestos.red

Busca conceptos

buscar_conceptos
Read-onlyIdempotent

Busca conceptos por código, descripción y partida; devuelve hasta 10 candidatos y nextCursor para continuar. Puede acotar a partidaId; con partidaId permite query vacío para recorrer sus conceptos en orden del presupuesto. Usa el contexto del presupuesto abierto. El acceso depende de la cuenta propietaria, de que el documento sea público o del enlace de lectura vigente. No guarda cambios ni emite una opinión profesional.

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": {
      "expectedContext": "<expectedContext>",
      "presupuestoId": "<presupuestoId>",
      "version": "<version>",
      "context": "<context>"
    },
    "name": "buscar_conceptos"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryNoCódigo o texto del concepto o partida que buscas. Con partidaId puedes recorrer la partida sin texto de búsqueda.
cursorNoPosición desde la que se retoma la lectura. Usa nextCursor de la página anterior.
contextYesA few words on why you are calling this tool, for the server developer's analytics. Describe people and things by role, such as "a customer". Do not quote the user or include names, emails, or other personal details.
versionYesNúmero de la revisión publicada que quieres consultar. Usa el que acompaña al presupuesto en el contexto del visor.
llm_modelNoThe model identifier you are running as, for example "claude-opus-4-8" or "gpt-5.2". Pass "unknown" if you are not certain. Recorded for the server developer's analytics.
partidaIdNoID de partida devuelto en mapaPartidas.partidas por obtener_resumen_presupuesto o como wbsNodeId en la tabla presupuesto.
presupuestoIdYesIdentifica el documento. Tómalo del contexto que devuelve el visor al importar o abrir el presupuesto.
readSharePathNoEnlace que da acceso de lectura a un presupuesto compartido. Para un documento privado compartido, toma este valor del contexto con el que lo abriste.
conversation_idNoThe conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics.
expectedContextYesCopia el objeto context de la consulta que sustenta la solicitud.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed24 schema fields changed
    • changedInput schema / properties / expectedContext / description
      Previous value: -"Copia el objeto context de la consulta que sustenta la solicitud. Si cambió o usabas el contrato anterior, vuelve a obtener el resumen."New value: +"Copia el objeto context de la consulta que sustenta la solicitud."
    • removedOutput schema / $defs / __schema10 / additionalProperties
      Removed value: -false
    • removedOutput schema / $defs / __schema10 / properties
      Removed value: -{
      -  "citationIndex": {
      -    "$ref": "#/$defs/__schema4"
      -  },
      -  "conceptId": {
      -    "$ref": "#/$defs/__schema4"
      -  },
      -  "diagnosticCode": {
      -    "$ref": "#/$defs/__schema2"
      -  },
      -  "expected": {
      -    "anyOf": [
      -      {
      -        "$ref": "#/$defs/__schema2"
      -      },
      -      {
      -        "$ref": "#/$defs/__schema5"
      -      },
      -      {
      -        "$ref": "#/$defs/__schema9"
      -      },
      -      {
      -        "type": "null"
      -      }
      -    ]
      -  },
      -  "factIndex": {
      -    "$ref": "#/$defs/__schema4"
      -  },
      -  "field": {
      -    "$ref": "#/$defs/__schema2"
      -  },
      -  "sourceId": {
      -    "$ref": "#/$defs/__schema2"
      -  },
      -  "supportedSource": {
      -    "$ref": "#/$defs/__schema2"
      -  }
      -}
    • changedOutput schema / $defs / __schema10 / type
      Previous value: -"object"New value: +"boolean"
    • removedOutput schema / $defs / __schema11 / properties / capability
      Removed value: -{
      -  "$ref": "#/$defs/__schema2"
      -}
    • addedOutput schema / $defs / __schema11 / properties / citationIndex
      Added value: +{
      +  "$ref": "#/$defs/__schema4"
      +}
    • addedOutput schema / $defs / __schema11 / properties / conceptId
      Added value: +{
      +  "$ref": "#/$defs/__schema4"
      +}
    • addedOutput schema / $defs / __schema11 / properties / diagnosticCode
      Added value: +{
      +  "$ref": "#/$defs/__schema2"
      +}
    • addedOutput schema / $defs / __schema11 / properties / expected
      Added value: +{
      +  "anyOf": [
      +    {
      +      "$ref": "#/$defs/__schema2"
      +    },
      +    {
      +      "$ref": "#/$defs/__schema5"
      +    },
      +    {
      +      "$ref": "#/$defs/__schema10"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / $defs / __schema11 / properties / factIndex
      Added value: +{
      +  "$ref": "#/$defs/__schema4"
      +}
    • addedOutput schema / $defs / __schema11 / properties / field
      Added value: +{
      +  "$ref": "#/$defs/__schema2"
      +}
    • removedOutput schema / $defs / __schema11 / properties / input
      Removed value: -{
      -  "additionalProperties": false,
      -  "properties": {
      -    "conceptId": {
      -      "$ref": "#/$defs/__schema4"
      -    }
      -  },
      -  "type": "object"
      -}
    • removedOutput schema / $defs / __schema11 / properties / instruction
      Removed value: -{
      -  "$ref": "#/$defs/__schema2"
      -}
    • addedOutput schema / $defs / __schema11 / properties / sourceId
      Added value: +{
      +  "$ref": "#/$defs/__schema2"
      +}
    • addedOutput schema / $defs / __schema11 / properties / supportedSource
      Added value: +{
      +  "$ref": "#/$defs/__schema2"
      +}
    • removedOutput schema / $defs / __schema11 / required
      Removed value: -[
      -  "instruction"
      -]
    • addedOutput schema / $defs / __schema12
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "capability": {
      +      "$ref": "#/$defs/__schema2"
      +    },
      +    "input": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "conceptoId": {
      +          "$ref": "#/$defs/__schema4"
      +        }
      +      },
      +      "required": [
      +        "conceptoId"
      +      ],
      +      "type": "object"
      +    },
      +    "instruction": {
      +      "$ref": "#/$defs/__schema2"
      +    }
      +  },
      +  "required": [
      +    "instruction"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / $defs / __schema8 / properties / importe / $ref
      Previous value: -"#/$defs/__schema5"New value: +"#/$defs/__schema9"
    • changedOutput schema / $defs / __schema8 / properties / importe / description
      Previous value: -"Importe que usa el visor, con cantidad por precio unitario como respaldo."New value: +"Importe del visor o cantidad por PU disponible. Null si no se puede determinar."
    • changedOutput schema / $defs / __schema8 / properties / precioUnitario / $ref
      Previous value: -"#/$defs/__schema5"New value: +"#/$defs/__schema9"
    • changedOutput schema / $defs / __schema8 / properties / precioUnitario / description
      Previous value: -"Precio unitario que usa el visor, con el precio de origen como respaldo."New value: +"Precio unitario del visor o PU declarado. Null si ambos están ausentes."
    • addedOutput schema / $defs / __schema9 / anyOf
      Added value: +[
      +  {
      +    "$ref": "#/$defs/__schema5"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / $defs / __schema9 / type
      Removed value: -"boolean"
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "context": {
      -        "$ref": "#/$defs/__schema0"
      -      },
      -      "nextCursor": {
      -        "anyOf": [
      -          {
      -            "$ref": "#/$defs/__schema4"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "Posición para continuar la misma lectura. Es null si no hay otra página."
      -      },
      -      "query": {
      -        "$ref": "#/$defs/__schema2",
      -        "description": "Texto de búsqueda sin espacios al inicio o al final."
      -      },
      -      "resultados": {
      -        "description": "Conceptos de la página, ordenados por coincidencia o por orden documental al recorrer una partida sin texto.",
      -        "items": {
      -          "$ref": "#/$defs/__schema8"
      -        },
      -        "type": "array"
      -      },
      -      "totalCoincidencias": {
      -        "$ref": "#/$defs/__schema4",
      -        "description": "Total de conceptos que coinciden en el alcance, incluidas las páginas pendientes."
      -      }
      -    },
      -    "required": [
      -      "context",
      -      "query",
      -      "totalCoincidencias",
      -      "nextCursor",
      -      "resultados"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "code": {
      -        "$ref": "#/$defs/__schema2",
      -        "description": "Código que identifica el motivo del rechazo."
      -      },
      -      "context": {
      -        "$ref": "#/$defs/__schema0"
      -      },
      -      "currentContext": {
      -        "$ref": "#/$defs/__schema0",
      -        "description": "Contexto vigente que puedes reutilizar para corregir la solicitud, cuando está disponible."
      -      },
      -      "details": {
      -        "$ref": "#/$defs/__schema10",
      -        "description": "Datos que ubican la causa del rechazo, si están disponibles."
      -      },
      -      "message": {
      -        "$ref": "#/$defs/__schema2"
      -      },
      -      "nextAction": {
      -        "$ref": "#/$defs/__schema11",
      -        "description": "Instrucción de recuperación y, cuando corresponde, herramienta y argumentos para seguirla."
      -      },
      -      "recoverable": {
      -        "$ref": "#/$defs/__schema9",
      -        "description": "Indica si la operación permite corregir la solicitud o el contexto y volver a intentar."
      -      },
      -      "status": {
      -        "description": "Resultado del rechazo. stale indica que debes volver a leer el contexto vigente.",
      -        "enum": [
      -          "rejected",
      -          "stale"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "status",
      -      "code",
      -      "recoverable"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "context": {
      +        "$ref": "#/$defs/__schema0"
      +      },
      +      "nextCursor": {
      +        "anyOf": [
      +          {
      +            "$ref": "#/$defs/__schema4"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Posición para continuar la misma lectura. Es null si no hay otra página."
      +      },
      +      "query": {
      +        "$ref": "#/$defs/__schema2",
      +        "description": "Texto de búsqueda sin espacios al inicio o al final."
      +      },
      +      "resultados": {
      +        "description": "Conceptos de la página, ordenados por coincidencia o por orden documental al recorrer una partida sin texto.",
      +        "items": {
      +          "$ref": "#/$defs/__schema8"
      +        },
      +        "type": "array"
      +      },
      +      "totalCoincidencias": {
      +        "$ref": "#/$defs/__schema4",
      +        "description": "Total de conceptos que coinciden en el alcance, incluidas las páginas pendientes."
      +      }
      +    },
      +    "required": [
      +      "context",
      +      "query",
      +      "totalCoincidencias",
      +      "nextCursor",
      +      "resultados"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "code": {
      +        "$ref": "#/$defs/__schema2",
      +        "description": "Código que identifica el motivo del rechazo."
      +      },
      +      "context": {
      +        "$ref": "#/$defs/__schema0"
      +      },
      +      "currentContext": {
      +        "$ref": "#/$defs/__schema0",
      +        "description": "Contexto vigente que puedes reutilizar para corregir la solicitud, cuando está disponible."
      +      },
      +      "details": {
      +        "$ref": "#/$defs/__schema11",
      +        "description": "Datos que ubican la causa del rechazo, si están disponibles."
      +      },
      +      "message": {
      +        "$ref": "#/$defs/__schema2"
      +      },
      +      "nextAction": {
      +        "$ref": "#/$defs/__schema12",
      +        "description": "Instrucción de recuperación y, cuando corresponde, herramienta y argumentos para seguirla."
      +      },
      +      "recoverable": {
      +        "$ref": "#/$defs/__schema10",
      +        "description": "Indica si la operación permite corregir la solicitud o el contexto y volver a intentar."
      +      },
      +      "status": {
      +        "description": "Resultado del rechazo. stale indica que debes volver a leer el contexto vigente.",
      +        "enum": [
      +          "rejected",
      +          "stale"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "code",
      +      "recoverable"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Changed9 schema fields changed
    • addedInput schema / properties / expectedContext
      Added value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": false,
      +  "description": "Copia el objeto context de la consulta que sustenta la solicitud. Si cambió o usabas el contrato anterior, vuelve a obtener el resumen.",
      +  "properties": {
      +    "editsRevision": {
      +      "description": "Revisión de edits como entero decimal en texto.",
      +      "pattern": "^(0|[1-9][0-9]{0,18})$",
      +      "type": "string"
      +    },
      +    "presupuestoId": {
      +      "description": "ID del presupuesto consultado.",
      +      "pattern": "^[0-9a-f]{10}$",
      +      "type": "string"
      +    },
      +    "readSharePath": {
      +      "description": "Enlace de lectura del contexto, si existe.",
      +      "maxLength": 120,
      +      "type": "string"
      +    },
      +    "version": {
      +      "description": "Versión documental consultada.",
      +      "exclusiveMinimum": 0,
      +      "maximum": 9007199254740991,
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "presupuestoId",
      +    "version",
      +    "editsRevision"
      +  ],
      +  "type": "object"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "presupuestoId",
      -  "version",
      -  "context"
      -]New value: +[
      +  "expectedContext",
      +  "presupuestoId",
      +  "version",
      +  "context"
      +]
    • removedOutput schema / $defs / __schema0 / properties / dataFingerprint
      Removed value: -{
      -  "$ref": "#/$defs/__schema6"
      -}
    • addedOutput schema / $defs / __schema0 / properties / editsRevision
      Added value: +{
      +  "$ref": "#/$defs/__schema6"
      +}
    • changedOutput schema / $defs / __schema0 / required
      Previous value: -[
      -  "presupuestoId",
      -  "version",
      -  "dataFingerprint"
      -]New value: +[
      +  "presupuestoId",
      +  "version",
      +  "editsRevision"
      +]
    • removedOutput schema / $defs / __schema6 / $ref
      Removed value: -"#/$defs/__schema2"
    • changedOutput schema / $defs / __schema6 / description
      Previous value: -"Huella del estado económico consultado. Reutilízala para paginar, investigar usos o simular sobre la misma base."New value: +"Revisión persistida de los edits de este presupuesto y versión. Copia todo context en expectedContext para continuar."
    • addedOutput schema / $defs / __schema6 / pattern
      Added value: +"^(0|[1-9][0-9]{0,18})$"
    • addedOutput schema / $defs / __schema6 / type
      Added value: +"string"
  3. Changed3 schema fields changed
    • addedInput schema / properties / context
      Added value: +{
      +  "description": "A few words on why you are calling this tool, for the server developer's analytics. Describe people and things by role, such as \"a customer\". Do not quote the user or include names, emails, or other personal details.",
      +  "type": "string"
      +}
    • addedInput schema / properties / llm_model
      Added value: +{
      +  "description": "The model identifier you are running as, for example \"claude-opus-4-8\" or \"gpt-5.2\". Pass \"unknown\" if you are not certain. Recorded for the server developer's analytics.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "presupuestoId",
      -  "version"
      -]New value: +[
      +  "presupuestoId",
      +  "version",
      +  "context"
      +]
  4. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and non-destructive, so the marginal bar is met by added detail: the 10-result page limit, nextCursor continuation, the access conditions (owner account, public document, or valid read link), and the explicit no-write/no-professional-opinion disclaimer. Versioning and concurrency behavior are left to the schema.

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?

Four short sentences, front-loaded with purpose and return shape, then usage, then access, then the read-only disclaimer. Little wasted wording, though the access sentence is a moderately dense compound.

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 10-parameter tool with nested objects and an output schema, the description covers purpose, pagination, scoping, and permission model, leaving the rich structured fields (version, expectedContext, analytics params) to the schema. That is close to complete without redundancy.

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?

Schema coverage is 100%, so the baseline is 3; the description still adds value by explaining the query/partidaId interplay and enumeration ordering by budget order, and by surfacing the page size that the schema does not state. It says nothing about expectedContext or cursor mechanics beyond 'continue', which the schema already documents.

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?

It states a specific verb and resource plus the searchable fields ('Busca conceptos por código, descripción y partida') and what comes back ('hasta 10 candidatos y nextCursor'). It does not, however, contrast itself with nearby read tools such as obtener_resumen_presupuesto or consultar_datos_presupuesto, so differentiation is left implicit.

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?

It gives concrete operating guidance: narrowing with partidaId, the special case where query may be empty, and the requirement to use the open budget's context. It stops short of naming an alternative tool or stating when not to use this one.

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