Skip to main content
Glama

test_fixtures

Create, update, list, delete, and export recorded JWTs, UUIDs, and secrets for pytest/eval runs against auth-gated endpoints; list and audit output masks sensitive values.

Instructions

test_fixtures vault (mirrors the fixtures section of /admin/tests + GET /admin/test-fixtures/export) — real JWTs/UUIDs/secrets an operator records for pytest/eval runs against auth-gated endpoints. jwt/secret kinds are masked "••••" in list output and audit payloads (reuses test_fixtures_handlers.mask verbatim); export reveals real values, same as the .env.test download it mirrors. action: list (env) | create (name, kind, value, description) | update (fixture_id + fields) | delete (fixture_id, confirm=true) | export (env -> {"lines": ["WAJ_TEST<UPPER_NAME>=", ...]}).

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

Input Schema

NameRequiredDescriptionDefault
envNoConfig branch: which `environment` rows of the AI config DB to read/write. staging = the editable working set (default); prod = what production serves.staging
kindNojwt | uuid | string | json | secret.
nameNoFixture name (lowercase, underscores).
valueNoFixture value (stored; masked for jwt/secret).
actionNoOperation to run: list | create | update | delete | export. The tool description lists what each action needs.list
confirmNofalse (default) = dry run, nothing changes; true = execute.
fixture_idNotest_fixtures UUID.
descriptionNoFree-text description.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does real work: it discloses that jwt/secret kinds are masked in list output and audit payloads, that export reveals real unmasked values, that delete requires confirm=true, and that it mirrors an existing .env.test download. Gaps remain around permission requirements, whether deletes are recoverable, and whether export is itself audited — material for a tool exposing real secrets.

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?

Identity and the masking/export caveat are front-loaded, and the action table at the end is compact and scannable. The prose is dense with nested parentheticals and endpoint references that cost more parsing effort than they return, but almost every clause carries information.

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 an 8-parameter, 5-action mutation-and-secret-export tool with an output schema, the description covers the essentials: action semantics, per-action inputs, masking rules, and even the export output shape. The remaining shortfall is authorization and failure behavior, which no annotations cover and which matter most for the destructive and secret-revealing paths.

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 coverage is 100%, so the baseline is 3. The description does add value by binding parameters to actions (create takes name/kind/value/description; update takes fixture_id plus fields), a mapping the schema does not express since all 8 properties are optional with no conditionals. It adds no detail on value formatting or fixture_id validation beyond what the schema already says.

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 names a specific resource (a test fixtures vault mirroring the fixtures section of /admin/tests and the test-fixtures export endpoint) and enumerates the operations it supports. That is far more than a restatement of the name. It stops short of 5 because it never distinguishes itself from the similarly-scoped `env_vars` sibling, leaving the agent to infer the boundary between fixture secrets and environment variables.

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?

It states the concrete use case (recording real JWTs/UUIDs/secrets for pytest/eval runs against auth-gated endpoints) and maps each action to the parameters it requires, which is genuine selection guidance for the `action` enum. It does not say when *not* to use it, nor how it relates to `env_vars` or `audit`, so there is no explicit alternative routing.

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