Skip to main content
Glama

credentials

Retrieve an API key's metadata—scope, service, allowed destinations, and usage notes—so agents can reuse stored credentials without exposing secret values.

Instructions

The user's API keys Commons holds (names, services, where each may be sent; never values). Use one with use_credential; never ask the user to paste a key. name = one key's full notes (scope, every place it is used).

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": "credentials"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.40.0
    • addedInput schema / properties / name
      Added value: +{
      +  "type": "string"
      +}
  2. First observedv0.36.1

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose the key behavioral trait: secret values are never returned, only metadata. It also distinguishes the two operating modes (all keys vs. full notes for one key) and states an agent-facing prohibition about asking users for raw keys. It does not cover error behavior for an unknown `name` or whether the listing is filtered by service.

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?

Very tight and front-loaded: the resource definition comes first, then the routing instruction, then the parameter meaning. Every clause carries information, though the telegraphic phrasing ('Commons holds', 'name = ...') trades a little readability for density.

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 one-parameter, read-only lookup with no output schema and no annotations, the description covers what is returned, the security boundary, the parameter's effect, and the follow-up tool. Only edge cases (unknown name, empty credential store, filtering) are left unexplained, which is minor at this complexity.

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

Parameters3/5

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

Schema coverage is 0% and the sole parameter is an undescribed string, so the description must compensate — and it does explain that `name` returns one key's full notes including scope and every place it is used. However, it never states that `name` is optional or what omission means (list all keys), leaving the default mode to be inferred from the opening sentence.

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 names a specific resource — the user's API keys held by Commons — and specifies exactly what is exposed (names, services, destinations) and what is not (values), plus the per-key detail mode via `name`. The verb is only implied (list/describe rather than an explicit verb), and it is packaged as a parenthetical, but an agent can still tell it apart from `use_credential` 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 explicitly routes to the sibling: pull a key here, then act with `use_credential`, plus a hard constraint — never ask the user to paste a key. What is missing is the trigger condition for calling this tool in the first place (e.g. 'call this when you need to know which keys exist or what a key is scoped to'), so the when-to-use is inferable rather than stated.

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