Skip to main content
Glama

add_audit_fields

Add audit trail columns (created_by, updated_by, version) to an existing schema

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": {
      "table": "<table>",
      "database": "<database>"
    },
    "name": "add_audit_fields"
  }
}

Input Schema

NameRequiredDescriptionDefault
tableYesTarget table name
databaseYesTarget database
withVersionNoAdd optimistic locking version column
withUserTrackingNoAdd created_by / updated_by columns

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, yet "Add" only implies a mutation without clarifying whether the tool executes database changes or generates DDL/migration artifacts. It also omits permission needs, handling of pre-existing columns, reversibility, and what result the caller receives.

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 single sentence is front-loaded with the action and contains no filler. Listing all three columns without indicating that user tracking and versioning are optional slightly oversimplifies the operation, but the wording itself is efficient.

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

Completeness2/5

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

The rich input schema covers basic invocation, but there are no annotations or output schema to resolve the central ambiguity between directly modifying a database and producing a migration or other artifact. For an existing-schema mutation, the description should also address optional-field behavior and safety considerations such as existing columns or failed changes.

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 the schema already explains the target table, supported databases, and both optional feature flags. The description's column list reinforces that schema but adds little about flag combinations, defaults, or the distinction between the target table and the stated existing schema, making the high-coverage baseline appropriate.

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 uses a specific verb and resource: adding created_by, updated_by, and version audit columns to an existing schema. It clearly conveys augmentation rather than initial schema design, but does not explicitly distinguish the tool from siblings such as generate_audit_log or convert_schema.

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?

The phrase "to an existing schema" implies when the tool is appropriate, namely retrofitting audit fields rather than creating a schema from scratch. There is no explicit guidance about when not to use it, prerequisites, or how to choose among related audit and schema tools.

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.