Skip to main content
Glama

Basic auth header generator

basic_auth_header
Read-onlyIdempotent

Builds an HTTP Basic Authorization header from a username and password. Creates the Base64-encoded credential string needed to authenticate API requests and protected endpoints.

Instructions

Build an HTTP Basic Authorization header from a username and password. (Same as IT-Tools /basic-auth-generator.)

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": {
      "username": "<username>",
      "password": "<password>"
    },
    "name": "basic_auth_header"
  }
}

Input Schema

NameRequiredDescriptionDefault
passwordYes
usernameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and openWorldHint=false, so the safety profile is covered without the description's help. The description adds nothing beyond a cross-reference to IT-Tools: it does not state that the result is base64 of 'username:password', that it is computed locally with no network call, or what the returned string looks like.

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?

The core sentence is front-loaded and waste-free, stating action and inputs in one line. The trailing parenthetical ('Same as IT-Tools /basic-auth-generator') earns only marginal space for a generic 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?

For a trivial two-parameter, side-effect-free transformation with no output schema, stating the produced artifact and its inputs is close to sufficient. A brief note on the output format (e.g. 'Basic <base64>') would close the remaining gap.

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 description coverage is 0%, so the description must carry the load, and it does name both inputs ('username and password') matching the two required properties. That is the minimum needed; it adds no constraint details such as trimming, colon handling, or encoding expectations for either field.

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 pairs a specific verb ('Build') with a specific artifact ('HTTP Basic Authorization header') and names its inputs, so an agent can immediately tell this apart from base64, hmac, or hash_text siblings. It stops short of an explicit sibling callout, which keeps it just below a 5.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: an agent infers you call this when you need a Basic auth header. There is no explicit when-to-use, when-not-to-use, or pointer to an alternative such as manual base64 encoding of 'user:pass'.

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