Spanly Docs
Spanly MCP

Tools

The full surface of tools exposed by the Spanly MCP server.

The Spanly MCP server exposes the tools below. All of them resolve against the project the API key is bound to. Time-range arguments accept the presets 5m, 30m, 1h, 3h, 1d, 7d, 30d, 90d, 180d. Anywhere a tool takes an environmentId, you can list valid values with list_environments.

Project & environment discovery

ToolPurpose
list_projectsProjects accessible to the API key.
list_environmentsEnvironments (regional contexts) inside the project.

Requests

The leaf entity – one JSON-RPC request/response pair captured from your MCP server.

ToolPurpose
list_requestsFilter requests by server, client, method, status, and time range.
get_requestFetch a single request by id, including raw payload.
aggregate_requests_by_methodGroup request counts by method.

Servers & clients

ToolPurpose
list_serversServers seen in the time range, with request counts and error rates.
aggregate_serversRoll up traffic by server name/version.
client_calls_over_timeTime series of calls by client name/version – useful for spotting client-side regressions.

Errors

ToolPurpose
list_errorsErrored requests in the time range.
aggregate_errors_by_codeCounts grouped by error code.
get_errors_by_codePull the underlying requests for one error code.

Dashboards

The same views that power the dashboard UI.

ToolPurpose
dashboard_statsHeadline numbers: total requests, error rate, p50/p95/p99.
dashboard_top_serversTop servers by traffic.
dashboard_top_toolsTop tools (MCP tools/call) by traffic.
dashboard_slowest_operationsThe slowest operations in the window.

Integration help

ToolPurpose
get_integration_instructionsReturns copy-paste integration instructions for the TS SDK, Python SDK, CLI, or Docker – the same content as the in-app onboarding flow.

Alerts

Read and manage alert rules and notification channels.

ToolPurpose
list_alert_rulesList alert rules in the project.
count_alert_rulesQuick count for dashboard tiles.
get_alert_ruleFetch a single rule by id.
create_alert_ruleCreate a new rule. Metrics: ERROR_RATE, P95_DURATION, P99_DURATION, VOLUME_DROP, VOLUME_SPIKE.
update_alert_ruleUpdate an existing rule.
toggle_alert_ruleEnable / disable a rule without deleting it.
delete_alert_ruleDelete a rule.
preview_alert_metricCompute the current value of a metric – useful before setting a threshold.
test_fire_alert_ruleForce-fire a rule to verify routing to channels.

Alert channels

ToolPurpose
list_alert_channelsList notification channels (EMAIL, SLACK, WEBHOOK, IN_APP).
create_alert_channelCreate a new channel.
update_alert_channelUpdate a channel's destination or auth.
delete_alert_channelDelete a channel.
ToolPurpose
list_shared_linksExisting share links for the project.
create_shared_linkCreate a read-only link to a dashboard, request, or chart.
revoke_shared_linkRevoke an existing link.

Conventions

  • Read-only by default – every tool documents whether it mutates state. Write tools require project-admin permissions.
  • No pagination cursor surprises – listing tools take limit and offset rather than opaque cursors, so an agent can plan multi-step scans deterministically.
  • Idempotent IDscreate_* tools return the new id; if you pass an existing id explicitly, the call is a no-op upsert rather than a duplicate.

On this page