Skip to main content
Glama
StreamPilot
by nulldk

set_credential_default

Destructive

Save a user-approved local default for an account, profile, or group; pass null to clear it. Sets the preferred credential for the specified scopes and provider.

Instructions

Save a user-approved local default preference for accounts, profiles, or groups. Pass null to clear it.

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": {
      "scopes": "<scopes>",
      "provider": "<provider>",
      "credential_alias": "<credential_alias>"
    },
    "name": "set_credential_default"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopesYes
providerYes
credential_aliasYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, and openWorldHint=true, so the safety profile is covered. The description adds only that a null value clears the preference, and never states the key destructive consequence — that saving overwrites an existing default for the same scopes/provider, or that the write affects a remote/shared state (openWorldHint).

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 short sentences with the purpose front-loaded and no filler. Minor deduction: "Pass null to clear it" is ambiguous about what "it" refers to, and the clearing behavior is tacked on rather than stated as a distinct mode.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be described, but for a destructive write tool with three required and completely undocumented parameters the description is thin. It omits overwrite behavior, any prerequisite about user approval being obtained beforehand, and the meaning of scopes/provider, leaving an agent unable to construct a correct call from the text alone.

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

Parameters2/5

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

Schema description coverage is 0% across three required parameters, so the description must compensate and largely does not. It only explains credential_alias (null clears the default); scopes and provider — the two fields that determine what the default applies to — receive no format, cardinality, or semantics explanation in either place.

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?

"Save a user-approved local default preference for accounts, profiles, or groups" gives a specific verb (save) and resource (credential default), and the "local/user-approved" qualifier distinguishes it from the sibling list_credential_defaults. It stops short of 5 because the mapping between "accounts, profiles, or groups" and the actual required fields (scopes, provider) is left implicit.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance and no mention of alternatives such as list_credential_defaults for inspecting existing defaults. "User-approved" hints that confirmation must precede the call, but the agent is left to infer that prerequisite rather than being told it.

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