describe_method
Returns the typed I/O contract for a single access method: its inputs, including request body fields, and the response fields of each row. This is where an agent gets column names: each row carries a param_type of input_required (a mandatory, exact-match WHERE predicate), input_optional, or output (a field a SELECT or RETURNING can reference). A resource has no single field list, because each method returns its own shape, so call this for the method chosen from list_methods before the first query against it.
From v1.1.959 the result is shallow by default: nested objects and arrays are expanded one level, with child counts and truncation markers where the schema continues, and descriptions are left out. Use depth and path to drill into a nested field, and descriptions to include field descriptions. Discovery reads verified provider documents and makes no provider API calls. In earlier releases the tool always returned the full, extended contract.
See also:
[ MCP overview ] [ list_methods ] [ run_select_query ]
Inputs
| Argument | Required | Description |
|---|---|---|
provider | Yes | Provider name. |
service | Yes | Service under that provider. |
resource | Yes | Resource under provider.service. |
method | Yes | Method name as returned by list_methods. |
depth | No | How many levels of nested schema to expand. Default 1, maximum 32. |
path | No | A dotted path to a nested field to expand instead of the whole contract, for example data__networkInterfaces.accessConfigs. Array items are traversed implicitly. |
descriptions | No | true includes field descriptions. Default false. |
param_type | No | Return only input, output, input_required or input_optional fields. |
include_global | No | true includes the optional query controls a provider document declares globally rather than per method. Default false. |
format | No | Text rendering: markdown or json. When omitted, uses the server's render setting. |
A view is limited to 4096 schema nodes; a larger one fails with an error asking for a narrower path or depth. The same view is available in SQL through DESCRIBE METHOD and the stackql_preview.metadata.method_fields relation.
Identifiers may not contain whitespace, semicolons or backslashes; such input is refused before any statement is built.
Output
| Renderer | Shape |
|---|---|
| KV | One row per input and output field: name, type, param_type (input_required, input_optional or output), shape (a JSON Schema subset with properties or items, enums, formats, wire names, child counts and truncation markers) and, with descriptions, the description |
Gating
Allowed in every server mode. Read only.
Example
Try this prompt with any MCP client with the StackQL MCP server registered:
Show me everything I need to know to call the insert method
on Google Compute networks -- required parameters,
optional parameters, and the request body shape.
Here's an example in Claude Desktop: