Skip to main content
Glama

Record LLM call (Kamy Trace)

trace_record

Record one LLM call — prompt, output, provider, model, tokens, latency — into Kamy Trace, a signed retention ledger. Each record is hashed and signed at write time, so it can be produced later without the 'you could have edited this' objection. Reach for it when model calls need a reviewable history: regulated workflows, customer-facing generations, anything you may have to explain months later. Set status 'flagged' with status_detail on calls a human should revisit. Returns { id, content_sha256, signature, recorded_at, verify_url }. Requires a Kamy API key with the trace:record scope; each call consumes monthly Trace quota.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagsNoUp to 20 free-form labels. trace_search can filter on any one of them.
modelYesModel identifier exactly as the provider reports it, e.g. 'claude-sonnet-4-6'.
outputNoThe model's response, verbatim. Any JSON value.
promptNoThe prompt / request you sent, verbatim. Any JSON value (string, array, object).
statusNoOutcome. 'flagged' marks a call you want a human to review later. Defaults to 'ok'.
featureNoProduct area the call belongs to, e.g. 'support_reply'. Filterable in trace_search.
providerYesWhich model vendor served the call. Use 'custom' for anything self-hosted.
latency_msNoWall-clock duration of the call.
input_tokensNoPrompt tokens billed.
output_tokensNoCompletion tokens billed.
status_detailNoWhy the call was flagged or failed. Free text.

TDQS

A4.4/5.0
Behavior5/5

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

Annotations (readOnlyHint=false, destructiveHint=false) indicate a write operation that is not destructive. The description adds substantial behavioral context: records are hashed and signed at write time for tamper evidence, returns a specific structure ({ id, content_sha256, signature, recorded_at, verify_url }), requires a Kamy API key with trace:record scope, and consumes monthly Trace quota. There is no contradiction with annotations.

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?

The description is approximately 7 sentences, each serving a distinct purpose: stating the core function, explaining hashing/signing, providing usage context, noting status options, listing return fields, and specifying auth/quota. There is no redundancy or extraneous information. It is front-loaded with the primary purpose.

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?

Given 11 parameters (2 required) and no output schema, the description covers the return value structure, authentication requirements, and quota consumption. It does not address error handling or rate limits, but it provides sufficient context for an agent to invoke the tool appropriately. The missing output schema is partially compensated by the description of the return object.

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 100%, so the baseline is 3. The description mentions several parameters (prompt, output, provider, model, tokens, latency) but does not add significant new information beyond what the schema already provides for each parameter. The schema already includes descriptions for tags, feature, status, etc. The description adds no extra parameter-level semantics.

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 action ('Record one LLM call') and the specific resource components (prompt, output, provider, model, tokens, latency) into Kamy Trace. It distinguishes itself from sibling tools like trace_search, which searches records, and other tools that handle different tasks (e.g., attest_artifact, record_agent_action). The purpose is specific and unambiguous.

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

Usage Guidelines4/5

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

The description provides explicit usage guidance: 'Reach for it when model calls need a reviewable history: regulated workflows, customer-facing generations, anything you may have to explain months later.' It also mentions using 'flagged' status for human review. However, it does not explicitly state when not to use it or compare to alternative tools like record_agent_action, which could record similar events. The context is clear but lacks exclusions.

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.

TDQS

A4.4/5.0
Disambiguation5/5

Each tool targets a distinct action or resource with minimal ambiguity. For example, `render_pdf`, `render_docx`, `render_xlsx`, and `pptx` are clearly different output formats, while `merge_pdfs`, `split_pdf`, and `edit_pdf` target different PDF operations. The signature tools (`create_signature_request`, `get_signature_request`, etc.) are also clearly separated by lifecycle stage. No two tools appear to do the same thing.

Naming Consistency5/5

Tool names follow a highly consistent `verb_noun` pattern throughout, such as `create_signature_request`, `get_signature_request`, `list_signature_requests`, and `remind_signature`. This pattern is applied uniformly across all major domains (render, signature, template, webhook, trace), making the API predictable and easy for an agent to navigate.

Tool Count4/5

With 59 tools, this is a large surface area, but it is justified by the breadth of functionality: document rendering in multiple formats, e-signatures, template management, webhooks, scheduling, and a crypto/audit trail. While large, each tool has a distinct purpose, and the count feels appropriate for the scope of a comprehensive document automation API. A surface this large risks being overwhelming, but the internal organization is logical.

Completeness5/5

The tool surface is remarkably complete, covering the full lifecycle for multiple domains. For e-signatures, there are tools for CRUD (requests, templates), sending (individual, bulk, envelope), monitoring (get, list), reminders, and certificates. For documents, it covers creation, conversion, editing, merging, splitting, and verification. The inclusion of utility tools like `get_started`, `validate_payload`, and the audit trail tools further solidifies this as a well-considered, production-ready API surface.