Skip to main content
Glama

Agents: delete

manage_agents_delete
Destructive

Delete an agent. A connection still using it blocks this. Removes or switches off something in Junction's own settings as the person asking, only as far as their role allows in the Junction portal. Tell the user exactly what will be removed and what that affects first. It answers with a preview first; show it, and only call again with confirm set to true after the user agrees. Company administrators only. Never pass a password, key or token; anything that needs one is done in the portal.

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": {
      "id": "<id>"
    },
    "name": "manage_agents_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesagent id
confirmNoset true only after the user has seen the preview this action answers with first and agreed

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, but the description adds material context the agent could not infer: the connection-in-use block, the role-scoped "as the person asking" authorization model, admin-only access, and the preview response that must be shown before confirming. Weaknesses are the vague "removes or switches off something", which leaves the actual effect ambiguous, and no statement of what happens to related records after deletion.

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?

The action and its main hazard are front-loaded, and the operational rules (preview/confirm, admin-only, no secrets) are each one crisp sentence. The third sentence is the least efficient, packing vague wording ("something", "as far as their role allows") that could be stated plainly, and the confirm guidance partially duplicates the schema description.

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 destructive, non-idempotent mutation with no output schema, the definition covers authorization, preconditions, the required confirmation loop, and the shape of the first response (a preview). It leaves the post-deletion consequences and the exact scope of "removed vs switched off" unspecified, which an agent would want before telling the user what will be affected.

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%, so both parameters are already documented, including the confirm semantics of "after the user has seen the preview". The description restates the same confirm flow ("only call again with confirm set to true after the user agrees") and adds nothing about the id format or identifier source, so the baseline of 3 applies.

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 first sentence states a specific verb and resource ("Delete an agent"), and the second names a blocking precondition (an in-use connection), so the agent knows what the tool does and one hard constraint. It stops short of distinguishing itself from a close sibling such as manage_agents_revoke, and the follow-up phrase "removes or switches off something in Junction's own settings" muddies whether this deletes or merely disables.

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?

Gives a clear call context: only company administrators, only when no connection still uses the agent, and a mandatory two-step preview-then-confirm sequence. It also excludes a class of work ("anything that needs a password, key or token ... is done in the portal"), though it never names an alternative tool to use instead.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources