Skip to main content
Glama
elekto-com-br

Elekto MCP for SQL Server

Official

List user functions

list_functions
Read-onlyIdempotent

Lists SQL Server user-defined functions visible to the login, with schema filtering and complexity metrics, so you can find scalar, inline table-valued and multi-statement functions.

Instructions

Lists the user-defined functions the login can see (scalar, inline table-valued and multi-statement table-valued), with the same complexity metrics and visibility flags as list_procedures. Use it to find functions; for one function's text use get_function_definition. SQL Server leaves out functions the login has no permission on without an error: get_database_overview says whether that happens, check_permissions why.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
schemaNoFilter by schema name. Empty means every schema. Example: 'Feeder'
databaseYesName of the database as registered in the configuration.

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?

Annotations cover safety (readOnly, idempotent, non-destructive), so the bar is lower. The description adds genuinely useful non-obvious behavior: SQL Server silently omits functions the login lacks permission on without error, and it points to get_database_overview/check_permissions for diagnosing that. Doesn't mention return format, but that's acceptable.

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?

Three tight sentences, front-loaded with the core purpose, then routing, then the non-obvious permission caveat. Every sentence earns its place.

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

Completeness5/5

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

For a 2-param read-only list tool whose safety profile is covered by annotations, the description covers purpose, scope, routing, and the silent-permission-omission edge case that would otherwise cause confusing empty results. Nothing an agent needs is missing.

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 100%, so the schema fully documents both parameters (schema filter with example, database name). The description adds no parameter-level syntax beyond what the schema provides – baseline 3 is appropriate.

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 ('Lists the user-defined functions'), and precisely enumerates scope (scalar, inline TVF, multi-statement TVF), distinguishing it from siblings like list_procedures and get_function_definition.

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?

Explicitly says 'Use it to find functions; for one function's text use get_function_definition' – names both the use case and the alternative tool with the condition that selects it.

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