Skip to main content
Glama
Debugg AI MCP

Debugg AI MCP

Official
by debugg-ai

Environment

environment
Destructive

Create, list, update, and delete project app targets while managing login credentials and authorized SSO hosts; inspect or clear captured sessions to control login reuse.

Instructions

Manage environments (and their login credentials) under a project. Pass an "action":

  • "get" {uuid, projectUuid?} → one environment with credentials inline (passwords never returned).

  • "list" {projectUuid?, q?, page?, pageSize?} → paginated environments. projectUuid auto-resolves from the git repo if omitted.

  • "create" {name, url, description?, projectUuid?, credentials?, authorizedCredentialHosts?} → create an env, optionally seeding credentials.

  • "update" {uuid, name?, url?, description?, addCredentials?, updateCredentials?, removeCredentialIds?, authorizedCredentialHosts?} → patch env + manage credentials.

  • "delete" {uuid, projectUuid?, confirm?} → delete env (DESTRUCTIVE; requires confirmation).

  • "sessions" {uuid, username?, credentialId?} → captured login sessions this env is holding, and whether each would be reused.

  • "clearSessions" {uuid, username?, credentialId?, confirm?} → invalidate them so the next run logs in for real.

CROSS-DOMAIN SSO: a run only types this environment's credentials on the app's own host (and its subdomains); a login on any other host is refused as offscope_host. If your identity provider lives on a different domain than the app, add the IdP host to authorizedCredentialHosts — bare hostnames like "auth.example.com", no scheme/path/port/wildcard. The response echoes the saved list; if it reports authorizedCredentialHostsWarning, the server did not persist it.

SESSIONS: runs reuse a warm authenticated session per account instead of logging in every time. That is why a check can report "no login form" — it was already signed in. Use "sessions" to see whose session is held, "clearSessions" to drop it, or pass freshSession:true on a single check_app_in_browser call to bypass reuse without clearing anything.

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": {
      "action": "<action>"
    },
    "name": "environment"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNo[list] Free-text search over env name.
urlNo[create/update] Base URL.
nameNo[create/update] Environment name.
pageNo[list] Page (1-indexed).
uuidNo[get/update/delete] Environment UUID.
actionYesOperation to perform.
confirmNo[delete/clearSessions] Set true to confirm (when the client cannot prompt). clearSessions only needs it when no username/credentialId narrows it.
pageSizeNo[list] Page size (1..200).
usernameNo[sessions/clearSessions] Narrow to one account. Matched case-insensitively.
credentialsNo[create] Seed login credentials.
descriptionNo[create/update] Free-text description.
projectUuidNoTarget project (defaults to git auto-detect).
credentialIdNo[sessions/clearSessions] Narrow to one stored credential by UUID.
addCredentialsNo[update] Add credentials.
updateCredentialsNo[update] Patch credentials by UUID.
removeCredentialIdsNo[update] Delete credentials by UUID.
authorizedCredentialHostsNo[create/update] Hosts where the run may enter this environment's credentials besides the app's own host, e.g. your identity provider for cross-domain SSO. Bare hostnames only (auth.example.com). On update this REPLACES the list; [] clears it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv6.2.13
    • addedInput schema / properties / addCredentials / items / properties / credentialRef
      Added value: +{
      +  "description": "PREFERRED over password: 'env:NAME' or 'simpli:<vault-env>/<KEY>' (e.g. 'simpli:qa-logins/QA_APP_PASSWORD'). Resolved on this machine at call time and used as the password; the secret never appears in the transcript, logs or output. Use instead of password.",
      +  "type": "string"
      +}
    • changedInput schema / properties / addCredentials / items / required
      Previous value: -[
      -  "label",
      -  "username",
      -  "password"
      -]New value: +[
      +  "label",
      +  "username"
      +]
    • addedInput schema / properties / credentials / items / properties / credentialRef
      Added value: +{
      +  "description": "PREFERRED over password: 'env:NAME' or 'simpli:<vault-env>/<KEY>' (e.g. 'simpli:qa-logins/QA_APP_PASSWORD'). Resolved on this machine at call time and used as the password; the secret never appears in the transcript, logs or output. Use instead of password.",
      +  "type": "string"
      +}
    • changedInput schema / properties / credentials / items / required
      Previous value: -[
      -  "label",
      -  "username",
      -  "password"
      -]New value: +[
      +  "label",
      +  "username"
      +]
    • addedInput schema / properties / updateCredentials / items / properties / credentialRef
      Added value: +{
      +  "description": "PREFERRED over password: 'env:NAME' or 'simpli:<vault-env>/<KEY>' (e.g. 'simpli:qa-logins/QA_APP_PASSWORD'). Resolved on this machine at call time and used as the password; the secret never appears in the transcript, logs or output. Use instead of password.",
      +  "type": "string"
      +}
  2. Changed1 schema field changedv4.3.0
    • addedInput schema / properties / authorizedCredentialHosts
      Added value: +{
      +  "description": "[create/update] Hosts where the run may enter this environment's credentials besides the app's own host, e.g. your identity provider for cross-domain SSO. Bare hostnames only (auth.example.com). On update this REPLACES the list; [] clears it.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  3. Changed4 schema fields changedv4.2.2
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "get",
      -  "list",
      -  "create",
      -  "update",
      -  "delete"
      -]New value: +[
      +  "get",
      +  "list",
      +  "create",
      +  "update",
      +  "delete",
      +  "sessions",
      +  "clearSessions"
      +]
    • changedInput schema / properties / confirm / description
      Previous value: -"[delete] Set true to confirm deletion (when the client cannot prompt)."New value: +"[delete/clearSessions] Set true to confirm (when the client cannot prompt). clearSessions only needs it when no username/credentialId narrows it."
    • addedInput schema / properties / credentialId
      Added value: +{
      +  "description": "[sessions/clearSessions] Narrow to one stored credential by UUID.",
      +  "type": "string"
      +}
    • addedInput schema / properties / username
      Added value: +{
      +  "description": "[sessions/clearSessions] Narrow to one account. Matched case-insensitively.",
      +  "type": "string"
      +}
  4. Addedv3.10.0
  5. Removedv3.7.4
  6. Addedv3.0.1

TDQS

A4.6/5.0
Behavior4/5

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

Goes well beyond the annotations (which only flag destructive/openWorld): it discloses that passwords are never returned, that delete is destructive and needs confirmation, the offscope_host refusal for cross-domain logins, and the authorizedCredentialHostsWarning signal when the server fails to persist the list. The session-reuse behavior explains a non-obvious symptom ('no login form'), which is high-value. Minor gaps remain around what happens to dependent runs or sessions when an environment is deleted.

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?

Front-loaded with the action list, then two clearly labelled sections for SSO and sessions. Some of the parameter detail duplicates the schema's tags, but the structure makes a complex polymorphic tool scannable and no section is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 17-parameter, destructive, polymorphic tool with no output schema, the description covers input shapes, return shape for each action (single env with inline credentials, paginated list, echoed saved host list), and error signals. An agent could invoke this correctly without further clarification.

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 much of the per-action argument mapping in the description mirrors the schema's own bracketed tags. It still adds real value by consolidating a 17-parameter, multi-action surface into one readable mapping and by clarifying credential handling semantics (write-only passwords, credentialRef preferred, projectUuid auto-resolution) in a single place.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific resource (environments and their login credentials) and enumerates eight concrete actions with their argument shapes, so the agent knows exactly what surface it is calling. It also differentiates itself from the browser-check siblings by referencing check_app_in_browser's freshSession parameter.

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

Usage Guidelines5/5

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

Explicit routing between actions: 'sessions' to inspect held sessions, 'clearSessions' to invalidate them, or freshSession:true on a single check_app_in_browser call to bypass reuse without clearing. It also states the condition for populating authorizedCredentialHosts (IdP on a different domain) and when confirm is required.

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