logo

Vedatrace

AI agents & MCP

MCP tool reference

Inputs, pagination, response limits, and examples for VedaTrace's read-only MCP tools.

Coming soon: These tools describe the forthcoming hosted MCP integration. See setup for availability and connection requirements.

All four tools return structured JSON and a text representation. Set response_format to "json" (default) or "markdown". Tools advertise read-only, non-destructive behavior.

Shared time windows

Search, service listing, and error summaries accept start_time and end_time as ISO-8601 timestamps with a timezone. Use UTC, for example 2026-10-25T12:00:00Z.

  • end_time defaults to now.
  • start_time defaults to 24 hours before the end.
  • Maximum requested window: 31 days. Both boundaries are inclusive.
  • Responses return a normalized window. Reuse it when comparing counts or paging.

The examples below use fixed illustrative dates; substitute the period you want to investigate.

vedatrace_search_logs

Search the first 200 indexed message characters, rather than full archived bodies.

InputBehavior
start_time, end_timeOptional time window.
levelOne exact severity: debug, info, warn, error, or fatal.
serviceExact service name. Use null for unnamed services; omit for all services.
queryLiteral substring, 1–200 characters. Wildcards and regex are not supported.
limitPage size, default 25, maximum 100.
cursorOpaque next_cursor from the previous response.
response_formatjson or markdown.

Example tool arguments:

{
  "start_time": "2026-10-25T12:00:00Z",
  "end_time": "2026-10-25T13:00:00Z",
  "service": "api",
  "level": "error",
  "query": "timeout",
  "limit": 25
}

The response includes logs, count, has_more, next_cursor, window, and search_scope: "indexed_message_previews". Entries include id, timestamp, service, level, message_preview, and is_overflow.

Results are ordered newest first, with log ID breaking timestamp ties. For another page, reuse next_cursor and the same filters. The cursor freezes the time window. Changing filters requires a new search without a cursor. Late-arriving logs may still change the underlying data; pagination is not a database snapshot.

A missing search match does not prove the full message lacks the term. Retrieve full details for relevant IDs.

vedatrace_get_log

Read archived text for one log ID in the connected project.

{
  "log_id": "LOG_ID_FROM_SEARCH",
  "include_metadata": true,
  "response_format": "json"
}

log_id is required. include_metadata defaults to false. The response contains the preview fields plus message, truncated, and optional metadata. No arbitrary archive path is accepted.

  • Message output is limited to 16,000 characters.
  • Requested metadata is limited to 8,000 characters. Larger metadata is replaced with { "_truncated": true }.
  • Check truncated before drawing conclusions about completeness.
  • Archived batches larger than 2 MiB are rejected.
  • Missing or expired archives return a tool error, even if an indexed preview remains.

vedatrace_list_services

Discover exact service names, log counts, and last-seen timestamps within a window.

{
  "start_time": "2026-10-25T12:00:00Z",
  "end_time": "2026-10-25T13:00:00Z",
  "limit": 25,
  "offset": 0
}

limit defaults to 25 and is at most 100; offset defaults to 0. The response includes services, has_more, next_offset, and window. A null service denotes unnamed logs. Reuse the returned window and next_offset for later pages. Counts cover all severities in the requested window.

vedatrace_get_error_summary

Get aggregated error and fatal totals, optionally filtered to one exact service or null for unnamed services.

{
  "start_time": "2026-10-25T12:00:00Z",
  "end_time": "2026-10-25T13:00:00Z",
  "service": "api"
}

The response includes total_errors, total_fatal, by_service, services_truncated, and window. Error totals exclude fatal events; combine both explicitly if you need their sum. Totals cover all matching logs; by_service contains at most the top 20 service groups. services_truncated indicates omitted groups.

These are database aggregates, not model-generated diagnoses.

Resource and prompt

  • vedatrace://project: connected project ID and name, read-only scope, and untrusted-data guidance.
  • vedatrace_investigate_errors: an evidence-first investigation prompt for clients that expose MCP prompts.

Transport limits

Each token permits 60 authenticated HTTP requests per fixed minute, including discovery. A rate-limited request returns HTTP 429 with Retry-After: 60. Request bodies are limited to 64 KiB.

The server supports stateless Streamable HTTP, including 2025 client compatibility. It does not maintain persistent sessions or SSE subscriptions. Responses are marked Cache-Control: no-store.

On this page