Skip to main content
Glama

compute_digest_auth

Generates an HTTP Digest Authentication header from a 401 WWW-Authenticate challenge, enabling API calls to pass Digest auth.

Instructions

Compute an HTTP Digest Authentication header from a 401 WWW-Authenticate challenge. Use when an API requires Digest auth.

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": {
      "method": "<method>",
      "uri": "<uri>",
      "username": "<username>",
      "password": "<password>",
      "www_authenticate": "<www_authenticate>"
    },
    "name": "compute_digest_auth"
  }
}

Input Schema

NameRequiredDescriptionDefault
uriYesRequest URI path, e.g. '/api/users'
methodYes
passwordYes
usernameYes
www_authenticateYesThe WWW-Authenticate header value from the 401 response

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.6-beta

TDQS

B3.1/5.0
Behavior2/5

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

No annotations at all, so the description carries the full burden. It does not say whether the tool is purely local computation with no side effects, what it returns (a bare header value vs. a full 'Authorization: ...' line), which digest algorithms (MD5/SHA-256), or how qop/nc/cnonce are handled — all material for a digest-auth helper.

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, front-loaded with the action and followed by the usage trigger. No filler, but the second sentence is nearly redundant with the first.

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?

Five required parameters, no annotations, no output schema, and 40% schema coverage. For a tool whose whole value is producing a correctly formatted header, the description omits the output shape and algorithm support, leaving the agent guessing how to use the result.

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 only 40% (method, username, password are bare strings), and the description adds no parameter-level meaning beyond what the schema shows — it implies www_authenticate comes from the 401 response, which the schema already states. It therefore neither helps nor misleads.

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?

Names a specific verb and artifact: 'Compute an HTTP Digest Authentication header', and states the input source ('from a 401 WWW-Authenticate challenge'). That is far more precise than siblings like add_cookie or clear_token_cache, though it never explicitly contrasts itself with those credential-handling tools.

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?

'Use when an API requires Digest auth' gives a trigger condition but no exclusions or alternatives (e.g., when to prefer add_cookie or a token cache). It largely restates the purpose sentence rather than routing the agent between options.

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