Tools
Get tool context breakdown
Changed onReturns where the tool is used, broken down by a dimension: model and provider attribute the tool's traces via their chat spans; tag reads tags on the tool-call spans themselves.
get/v1/projects/{projectSlug}/tools/{toolName}/context
Request
- Base URLhttps://api.latitude.so
- AuthHTTP 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.
dimension'model' | 'provider' | 'tag' required
Dimension to break the usage down by.
errorsOnly'true' | 'false'
When true, scope every aggregate to failed calls only.
Response
Context breakdown
Changes
- info
endpoint added
- info