Skip to main content
Glama

mssql_list_functions

Read-onlyIdempotent

List user-defined functions in the current database for a connection ID, with an optional schema filter. Returns results in CSV format for inspection and query planning.

Instructions

Lists user-defined functions in the current database for the given connectionId in CSV format.

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": {
      "connectionId": "<connectionId>"
    },
    "name": "mssql_list_functions"
  }
}

Input Schema

NameRequiredDescriptionDefault
schemaNoOptional schema name filter.
connectionIdYesThe connectionId returned by mssql_connect.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, so the safety profile is covered. The description adds two useful behavioral facts beyond them: results are CSV-formatted and the scope is the connection's current database. It says nothing about invalid-connection error behavior or result ordering.

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?

A single front-loaded sentence with no filler; the purpose and scope come before the connectionId clause. The trailing 'in CSV format' is the only slightly tacked-on element, but it carries real information.

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 simple two-parameter read-only listing tool, the definition supplies purpose, scope, parameter reference, and the return format (CSV), which compensates for the absent output schema. Missing only edge-case behavior, which is minor at this complexity.

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 both the optional schema filter and connectionId are already documented (including the pointer to mssql_connect in the schema). The description explains neither parameter in more detail than the schema, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses the specific verb 'Lists' with the precise resource 'user-defined functions' scoped to 'the current database' and the given connectionId. This is clearly separable from sibling list tools (mssql_list_tables, mssql_list_views, mssql_list_schemas) by the resource noun alone, though the description never explicitly names an alternative.

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

Usage Guidelines3/5

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

Usage is only implied: 'current database' hints that mssql_change_database must be called first to select the target database, and the connectionId reference points back to mssql_connect. There is no explicit when-to-use, when-not-to-use, or routing statement versus the other list_* tools.

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