Skip to main content
Glama

leads_automation_logs

Returns recent automation run logs for this lead, newest first. Optional ?field= filter narrows to logs from automations whose output includes the named field. Each entry includes automation name, type, success, result (the enrichment output), error, and usage metrics.

Method: GET /api/v1/workspaces/{workspace_sqid}/leads/{sqid}/automation-logs/

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": {
      "sqid": "<sqid>"
    },
    "name": "leads_automation_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqidYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden but does disclose useful behavior: ordering (newest first), the fields returned per entry, and the semantics of the field filter. It omits the size of the 'recent' window, pagination/limits, and permission requirements, which matter for an unannotated read tool.

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 core behavior and return shape are front-loaded in two sentences, with the filter and HTTP method trailing. The method/path line is somewhat redundant system detail but is short and clearly separated, so the description stays efficient.

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

Completeness3/5

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

For a tool with no annotations and no output schema, describing the returned entry fields ('automation name, type, success, result, error, usage metrics') is genuinely helpful. However, the absent pagination/limit guidance, combined with documenting a filter parameter the schema does not expose, leaves gaps an agent would need in order to call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% for the single sqid parameter, so the description must compensate; it only vaguely implies sqid is the lead identifier. Worse, it documents a `?field=` filter that does not appear in the input schema (which sets additionalProperties false), and references a workspace_sqid path parameter absent from the schema, creating ambiguity about what is actually callable.

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?

States a specific verb and resource ('Returns recent automation run logs for this lead') plus an ordering guarantee (newest first), so an agent knows exactly what it retrieves. It does not, however, distinguish itself from log-oriented siblings such as leads_campaign_logs or enrichments_logs, which the description leaves to inference.

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 through the scoping phrase 'for this lead' and the optional field filter; there is no explicit statement of when to pick this over leads_campaign_logs or enrichments_logs. An agent can infer a plausible use case but gets no exclusions or alternatives.

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.