Skip to main content
Glama
LicitaPilot MCP

LicitaPilot MCP

by jmcodero

Buscar organismo o empresa por nombre o NIF

buscar_organismo_o_empresa
Read-onlyIdempotent

Find contracting bodies and awarded companies by name or tax ID and retrieve their unique slug for Spanish public procurement data.

Instructions

Encuentra organismos contratantes y empresas adjudicatarias por nombre o NIF y devuelve su slug.

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": {
      "nombre": "<nombre>"
    },
    "name": "buscar_organismo_o_empresa"
  }
}

Input Schema

NameRequiredDescriptionDefault
tipoNotodos
nombreYesNombre (o parte) del organismo o empresa, o el NIF/CIF.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, so the safety profile is covered. The description adds genuinely useful context beyond annotations by stating the return value is a slug, but it stays silent on ambiguous-match behavior (multiple organisms sharing a name, zero results) and on whether the search is prefix or substring based.

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?

A single front-loaded sentence with no filler: verb, resource, search keys and return value all appear before any caveat would be needed. Nothing in it is redundant with the title.

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

Completeness3/5

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

For a two-parameter read-only lookup with no output schema and annotations already covering safety, the definition is minimally sufficient to call the tool correctly. It falls short on what the caller should expect when the query matches several entities or none, which matters for a slug-producing lookup that feeds other tools.

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 50% and the description compensates partially: 'por nombre o NIF' clarifies that the nombre field accepts either a name fragment or a CIF/NIF identifier. However, the tipo filter (todos/organismo/empresa) and its default behaviour are never explained in the description or 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?

A specific verb ('Encuentra'), two clearly named resources (organismos contratantes, empresas adjudicatarias) and the lookup keys ('por nombre o NIF'), plus the declared return value ('su slug'). It is distinguishable from siblings like ver_empresa/ver_organismo that presumably consume the returned slug, though it never names those alternatives explicitly.

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 only implied: the agent can infer this is the lookup step that produces a slug for the detail tools, but the description never states when to use it versus ver_empresa/ver_organismo or ranking_adjudicatarias. No exclusions, prerequisites, or disambiguation guidance are given.

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