Tools
This is a reference catalogue. Tools cannot be configured or run from this page.
Import Request Logs Into Table Sheet
PROMPTLAYER_IMPORT_TABLE_SHEET_REQUEST_LOGSStart an asynchronous request-history import into an existing PromptLayer Table sheet. Provide specific request_log_ids or a structured filter_group to select logs in the API key's workspace. Returns an operation_id and status_url to poll; acceptance does not mean the rows have finished importing.
Ingest OTLP Traces
PROMPTLAYER_INGEST_OTLP_TRACESIngest OpenTelemetry traces using OTLP JSON, optionally gzip-compressed. Returns partialSuccess rejection details when some spans are rejected. Set close_after to close the submitted traces and reject subsequent writes.
Ingest Spans
PROMPTLAYER_INGEST_SPANSPersist a batch of OpenTelemetry-style observability spans and optional associated request logs in PromptLayer without invoking a model. Supply nanosecond span timestamps. Optionally close all traces in the batch to reject subsequent writes. Inspect rejected_span_ids, rejected_trace_ids and rejection_reason for dropped spans, even when success is true.
Log Request
PROMPTLAYER_LOG_REQUESTLog an existing model request and response in PromptLayer with timing, usage, cost, tags, metadata, and optional prompt association. This records supplied data without invoking an LLM. Chat message content must be an array of content blocks, not a plain string. Returns the created request log ID.
Patch Prompt Template Version
PROMPTLAYER_PATCH_PROMPT_TEMPLATE_VERSIONCreate a new version of an existing PromptLayer template by patching its latest version, a specific version, or a release label. Patch chat messages/tools/functions or completion content by index or replace whole arrays, tune model parameters, and optionally move release labels. Omitted fields are preserved; explicit null removes supported settings. This stores a new version without executing an LLM or modifying the base version.
Publish Prompt Template
PROMPTLAYER_PUBLISH_PROMPT_TEMPLATEPublish a PromptLayer registry prompt template and a new version of its chat or completion content. Creates a template or adds a version to the existing prompt name. Optionally attach tags, model metadata, release labels, and external IDs. This stores the prompt without executing an LLM.
Run Workflow
PROMPTLAYER_RUN_WORKFLOWStart an execution of a PromptLayer workflow by name, using its latest version or one specified label or version number. Returns an execution ID, not the completed output; retrieve results with Get Workflow Execution Results. Optionally supply inputs, metadata, or an HTTP callback URL for asynchronous delivery.
Save Skill Collection Version
PROMPTLAYER_SAVE_SKILL_COLLECTION_VERSIONCreate a new saved version of a PromptLayer skill collection by UUID, name, or root path. Send file text updates, path moves, and deletions as JSON, with an optional commit message and release label.
Track Score
PROMPTLAYER_TRACK_SCORERecord a score from 0 to 100 on an existing PromptLayer request log. Supply the request_id returned by logging a request and optionally a score name; omitting the name records the default score.
Upsert Prompt Template by External ID
PROMPTLAYER_UPSERT_PROMPT_TEMPLATE_BY_EXTERNAL_IDCreate or update a PromptLayer registry prompt template identified by an external source and ID. Creates the template when the mapping does not exist; otherwise publishes a new version of the same template. Supply registry metadata and chat or completion content, with optional release labels and additional external IDs. Stores the prompt without executing an LLM.