Skip to main content
Glama

segments_enrichments_logs

Returns up to 500 most-recent log entries for this segment, newest first. Each entry: enrichment_type, success (bool), created_at (when the run finished), error_message, connects_used, and the lead the enrichment ran against.

Method: GET /api/v1/workspaces/{workspace_sqid}/segments/{segment_sqid}/enrichments/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": {
      "segment_sqid": "<segment_sqid>"
    },
    "name": "segments_enrichments_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
segment_sqidYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/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 disclosure burden and does well: it declares the hard 500-entry cap, the newest-first ordering, and clarifies that created_at is the run's finish time and that connects_used and error_message are per-entry. Gaps remain on permission/auth requirements and on the fact that older entries beyond 500 are unreachable, but the core behavioral profile is unusually explicit.

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 retrieval constraint and ordering lead the sentence, followed by a compact field inventory, with the endpoint appended for reference. Every element is functional; the 'Method:' line is marginally redundant but small and useful for debugging.

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?

With no output schema and no annotations, the inline field enumeration is exactly what makes this callable — an agent knows the return shape before invoking. The absence of any note about the 500-entry truncation meaning data loss, and of any auth note, are the only meaningful omissions.

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 segment_sqid, so the description must compensate. It does partially — 'for this segment' ties the parameter to the resource, and the GET path shows the workspace_sqid is path-derived and not a separate input — but it never explains the sqid format or how to obtain one.

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 up to 500 most-recent log entries for this segment, newest first'), and the 'for this segment' scoping implicitly separates it from the workspace-level sibling enrichments_logs. It stops short of naming any alternative outright, so differentiation relies on the reader noticing the scope word.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description never says when to reach for this tool versus enrichments_logs, campaigns_step_logs, or the other log siblings, nor does it mention prerequisites or exclusions. Usage is only inferable from the word 'log entries' — there is no routing guidance at all.

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.