Tideways

v2.1.1
io.github.abuhamza/tideways-mcp-server Checked 22 hours ago Published 1 month ago

Read-only access to Tideways PHP performance monitoring: performance, issues, traces, history.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

tideways_list_projects List Tideways projects

List the projects and scopes of the configured Tideways API token, and how much of the organization's hourly rate limit is left. Call this first when unsure which project to use, or after a scope or unknown-project error.

tideways_list_services List services

List the services of a project (web, APIs, workers, CLI) named by its issues, the default service first. Call it when the user names an app, API or worker that is not a project, or a transaction that tideways_search_traces does not find in the default service, with "search" set to one word of it: each service is searched for that word and the services are sorted by matching traces, so the first ones serve it. Costs 4 requests, plus 1 per service searched: at most 30, fewer when the hourly rate limit is small or nearly used up. Only services named by the newest open or ignored issues are listed…

ParameterTypeDescription
environmentstringEnvironment, e.g. "production" or "staging". Defaults to the configured environment, else production; "environment" in the result shows which was used. When results come back, an unknown name fails wi…
projectstringTideways project as "project" or "organization/project". Defaults to the defaultProject that tideways_list_projects reports; call it for valid names.
searchstringOne whole word of the app, API, worker or transaction to find (e.g. "voucher"). Searches the traces of each service for it (one request per service: at most 30 services, fewer when the hourly rate lim…

tideways_get_performance Get performance metrics

Performance of any window of 1-1440 minutes ending at "end" (default now) within the last ~30 days: totals (requests, error rate, p95/median/average response time, time per layer), the top 20 transactions by impact, and a timeline. Older windows return zeros; use tideways_get_history for them. For 15-minute trends over 30 days use tideways_get_performance_summary.

ParameterTypeDescription
detailstring"concise" (default) returns a trimmed summary. "full" also includes the unmodified API response under "raw"; it can be very large.
endstringLast minute included, "YYYY-MM-DD HH:mm" in UTC. Defaults to now.
environmentstringEnvironment, e.g. "production" or "staging". Defaults to the configured environment, else production; criteria.environment (traces: each trace's environment) shows which was used. When results come ba…
minutesintegerWindow length in minutes (max 1440 = 24h). Above 60 the timeline is downsampled to at most 60 points.
projectstringTideways project as "project" or "organization/project". Defaults to the defaultProject that tideways_list_projects reports; call it for valid names.
servicestringService, e.g. "web" or "worker". Defaults to the configured service, else the project's default service. A project can have several services; tideways_list_services lists them. When results come back,…

tideways_get_transaction Get one transaction

Timeline of one transaction over 1-1440 minutes ending at "end" (default now): per minute (or per bucket above 60 minutes) requests, errors, requests over the response-time target, p95/median/average and time per layer, plus totals with a response-time histogram. Use it to see when a transaction got slow and in which layer. Take transactionId from transactions[].id of tideways_get_performance.

ParameterTypeDescription
transactionId *integerNumeric transaction ID from transactions[].id of tideways_get_performance
endstringLast minute included, "YYYY-MM-DD HH:mm" in UTC. Defaults to now.
environmentstringEnvironment, e.g. "production" or "staging". Defaults to the configured environment, else production; criteria.environment (traces: each trace's environment) shows which was used. When results come ba…
minutesintegerWindow length in minutes (max 1440 = 24h). Above 60 the timeline is downsampled to at most 60 points; bucketMinutes says how long each one is.
projectstringTideways project as "project" or "organization/project". Defaults to the defaultProject that tideways_list_projects reports; call it for valid names.
servicestringService, e.g. "web" or "worker". Defaults to the configured service, else the project's default service. A project can have several services; tideways_list_services lists them. When results come back,…

tideways_get_performance_summary Get performance summary

Requests, errors and p95 response time in 15-minute buckets for the last `hours` hours (up to ~30 days), with totals. Use for trends, before/after comparisons and spotting incidents. For per-minute detail and top transactions use tideways_get_performance.

ParameterTypeDescription
detailstring"concise" (default) returns a trimmed summary. "full" also includes the unmodified API response under "raw"; it can be very large.
environmentstringEnvironment, e.g. "production" or "staging". Defaults to the configured environment, else production; criteria.environment (traces: each trace's environment) shows which was used. When results come ba…
hoursintegerHow many hours back to include (max 744 = 31 days). The API always returns ~30 days.
projectstringTideways project as "project" or "organization/project". Defaults to the defaultProject that tideways_list_projects reports; call it for valid names.
servicestringService, e.g. "web" or "worker". Defaults to the configured service, else the project's default service. A project can have several services; tideways_list_services lists them. When results come back,…

tideways_list_issues List issues

List error, slow-SQL, deprecation, warning or notice issues of a project, newest occurrence first, 10 per page, with the total count. Use to find what is failing or slow and how often. Reads all services unless "service" is passed or configured; "transactionIds" narrows to issues of given transactions. One type and one status per call. There is no time filter; use lastOccurred to judge recency.

ParameterTypeDescription
detailstring"concise" (default) returns a trimmed summary. "full" also includes the unmodified API response under "raw"; it can be very large.
environmentstringEnvironment, e.g. "production" or "staging". Defaults to the configured environment, else production; criteria.environment (traces: each trace's environment) shows which was used. When results come ba…
pageintegerPage number; 10 issues per page
projectstringTideways project as "project" or "organization/project". Defaults to the defaultProject that tideways_list_projects reports; call it for valid names.
servicestringService, e.g. "web" or "worker". Defaults to the configured service, else all services of the project; tideways_list_services lists them.
statusstringopen (default) = unresolved; all = open and ignored together; resolved, ignored and not_error are triaged states; "new" currently returns the same list as "open".
transactionIdsarrayOnly issues raised in these transactions: numeric IDs from transactions[].id of tideways_get_performance.
typestringerror = exceptions and fatal errors, slowsql = slow SQL queries, deprecated = deprecations, warning = PHP warnings, notice = PHP notices

tideways_get_issue Get issue

Get one issue from tideways_list_issues in depth: the stack trace of its latest occurrence (first 15 frames) with the request it came from (URL, method, status, host, service), the transactions it occurred in with counts, and its occurrences per time bucket over the retention period. Use to point at the failing code, rank the affected endpoints, and say when the issue started, peaked or stopped. Pass the id and the type the issue was listed under.

ParameterTypeDescription
issueId *stringIssue ID from issues[].id of tideways_list_issues
detailstring"concise" (default) returns a trimmed summary. "full" also includes the unmodified API response under "raw"; it can be very large.
projectstringTideways project as "project" or "organization/project". Defaults to the defaultProject that tideways_list_projects reports; call it for valid names.
typestringType the issue was listed under in tideways_list_issues

tideways_search_traces Search traces

Find individual request traces (30 per call unless "limit" asks for up to 100; newest first unless sortBy is set) with response time, memory, bottlenecks and the slowest layers. Use to investigate specific slow or failing requests; filter by transaction IDs from tideways_get_performance, text, time window and response time.

ParameterTypeDescription
detailstring"concise" (default) returns a trimmed summary. "full" also includes the unmodified API response under "raw"; it can be very large.
environmentstringEnvironment, e.g. "production" or "staging". Defaults to the configured environment, else production; criteria.environment (traces: each trace's environment) shows which was used. When results come ba…
fromstringEarliest trace time, "YYYY-MM-DD HH:mm" UTC; needs "to" as well
limitintegerTraces to return, up to 100. Raise it to cover a busy window or to find rarer examples, such as traces with an nplus1 bottleneck.
maxResponseTimeMsinteger
minResponseTimeMsinteger
projectstringTideways project as "project" or "organization/project". Defaults to the defaultProject that tideways_list_projects reports; call it for valid names.
searchstringOne whole word from the transaction name or URL path (e.g. "checkout"), matched against transaction, host and URL tokens. Several words match any of them and widen the result.
servicestringService, e.g. "web" or "worker". Defaults to the configured service, else the project's default service. A project can have several services; tideways_list_services lists them. When results come back,…
sortBystringresponse_time = slowest first, memory = highest first; omit for newest first. Without from/to, sorted results span all retained traces (~30 days).
tostringLatest trace time (inclusive), "YYYY-MM-DD HH:mm" UTC; needs "from" as well
transactionIdsarrayOnly traces of these transactions: numeric IDs from transactions[].id of tideways_get_performance. Combines with search, environment, service, sortBy and the from/to window.
withCallgraphbooleantrue = only traces that have a full callgraph (profile)

tideways_get_history Get historical report

Daily, weekly or monthly performance report for a past date: total requests, error rate, p95, top 20 transactions by impact and a timeline. Use to compare days or weeks. A period that has not ended covers only its finished hours (pendingBuckets > 0), and today has no data until it ends; compare such periods per day or use tideways_get_performance_summary. Covers production and the project's default service only; for another environment or service use tideways_get_performance with end and minutes=1440 (one day per call).

ParameterTypeDescription
date *stringDay to report, "YYYY-MM-DD". For week the API uses the Monday of that week, for month the 1st.
detailstring"concise" (default) returns a trimmed summary. "full" also includes the unmodified API response under "raw"; it can be very large.
granularitystring
projectstringTideways project as "project" or "organization/project". Defaults to the defaultProject that tideways_list_projects reports; call it for valid names.

tideways_get_observations Get observations

Automatic findings Tideways made for a project: PHP configuration problems (e.g. OPcache buffers, timeouts) and code bottlenecks detected in traces (e.g. N+1 queries, sleep, waits). Use for a quick health check or optimization ideas. Findings do not name the affected requests, and the API cannot filter traces by bottleneck: give the user the link, whose page in the Tideways UI lists recent affected traces. Do not infer N+1 queries from slow-SQL issues.

ParameterTypeDescription
environmentstringEnvironment, e.g. "production" or "staging". Defaults to the configured environment, else production; criteria.environment (traces: each trace's environment) shows which was used. When results come ba…
projectstringTideways project as "project" or "organization/project". Defaults to the defaultProject that tideways_list_projects reports; call it for valid names.
servicestringService, e.g. "web" or "worker". Defaults to the configured service, else the project's default service. A project can have several services; tideways_list_services lists them. When results come back,…