Skip to main content
Glama

List connected OAuth applications (own grants unless administrator)

oauth_grants_list
Read-onlyIdempotent

Lists connected OAuth applications and grant details—scopes, owners, expiry—so you can audit access and find grant IDs to revoke.

Instructions

List connected OAuth applications (own grants unless administrator)

Returns unpaginated items containing grant IDs, owners, client details, scopes, namespaces and usage/expiry timestamps, plus an enabled flag. Visibility is limited to owned grants unless authorized globally; no bearer credentials are returned, and oauth_grant_delete revokes a returned ID.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "oauth_grants_list"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
itemsYes
enabledYes
operationIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "OAuthGrant_depth15": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "clientHost": {
      +          "type": "string"
      +        },
      +        "clientId": {
      +          "type": "string"
      +        },
      +        "clientName": {
      +          "type": "string"
      +        },
      +        "createdAt": {
      +          "format": "date-time",
      +          "type": "string"
      +        },
      +        "expiresAt": {
      +          "format": "date-time",
      +          "type": "string"
      +        },
      +        "id": {
      +          "type": "string"
      +        },
      +        "lastUsedAt": {
      +          "format": "date-time",
      +          "type": "string"
      +        },
      +        "namespaces": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "owner": {
      +          "type": "string"
      +        },
      +        "scopes": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "owner",
      +        "clientId",
      +        "clientName",
      +        "clientHost",
      +        "scopes",
      +        "namespaces",
      +        "createdAt",
      +        "expiresAt"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "additionalProperties": false,
      +  "properties": {
      +    "enabled": {
      +      "type": "boolean"
      +    },
      +    "items": {
      +      "items": {
      +        "$ref": "#/$defs/OAuthGrant_depth15"
      +      },
      +      "type": "array"
      +    },
      +    "operationId": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "enabled",
      +    "items"
      +  ],
      +  "type": "object"
      +}
  2. First observedv0.4.3

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint, idempotentHint, destructiveHint=false, closed-world), so the bar is lower, and the description still adds real context: results are unpaginated, visibility is auth-scoped, and no bearer credentials are returned — an important security disclosure. The pointer that oauth_grant_delete consumes a returned ID further explains lifecycle. Only the absence of any volume/size caveat for an unpaginated listing keeps it below 5.

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?

Two compact sentences, front-loaded with scope followed by output and auth behavior. The opening clause repeats the title almost verbatim, which is mild waste, but everything after it carries information. No filler or hedging.

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 parameterless read tool, it covers scope, auth visibility, return shape, and the follow-up mutation path. An output schema exists, so the field enumeration ('grant IDs, owners, client details, scopes...') is partly redundant, but it orients the agent quickly. Nothing an agent needs to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool takes zero parameters, so the baseline is 4 and there is nothing for the description to disambiguate. It correctly adds the note that output is unpaginated, which preempts an agent looking for paging arguments.

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 states a specific verb and resource (list connected OAuth applications) and adds a meaningful scope qualifier: own grants unless administrator. It does not name a same-domain sibling it might be confused with, but it does point to oauth_grant_delete for the mutation path. An agent can identify the operation without opening the schema.

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

Usage Guidelines4/5

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

It clarifies the visibility condition that determines what results come back (owned grants unless authorized globally), which tells the agent when results will be partial. It also routes revocation to oauth_grant_delete, giving one explicit alternative. It stops short of stating when this tool should be preferred or avoided relative to the other *_grants_list / api_tokens_list siblings.

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

Deploy Server

Other Tools