Skip to main content
Glama

update_oauth_client

Update an OAuth client's name, description, scopes, or IP allowlist. Replace scopes to adjust access; security changes apply to the next issued token.

Instructions

Change an API client's name, description, scopes or IP allowlist.

    `id` is the client's record id from `list_oauth_clients`.

    `scope_codenames` REPLACES the client's scopes rather than adding to them. To
    add one, read the current set with `get_oauth_client` and send all of them plus
    the new one — sending only the new one removes every other.

    NARROWING SCOPES TAKES EFFECT ON THE NEXT TOKEN, not immediately. A token already
    issued keeps the scopes it was minted with until it expires. If you are narrowing
    a client because its secret leaked, narrowing alone is not enough: also
    rotate the secret, and revoke any refresh token you know of.

    Send `scope_codenames` OR `scope_preset`, not both.

    The client's secret is NOT changed here and is not returned.

    Requires the `clients:write` OAuth scope, and the `admin` capability profile.
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
nameNo
descriptionNo
ip_allowlistNo
scope_presetNo
scope_codenamesNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
nameNo
warningNo
client_idNo
is_activeNo
created_atNo
descriptionNo
ip_allowlistNo
client_secretNo
scope_codenamesNo
Install Server

TDQS

A5/5.0
Behavior5/5

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

This description goes well beyond the annotations. It discloses that scope_codenames replaces rather than augments, that narrowing scopes only affects future tokens, that existing tokens keep their scopes, that the secret is unchanged and not returned, and that narrowing alone is insufficient after a leak. These are exactly the behavioral nuances an agent needs and are not visible from the input schema or annotations.

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?

The description is well organized and front-loaded with the core purpose, then covers id provenance, scope replacement behavior, security implications, parameter exclusivity, secret handling, and required permissions in a logical order. Every sentence carries critical information; the length is justified by the number of non-obvious behavioral caveats.

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 mutation tool with six parameters and subtle side effects, the description is remarkably complete. It covers authentication requirements, data sources, replacement semantics, timing of effects, security escalation guidance, and separation from secret rotation. Since an output schema exists, there is no need for the description to detail return values, and nothing essential is left for the agent to guess.

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

Parameters5/5

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

With schema description coverage at 0%, the description carries the full semantic burden for parameters. It explains how to obtain id, the replacement semantics of scope_codenames, how to combine it with get_oauth_client output, and the mutual exclusivity of scope_codenames and scope_preset. It also clarifies that the secret parameter is not part of this operation even though the tool is a client-update mutation.

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?

The description opens with a precise statement: 'Change an API client's name, description, scopes or IP allowlist.' This names the exact resource, the specific action, and the affected fields, which clearly distinguishes it from sibling tools like create_oauth_client, rotate_oauth_client_secret, and deactivate_oauth_client. The closing note that the secret is not changed here further prevents confusion with secret-rotation tools.

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?

The description gives concrete usage guidance: the id must come from list_oauth_clients, adding a scope requires reading the current set via get_oauth_client, and scope_codenames should be sent alongside the existing scopes to avoid removing them. It also states required permissions ('clients:write' scope and 'admin' capability), the exclusivity rule for scope_codenames vs scope_preset, and explicitly directs that secret-rotation and refresh-token revocation are needed when narrowing scopes due to a leak.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/CloudSecurityAlliance/csa-skilljar'

If you have feedback or need assistance with the MCP directory API, please join our Discord server