Skip to main content
Glama

Create Vault Credential

vault_credential_create

Create a new credential in an agent vault. Pass type plus the matching payload block (login / card / identity / oauthToken / apiKey / certificate / notes). For login credentials, prefer generatePassword over supplying login.password — the vault generates and stores the password server-side and returns only the credential reference, so the secret never enters the conversation. For api_key/oauth_token credentials, set allowedHosts so the credential can be exercised through vault_credential_use.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cardNoCard payload for card-type.
nameYesHuman-readable credential name.
typeYesCredential type.
loginNoLogin payload for login-type.
notesNoOptional secure note text.
apiKeyNoAPI key payload for api_key-type.
fieldsNoOptional custom fields.
agentIdNoAgent ID that owns the new credential. Optional when using an agent-bound credential.
favoriteNoOptional favorite flag.
identityNoIdentity payload for identity-type.
oauthTokenNoOAuth token payload for oauth_token-type.
certificateNoCertificate payload for certificate-type.
revealPolicyNoReveal policy. 'brokered' means the plaintext is never returned by any read/reveal/export path — not even to the org master key; the secret is only usable via vault_credential_use (recovery = rotation). 'standard' keeps master-key reveal available outside MCP.
generatePasswordNoGenerate the login password server-side instead of supplying login.password. Preferred for login credentials: the password is created and stored inside the vault and never enters the conversation. Only valid for login-type; mutually exclusive with login.password. Pass {} for defaults.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already signal that this is a mutating, non-idempotent operation; the description adds value by disclosing a key behavioral nuance: using `generatePassword` keeps the secret out of the conversation and returns only the credential reference. It also hints at post-creation constraints by telling users to set `allowedHosts` for broker-usable credentials, complementing the annotations without contradicting them.

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?

Three sentences with no filler: the first states the core operation, the second gives the most security-relevant creation pattern, and the third covers the broker-access prerequisite. Each sentence earns its place and the most important guidance is front-loaded.

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?

Given the tool's complexity — 14 parameters, nested payload objects, multiple credential types, and an output schema — the description covers the essential decision paths: choosing the type, providing the matching payload, generating passwords securely, and setting allowedHosts for brokerable credentials. It does not enumerate every payload field, but the schema and output schema carry that burden; the description is complete enough for correct invocation.

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?

Schema coverage is 100%, so the baseline is 3. The description adds meaningful cross-cutting semantics beyond the schema: it explains the relationship between `type` and the payload blocks, recommends `generatePassword` over `login.password`, and ties `allowedHosts` to downstream exercise via vault_credential_use. This provides selection guidance that the flat property descriptions do not convey.

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 specific verb and resource: "Create a new credential in an agent vault." It clearly distinguishes this creation tool from its update, get, list, search, and use siblings, and the rest of the description reinforces scope by naming the credential types and payload blocks involved.

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?

The description gives actionable usage guidance: pass `type` plus the matching payload block, prefer `generatePassword` for login credentials, and set `allowedHosts` for api_key/oauth_token credentials so they can be exercised via vault_credential_use. It does not explicitly state when not to use this tool versus an alternative, but the creation context and cross-reference to vault_credential_use provide clear directional context.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.