Skip to main content
Glama

leads_campaign_logs

Returns campaign step logs for this lead, newest first. Each entry shows the campaign, step, status (integer code and display label), and an is_current_step flag indicating the most advanced non-canceled step per campaign.

Method: GET /api/v1/workspaces/{workspace_sqid}/leads/{sqid}/campaign-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_campaign_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqidYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full load and does well: it discloses the HTTP method (GET, implying a read-only, non-mutating call), the ordering of results, the fields each entry contains, and the non-obvious semantics of the is_current_step flag. It omits pagination behavior, result-size limits, and any permission requirements, which are the only material gaps.

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?

Two well-formed sentences with the key facts (scope, ordering, entry fields, is_current_step meaning) front-loaded, followed by a compact method/path line. The method line adds modest value for API-literate agents and is short enough not to be waste.

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 simple one-parameter read with no output schema and no annotations, the description covers the essential return shape and ordering semantics an agent needs. Missing only pagination/limit details and reconciliation of the undocumented workspace_sqid path segment.

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 0% for the single required 'sqid' parameter, so the description must compensate; the endpoint path does clarify that sqid identifies a lead nested under a workspace. However, the path also references {workspace_sqid}, which is absent from the input schema, leaving a mismatch the description never resolves.

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 states a specific verb and resource ('Returns campaign step logs for this lead') and adds ordering ('newest first'), so the agent can tell it is a per-lead history read rather than a campaign-level or automation log. It does not explicitly contrast itself with siblings such as campaigns_step_logs or leads_automation_logs, which keeps it at a 4.

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 by the 'for this lead' scoping and the log-type name; there is no explicit statement of when to pick this over leads_automation_logs or campaigns_step_logs, and no prerequisites or exclusions are given. An agent can infer the use case (audit a lead's campaign progression) but is not routed between 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.