Skip to main content
Glama

Match parts to requirements

match_requirements
Read-onlyIdempotent

Route a design requirement to parts: give a subcategory (e.g. joint-actuators, strain-wave-reducers, frameless-bldc) and the numbers the design needs, and get every part ranked against them. Each result says, per requirement, whether it meets, is close (within 15%), misses, or is unknown, and the response names the requirement blocking the most options and how far to relax it. Call requirement_keys first to see which keys a subcategory accepts.

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": {
      "subcategory": "<subcategory>",
      "requirements": "<requirements>"
    },
    "name": "match_requirements"
  }
}

Input Schema

NameRequiredDescriptionDefault
qtyNo
lensNo
limitNo
ndaa_onlyNo
prioritiesNoRequirement keys that count double in the fit score
subcategoryYes
requirementsYes

Output Schema

NameRequiredDescriptionDefault
qtyNo
lensNo
errorNoSet when the tool could not answer; the other fields are then absent.
queryNo
countsNo
customNo
resultsNo
blockersNo
ndaa_onlyNo
how_rankedNo
subcategoryNo
ignored_keysNo
requirementsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • addedInput schema / properties / priorities / items / maxLength
      Added value: +120
    • addedInput schema / properties / priorities / maxItems
      Added value: +40
    • addedInput schema / properties / qty / maximum
      Added value: +1000000
    • addedInput schema / properties / requirements / items / properties / any / items / maxLength
      Added value: +120
    • addedInput schema / properties / requirements / items / properties / any / maxItems
      Added value: +40
    • addedInput schema / properties / requirements / items / properties / key / maxLength
      Added value: +120
    • addedInput schema / properties / requirements / maxItems
      Added value: +40
    • addedInput schema / properties / subcategory / maxLength
      Added value: +120
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "blockers": {
      +      "items": {
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "counts": {
      +      "type": "object"
      +    },
      +    "custom": {
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "error": {
      +      "description": "Set when the tool could not answer; the other fields are then absent.",
      +      "type": "string"
      +    },
      +    "how_ranked": {
      +      "type": "string"
      +    },
      +    "ignored_keys": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "lens": {
      +      "type": "string"
      +    },
      +    "ndaa_only": {
      +      "type": "boolean"
      +    },
      +    "qty": {
      +      "type": "integer"
      +    },
      +    "query": {
      +      "type": "string"
      +    },
      +    "requirements": {
      +      "items": {
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "results": {
      +      "items": {
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "subcategory": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, closed-world and safe, so the bar is lower; the description nonetheless adds real behavior: per-requirement verdict categories with a concrete 'close (within 15%)' tolerance, and a response that identifies the requirement blocking the most options plus how far to relax it. It does not touch rate limits, pagination, or what happens with an empty result set.

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?

Three tight sentences, front-loaded with the action and inputs, then output semantics, then the prerequisite call. No filler; it is dense but every clause carries information, with only minor run-on feel in the first sentence.

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?

The core discovery flow and the ranking/verdict behavior are well covered, and an output schema plus rich annotations remove the need to describe return payloads or safety. The gap is the sourcing filters (lens, ndaa_only, qty) which materially change results for a compliance-sensitive parts search and are undocumented in both the low-coverage schema and the description.

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 only 14%, so the description has to compensate and only partly does: it explains subcategory (with examples) and the min/max/any structure of requirements loosely via 'the numbers the design needs'. The remaining parameters — qty, lens (country-of-origin semantics of cn/us/usmca/allied), ndaa_only, and limit — are never mentioned, leaving an agent to infer their meaning from enum names and defaults.

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: 'Route a design requirement to parts', then names the concrete inputs (subcategory plus requirement numbers) and the output shape (parts ranked per requirement). The examples of subcategories (joint-actuators, strain-wave-reducers, frameless-bldc) make it unmistakably different from search_parts or compare_parts.

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?

Explicit prerequisite: 'Call requirement_keys first to see which keys a subcategory accepts' — that is a real sequencing rule an agent would otherwise get wrong. The trigger condition is implied clearly (you must already have numeric requirements), but there is no explicit statement of when to prefer search_parts or compare_parts instead.

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