Skip to main content
Glama

Set the auth mode

twin_set_auth
Idempotent

Configure whether the twin accepts any bearer token or only unexpired OAuth tokens; returns the active auth mode without modifying records.

Instructions

How the vendor APIs treat bearer tokens: "any-token" accepts anything; "oauth" accepts only unexpired tokens from the twin's OAuth endpoints. Changes no records. Answers with the mode.

Input Schema

NameRequiredDescriptionDefault
modeYesThe new auth mode

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.5.3
    • addedInput schema / properties / mode / description
      Added value: +"The new auth mode"
  2. First observedv0.5.2

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false; the description adds that it 'Changes no records' and that it 'Answers with the mode', which clarifies the scope of the mutation and the return value. It stops short of saying whether the change persists across resets or requires prior scenario load, and the 'Changes no records' phrasing sits in mild tension with readOnlyHint=false (configuration state does change), though not a true contradiction.

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 tight sentences with no filler, and the mode semantics come first. The opening quotation is slightly awkwardly formatted, but nothing needs removing.

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, non-destructive configuration tool with no output schema, the description covers the value semantics and notes that the mode is echoed back. Nothing critical to invoking it correctly is missing, though default/current mode and persistence behavior would round it out.

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% and the enum is already declared, so the baseline would be 3; the description earns more by defining what each enum value actually does at the API layer ('any-token' accepts anything, 'oauth' requires unexpired tokens from the twin's OAuth endpoints). That is genuine meaning beyond 'The new auth mode'.

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 pair of mode definitions makes clear this tool controls how the twin's vendor APIs validate bearer tokens, which is a specific resource and effect. It never states the action verb outright (the title carries 'Set'), but an agent can identify the tool against siblings like twin_set_faults or twin_set_webhooks by the auth/token subject matter.

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

Usage Guidelines2/5

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

The description explains what the modes mean but never says when to switch modes, what the default is, or when to prefer this over other twin configuration tools. Usage must be inferred from the mode semantics alone.

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