Skip to main content
Glama

Journaliser un evenement d'agent

obs_event_log

Log AI agent execution spans—model calls, tool invocations, retrieval steps—with duration, status, token usage, and cost for search, metrics, and anomaly detection.

Instructions

Enregistre un span d'execution d'agent IA : appel de modele, appel d'outil, recherche documentaire ou etape interne. Conserve la trace, la duree, le statut, les tokens et le cout pour permettre ensuite la recherche, les metriques et la detection d'anomalies.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindNoType d'operation instrumentee.other
nameYesNom de l'operation, ex: 'llm.chat', 'tool.search_web', 'retriever.query'.
modelNoModele utilise, ex: 'claude-sonnet-4', 'gpt-4o-mini'.
statusNoIssue de l'operation.ok
projectNoNom du projet ou de l'application. Defaut : 'default'.
span_idNoIdentifiant du span. Genere automatiquement si absent.
cost_usdNoCout de l'appel en dollars.
trace_idNoIdentifiant de la trace. Genere automatiquement si absent.
attributesNoMetadonnees libres : utilisateur, version, tags, etc.
started_atNoDate de debut au format ISO 8601. Defaut : maintenant.
duration_msNoDuree de l'operation en millisecondes.
input_tokensNoNombre de tokens en entree.
error_messageNoMessage d'erreur si le statut n'est pas 'ok'.
output_tokensNoNombre de tokens en sortie.
parent_span_idNoIdentifiant du span parent, pour reconstituer l'arborescence.
response_formatNoFormat de sortie. 'markdown' pour lecture humaine, 'json' pour traitement programmatique.markdown
Behavior3/5

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

No annotations provided, so description carries full burden. It explains the tool persists data (trace, duration, status, tokens, cost) for later analysis. However, it does not disclose side effects, authentication needs, rate limits, or whether it's safe to call multiple times. Adequate but not thorough.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, concise and front-loaded: first explains what it does, second explains the benefit. No wasted words. Length is appropriate for the complexity.

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?

Tool has 16 parameters but no output schema. Description does not explain what the tool returns (e.g., success indication, span ID, or error). Also does not clarify the 'response_format' parameter or how the nested 'attributes' object works. Given the parameter count and complexity, more detail is needed.

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 coverage is 100% (all 16 parameters have descriptions), so baseline is 3. The description adds context by listing operation types (model call, tool call, etc.) which align with the 'kind' enum. No additional detail beyond the schema, but no omission either.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool logs spans of AI agent execution (model calls, tool calls, retrieval, internal steps). It distinguishes itself from sibling tools like obs_trace_get, obs_events_search, etc., which are for querying/analyzing, not logging.

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 description implies when to use (when recording events), but does not explicitly state when not to use or mention alternative sibling tools. Usage context is implicit, not directive.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AgentIA1984-cmd/agent-observability-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server