# list_sources

Source: https://dropshelf.ai/docs/reference/mcp/tools/connectors/list_sources

The company data sources you may read from a drop.

A database (kind sql) comes with its driver (the SQL dialect), your scope on it (everything, or the schemas and tables your grants name), and the grants that name you with their rules: policy (open serves a drop's queries at once) and visibility (restricted: only restricted or private drops may run queries under that grant). An MCP server (kind mcp) comes with which tools a query may call (allow readonly: every tool that says it only reads; allow listed: the ones in tools; allow all: every tool, including one that writes) and whether you are connected (auth none needs no connection): its queries run with a member's own connection, so the server decides what each member sees. Call describe_source for a source's tables or tools.

**Read-only**

Needs `connectors.enabled` on the instance.

## Input [#input]

No arguments.

## Output [#output]

| Field | Type | Always present | Description |
| --- | --- | --- | --- |
| `sources` | array of object | yes |  |
| `sources[].allow` | "readonly" or "listed" or "all" | no | For an MCP server: readonly lets a query call every tool that says of itself that it only reads; listed lets it call the tools in tools; all lets it call every tool, including one that writes. |
| `sources[].auth` | "oauth" or "token" or "none" | no | For an MCP server: how members sign in. none is a server that asks nobody to sign in, with nothing to connect to. |
| `sources[].cacheDefault` | string | yes | How long an answer is cached when the query names no cache, such as 15m. |
| `sources[].cacheMin` | string | yes | The shortest cache a query may ask for; a deploy refuses a shorter one. |
| `sources[].connected` | boolean | no | For an MCP server: whether you are connected to it, or true when it asks nobody to sign in. A query that calls its tools runs with your own connection. |
| `sources[].driver` | string | yes |  |
| `sources[].grants` | array of object | yes | The grants that name you, with the rules a query of yours runs under; empty for an admin no grant names. |
| `sources[].grants[].all` | boolean | yes | Everything the source's role can read, tables granted later included. |
| `sources[].grants[].id` | string | no | The grant's own id. Send it back to edit the grant, who it is for included: its queries stay bound to it. A grant sent without an id keeps the id of the source's grant for the same grantee, or is new. |
| `sources[].grants[].kind` | string | yes | One of email, everyone. |
| `sources[].grants[].note` | string | no | The admin's own words on why the grant is there, at most 500 characters. Never shown to members. |
| `sources[].grants[].policy` | string | no | What a query run under this grant does: open serves a drop's queries at once. Open when left out. |
| `sources[].grants[].scope` | array of object | no |  |
| `sources[].grants[].scope[].database` | string | no | Snowflake only. |
| `sources[].grants[].scope[].schema` | string | yes | A schema; alone, everything in it. |
| `sources[].grants[].scope[].table` | string | no | One table or view in the schema. |
| `sources[].grants[].value` | string | yes | Who the grant names, such as an email, or empty for a kind that names nobody, such as everyone. |
| `sources[].grants[].visibility` | "any" or "restricted" | no | restricted: only restricted or private drops may run queries under it. Any when left out. |
| `sources[].kind` | string | yes | sql for a database, mcp for an MCP server. |
| `sources[].maxRows` | integer | yes | The most rows an answer may have; a query answering more is refused, never cut. |
| `sources[].name` | string | yes |  |
| `sources[].scope` | object | yes |  |
| `sources[].scope.all` | boolean | yes |  |
| `sources[].scope.scope` | array of object | no |  |
| `sources[].scope.scope[].database` | string | no | Snowflake only. |
| `sources[].scope.scope[].schema` | string | yes | A schema; alone, everything in it. |
| `sources[].scope.scope[].table` | string | no | One table or view in the schema. |
| `sources[].tools` | array of string | no | For an MCP server whose allow is listed: the tools a query may call. |

<details>
<summary>The output as JSON Schema</summary>

```json
{
  "properties": {
    "sources": {
      "items": {
        "properties": {
          "allow": {
            "description": "For an MCP server: readonly lets a query call every tool that says of itself that it only reads; listed lets it call the tools in tools; all lets it call every tool, including one that writes.",
            "enum": [
              "readonly",
              "listed",
              "all"
            ],
            "type": "string"
          },
          "auth": {
            "description": "For an MCP server: how members sign in. none is a server that asks nobody to sign in, with nothing to connect to.",
            "enum": [
              "oauth",
              "token",
              "none"
            ],
            "type": "string"
          },
          "cacheDefault": {
            "description": "How long an answer is cached when the query names no cache, such as 15m.",
            "type": "string"
          },
          "cacheMin": {
            "description": "The shortest cache a query may ask for; a deploy refuses a shorter one.",
            "type": "string"
          },
          "connected": {
            "description": "For an MCP server: whether you are connected to it, or true when it asks nobody to sign in. A query that calls its tools runs with your own connection.",
            "type": "boolean"
          },
          "driver": {
            "type": "string"
          },
          "grants": {
            "description": "The grants that name you, with the rules a query of yours runs under; empty for an admin no grant names.",
            "items": {
              "properties": {
                "all": {
                  "description": "Everything the source's role can read, tables granted later included.",
                  "type": "boolean"
                },
                "id": {
                  "description": "The grant's own id. Send it back to edit the grant, who it is for included: its queries stay bound to it. A grant sent without an id keeps the id of the source's grant for the same grantee, or is new.",
                  "type": "string"
                },
                "kind": {
                  "description": "One of email, everyone.",
                  "type": "string"
                },
                "note": {
                  "description": "The admin's own words on why the grant is there, at most 500 characters. Never shown to members.",
                  "type": "string"
                },
                "policy": {
                  "description": "What a query run under this grant does: open serves a drop's queries at once. Open when left out.",
                  "type": "string"
                },
                "scope": {
                  "items": {
                    "properties": {
                      "database": {
                        "description": "Snowflake only.",
                        "type": "string"
                      },
                      "schema": {
                        "description": "A schema; alone, everything in it.",
                        "type": "string"
                      },
                      "table": {
                        "description": "One table or view in the schema.",
                        "type": "string"
                      }
                    },
                    "required": [
                      "schema"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "value": {
                  "description": "Who the grant names, such as an email, or empty for a kind that names nobody, such as everyone.",
                  "type": "string"
                },
                "visibility": {
                  "description": "restricted: only restricted or private drops may run queries under it. Any when left out.",
                  "enum": [
                    "any",
                    "restricted"
                  ],
                  "type": "string"
                }
              },
              "required": [
                "kind",
                "value",
                "all"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "kind": {
            "description": "sql for a database, mcp for an MCP server.",
            "type": "string"
          },
          "maxRows": {
            "description": "The most rows an answer may have; a query answering more is refused, never cut.",
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "scope": {
            "properties": {
              "all": {
                "type": "boolean"
              },
              "scope": {
                "items": {
                  "properties": {
                    "database": {
                      "description": "Snowflake only.",
                      "type": "string"
                    },
                    "schema": {
                      "description": "A schema; alone, everything in it.",
                      "type": "string"
                    },
                    "table": {
                      "description": "One table or view in the schema.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "schema"
                  ],
                  "type": "object"
                },
                "type": "array"
              }
            },
            "required": [
              "all"
            ],
            "type": "object"
          },
          "tools": {
            "description": "For an MCP server whose allow is listed: the tools a query may call.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "name",
          "kind",
          "driver",
          "scope",
          "grants",
          "cacheDefault",
          "cacheMin",
          "maxRows"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "sources"
  ],
  "type": "object"
}
```

</details>

Generated from dropshelf core at `6a548b2`, 26 Nov 2026.
