Skip to main content
Glama

auth

Check or set credentials for servers and environment variables, including saving to .env, verifying presence, and initiating OAuth flows.

Instructions

Check or set credentials for a server or environment variable.

auth("EXA_API_KEY", "sk-...") → save env var (persists to .env) auth("EXA_API_KEY") → check if set; show how to set if not auth("mcp-server-time") → check server's auth requirements auth("my-oauth-server") → run OAuth browser flow (http transport)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
server_id_or_varYes
valueNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description carries full burden. It discloses key behaviors: saving env var persists to .env, OAuth runs a browser flow for http transport. It does not mention any destructive actions or rate limits, but the provided behaviors are sufficient for understanding the tool's side effects.

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 extremely concise, using a single line summary followed by four terse examples. Every sentence adds value; there is no fluff. The front-loaded summary quickly orients the agent.

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 complexity (multiple modes) and the presence of an output schema (not shown but exists), the description covers the main contexts: setting, checking, server auth, OAuth. It does not elaborate on return values, but the output schema likely handles that. The description is complete enough for a well-informed agent.

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 0%, but the description adds meaning through examples: 'EXA_API_KEY' for env vars, 'mcp-server-time' for server auth, 'my-oauth-server' for OAuth. It also shows the optional value parameter for setting. The meaning is clear, though some edge cases (e.g., valid identifiers) are not fully explained.

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 clearly states 'Check or set credentials for a server or environment variable' and provides specific usage examples showing three distinct modes. This distinguishes it from siblings like search or status, which handle different concerns. The verb-resource combination is specific and unambiguous.

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 implicitly guides when to use each mode via examples: setting a variable with two arguments, checking with one, server auth requirements with a server ID, and OAuth with an OAuth server. However, it does not explicitly state when not to use this tool or mention alternatives, although no sibling tool covers auth.

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

Install Server

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/kaiser-data/kitsune-mcp'

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