Documentation Index
Fetch the complete documentation index at: https://mintlify.com/A-Point-Systems-ltd/ms-sql-mcp/llms.txt
Use this file to discover all available pages before exploring further.
ListObjects is the unified entry point for enumerating any category of database object in the connected SQL Server or Azure SQL Database. A single objectType argument routes to the appropriate underlying query — replacing the need to call separate per-type helpers. An optional partialName filter narrows results by a substring match on both the bare object name and the qualified schema.name form.
Parameters
The logical object category to enumerate. Accepted canonical values and their common aliases:
Aliases are case-insensitive and ignore hyphens and underscores (e.g.
| Canonical value | Accepted aliases |
|---|---|
Table | tables |
View | views |
StoredProcedure | storedprocedures, procedure, procedures, proc, procs |
TableFunction | tablefunctions, tvf |
ScalarFunction | scalarfunctions, scalar |
Function | functions — returns both scalar and table-valued functions with an added function_kind field (ScalarFunction or TableFunction) |
TableTrigger | tabletriggers, triggers |
SysObject | sysobjects, objects — queries sys.objects directly, excluding MS-shipped objects |
stored-procedure is treated as StoredProcedure).Optional substring filter. Applied as a SQL
LIKE pattern against both the bare object name and the schema.name qualified form. For example, passing Doc matches dbo.Documents, archive.Documents, and any object whose name contains Doc. Pass null (or omit) to return all objects of the requested type.Optional
Pass
sys.objects.type code used only when objectType=SysObject. Filters results to objects whose type column matches this one- or two-character code exactly. Common values:| Code | Meaning |
|---|---|
U | User table |
V | View |
P | Stored procedure |
FN | Scalar function |
IF | Inline table-valued function |
TF | Table-valued function |
TR | Trigger |
null (or omit) to list all user-defined objects in sys.objects regardless of type.Returns
The shape of the returned array varies byobjectType:
Usage notes
For
objectType=TableTrigger, the partialName filter matches against the trigger name, the parent table name, schema.table_name, and schema.trigger_name. This makes it easy to find all triggers on a particular table with a single call.The
Function type internally issues two queries (scalar + table-valued) and merges them. If either query fails, ListObjects returns that error immediately. Use ScalarFunction or TableFunction independently if you need to isolate one kind.