Tools

Get tool parameter stats

Changed on

Returns the most common top-level input keys and their most common values for the tool, computed over a sample of the most recent calls in the range.

get/v1/projects/{projectSlug}/tools/{toolName}/parameters

Request

  • Base URL
    https://api.latitude.so
  • Auth
    HTTP bearer

Path parameters

projectSlugstring required

Project slug (human-readable identifier)

Project slug (human-readable identifier). The CLI can also read this from the LATITUDE_PROJECT_SLUG environment variable.

toolNamestring required

Tool name. URL-encode names containing special characters.

Query parameters

fromIsostring date-time

Lower bound (inclusive) of the time range. Defaults to 7 days before toIso.

toIsostring date-time

Upper bound (inclusive) of the time range. Defaults to now.

topKeysinteger

Maximum number of keys to return.

topValuesPerKeyinteger

Maximum number of values to return per key.

errorsOnly'true' | 'false'

When true, scope every aggregate to failed calls only.

Response

Parameter stats

sampleSizeinteger required

Number of recent calls the stats were computed over.

Changes