Skip to main content
Glama

get_auth_token

Retrieve the AI Builder authentication token from environment variables, with optional masking to protect sensitive credentials during deployment and API usage support.

Instructions

Return AI_BUILDER_TOKEN from environment (masked by default)

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

Input Schema

NameRequiredDescriptionDefault
maskedNoReturn masked token if true

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.11

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It usefully discloses that output is masked by default, but says nothing about what masking looks like, whether unmasking exposes a secret, what happens if the environment variable is unset, or whether the returned token has a limited scope or lifetime.

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?

A single short clause with the default behavior in parentheses. Nothing is wasted and the key detail 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?

For a one-parameter, no-output-schema tool, the description says what is returned and the default behavior. The remaining gap is failure and security semantics (unset variable, exposure risk when unmasked), which an agent would benefit from knowing given the absence of annotations.

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 100% and there is only one optional parameter, so the schema already defines masked. The description's '(masked by default)' merely restates the schema default rather than adding format or security meaning.

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?

States a specific verb and resource: returns AI_BUILDER_TOKEN from the environment. That is distinguishable from siblings like get_base_url and get_api_specification, which return configuration rather than a credential. There is no explicit contrast with the sibling explain_authentication_model, but the verb+resource specificity is enough for an agent to select it.

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 only implied: an agent infers it should call this when it needs a credential to authenticate a request. There is no statement of when to prefer explain_authentication_model for understanding auth versus this tool for obtaining the actual token, and no prerequisites or exclusions.

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