Skip to main content
Glama

sw_api_search

Search SOLIDWORKS COM API members by regex on the installed typelib or by free text in the official 2026 help to find names, parameters, and remarks before calling documentation.

Instructions

Busca miembros de la API COM de SOLIDWORKS. Dos modos: 'pattern' = regex sobre la typelib real de esta instalacion (api_index.txt, volcado por dump_api.py: nombre exacto, orden y tipo de cada parametro); 'text' = busqueda de texto libre sobre la ayuda oficial 2026 (sw_api_index.sqlite: resumen, parametros y remarks), para cuando no sabes como se llama lo que buscas ('bounding box', 'save body as part', 'mass properties'). Con el nombre en la mano, sw_api_doc da la ficha completa.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textNoTexto libre (FTS5) sobre la ayuda oficial. Alternativa a pattern.
limitNo
patternNoRegex, sin distinguir mayusculas, sobre la typelib (nombre, parametros y tipos).
interfaceNoFiltra por interfaz exacta, p.ej. IFeatureManager (sin distinguir mayusculas).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden; it discloses the underlying data sources (api_index.txt typelib dump vs sw_api_index.sqlite help index) and what fields each covers. It stops short of stating read-only nature explicitly or describing result shape/pagination, so it is strong but not exhaustive for a search tool.

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 front-loaded sentences with no filler: purpose first, then mode behavior, then the hand-off to sw_api_doc. Dense but every clause 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?

For a read-only search tool with no output schema and no annotations, the description gives enough to select the right mode and know the data provenance. It omits how results are returned and how 'limit'/'interface' refine output, which keeps it short of a 5.

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 75%; the description clarifies what the regex actually matches against (exact name, order and type of each parameter) and frames 'text' as the alternative to 'pattern', adding meaning beyond the schema strings. The 'interface' and 'limit' parameters are not addressed in the description, leaving a minor gap.

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+resource ('Busca miembros de la API COM de SOLIDWORKS') and explicitly distinguishes the two operating modes ('pattern' vs 'text'), which is the key ambiguity an agent would face. It also names the sibling sw_api_doc as the natural next step once a name is found.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit routing: use 'pattern' for regex over the real typelib, use 'text' for free-text search over the official help when you don't know the name, with concrete examples ('bounding box', 'save body as part', 'mass properties'). It also states the follow-up tool, so an agent knows exactly when to reach for this vs alternatives.

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