Back to home
Connect a client

Read database logs

Read the newest lines of the database's own log, up to 500 (tail, default 100). Passwords and connection-string credentials are removed from every line. A database that is not running has no logs: lines is empty and reason says why.

Arguments

NameTypeRequiredLimits
tailintegerNoMinimum 50; Maximum 500
projectIdstringYesAt least 1 character(s)
databaseIdstringYesAt least 1 character(s)
Full input schema
{
  "type": "object",
  "properties": {
    "tail": {
      "type": "integer",
      "minimum": 50,
      "maximum": 500
    },
    "projectId": {
      "type": "string",
      "minLength": 1
    },
    "databaseId": {
      "type": "string",
      "minLength": 1
    }
  },
  "required": [
    "projectId",
    "databaseId"
  ],
  "additionalProperties": false
}

Example call

The params of a tools/call request. Replace the placeholder values with your own IDs.

{
  "name": "getDatabaseLogs",
  "arguments": {
    "projectId": "REPLACE_WITH_PROJECT_ID",
    "databaseId": "REPLACE_WITH_DATABASE_ID"
  }
}

Result

The same data as the API operation, wrapped as {"untrusted_data": true, "source": "getDatabaseLogs", "note": "...", "data": ...} so the model treats project content as data, not instructions.