Skip to main content
Glama
secop-mcp

secop-mcp

by inghggw

Discover UNSPSC codes from a keyword

discover_unspsc_codes
Read-only

Translate plain-language supplier descriptions into ranked UNSPSC category codes by process volume before searching by category.

Instructions

Find which UNSPSC category codes actually carry the work a supplier describes in plain words ("software", "transporte escolar", "obra civil"), ranked by number of processes. Run this before searching by category.

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": {
      "keyword": "<keyword>"
    },
    "name": "discover_unspsc_codes"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoCodes to return (default 10).
keywordYesWhat the supplier sells, in plain Spanish.
last_daysNoOnly look at processes published in the last N days.
departmentNoRestrict the sample to one department.

Output Schema

NameRequiredDescriptionDefault
codesYes
keywordYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is known. The description adds real behavioral context — results are ranked by number of processes and the input is natural-language text — but says nothing about result size behavior, ranking caveats, or how the sampling window (last_days/department) affects the ranking. Useful but not rich beyond annotations.

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 sentences, purpose and ranking stated first, followed by the actionable sequencing instruction. The parenthetical examples are compact and directly clarify the vague 'plain words' input, so every part earns its place.

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 100% schema coverage, an output schema, and annotations covering safety and openness, the description supplies the purpose, ordering rationale, and call sequencing an agent needs. Minor gaps remain around how filtering parameters affect the ranked sample, but nothing essential is missing for correct invocation.

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 100%, so all four parameters (keyword, limit, last_days, department) are already documented. The description adds marginal value by exemplifying the kind of plain-word keyword to pass ('software', 'transporte escolar', 'obra civil') and by tying the output ordering to process counts, but it doesn't explain how department or last_days influence the ranking sample.

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?

The description gives a specific verb+resource ('Find which UNSPSC category codes') and narrows the scope to codes that 'actually carry the work a supplier describes', plus states the ranking basis ('ranked by number of processes'). Combined with the sequencing hint, an agent can distinguish this lookup tool from get_process/search_processes without opening a 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?

It gives a clear, explicit usage instruction: 'Run this before searching by category', which tells the agent the workflow position relative to a category-filtered search. It stops short of naming the alternative tool or stating when not to use it, so it is strong context rather than a full when/when-not/alternatives matrix.

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