Skip to main content
Glama

Purge connection call log

connection_audit_purge
Destructive

Delete audit rows older than N days (default 30) for one connection, named by its id alone (a disabled connection's too) or its name with optional team: every caller's rows — your personal connection, or a team connection you created or whose team you own. The cutoff is relative to execution time, so repeating the operation may delete additional newly aged rows.

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

Input Schema

NameRequiredDescriptionDefault
idYesThe connection: its id (a disabled one too), or its name: in team when given, else your personal one.
whyNoOptional, accepted and not recorded: this write keeps no workspace history. If you send one, one sentence on the goal this change serves. At most 300 characters.
teamNoWith a connection name: the team (slug or id) it belongs to.
olderThanDaysNo

Output Schema

NameRequiredDescriptionDefault
purgedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / why / description
      Previous value: -"Optional, accepted and not recorded: this write keeps no workspace history. If you send one, one sentence on what the person is trying to accomplish. At most 300 characters."New value: +"Optional, accepted and not recorded: this write keeps no workspace history. If you send one, one sentence on the goal this change serves. At most 300 characters."
  2. Changed3 schema fields changed
    • removedInput schema / properties / connection
      Removed value: -{
      -  "description": "The connection: its id (a disabled one too), or its name: in team when given, else your personal one.",
      -  "minLength": 1,
      -  "type": "string"
      -}
    • addedInput schema / properties / id
      Added value: +{
      +  "description": "The connection: its id (a disabled one too), or its name: in team when given, else your personal one.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "connection"
      -]New value: +[
      +  "id"
      +]
  3. First observed

TDQS

A4.2/5.0
Behavior4/5

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

The annotations already declare destructiveHint=true and idempotentHint=false, and the description adds meaningful context beyond them: it specifies that every caller's rows for the connection are deleted, and that authorization is limited to personal connections or team connections the caller created or owns. It also warns that because the cutoff is relative to execution time, repeating the operation may delete additional newly aged rows. It stops short of explicitly saying the deletion is irreversible, but the destructive annotation already covers that safety signal.

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 description is two sentences, front-loads the action, and contains no obvious filler. The first sentence is fairly dense and nested, but every clause adds relevant scope about connection identification and ownership. A slightly clearer split of the dense first sentence would merit a 5.

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 destructive purge tool with four parameters, explicit annotations, and an output schema, the description supplies the key decision information: what is deleted, from which connection, under what ownership, and how the time cutoff behaves on repeated calls. Return values are covered by the output schema, so their absence from the description is not a gap. The definition is complete enough for correct selection and invocation.

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 description coverage is 75%, and the description adds useful meaning for the id/team selector by explaining disabled connections, name-with-team resolution, and personal-versus-team connection scope. It also explains that olderThanDays is evaluated at execution time, which adds behavior beyond the schema's default and bounds. The why parameter is left to its schema description, which is acceptable because it is not recorded and does not affect the operation.

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?

The description states a specific verb and resource: delete audit rows older than N days for one connection. It further clarifies that the target can be an id, including a disabled connection, or a name with optional team, and that all callers' rows for that connection are in scope. This is specific enough to distinguish it from read-only audit tools such as connection_audit_recent.

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: the operation is for purging old audit rows, but the description does not explicitly say when to choose it over alternatives or when not to use it. No sibling alternative is named and no exclusions are stated. A 3 is appropriate because the context is inferable from the destructive purge purpose but not explicitly guided.

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.