Skip to main content
Glama
YawLabs

@yawlabs/tailscale-mcp

by YawLabs

Set log stream config

tailscale_set_log_stream_config
Idempotent

Configure Tailscale log streaming for audit or network flow logs by selecting a destination like Splunk, Datadog, or S3 and providing credentials.

Instructions

Set the log streaming configuration for a specific log type. Configures where logs are sent (e.g. Axiom, Datadog, Splunk, Elasticsearch, S3).

Per-destination required fields:

  • splunk / elastic / panther / cribl / datadog / axiom: url + token (user optional)

  • s3: s3Bucket + s3Region + s3AuthenticationType, plus either (s3AccessKeyId + s3SecretAccessKey) for 'accesskey' auth or s3RoleArn for 'rolearn' auth. Call tailscale_create_aws_external_id first when using 'rolearn'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoDestination URL (required for non-s3 destinations)
userNoUsername for the destination (if required)
tokenNoAuthentication token or API key for the destination. SENSITIVE: passed straight to Tailscale and not echoed back, but MCP clients may log the input value you supply.
logTypeYesThe log type: 'configuration' for audit logs, 'network' for network flow logs
s3BucketNo(s3 only) S3 bucket name. Required when destinationType is 's3'.
s3RegionNo(s3 only) AWS region of the S3 bucket. Required when destinationType is 's3'.
s3RoleArnNo(s3 only) IAM role ARN that Tailscale will assume. Required when s3AuthenticationType is 'rolearn'.
s3KeyPrefixNo(s3 only) Optional prefix prepended to the auto-generated S3 object key.
s3AccessKeyIdNo(s3 only) AWS access key id. Required when s3AuthenticationType is 'accesskey'.
destinationTypeYesThe log streaming destination type
compressionFormatNoCompression algorithm for log uploads. Defaults to 'none'.
s3SecretAccessKeyNo(s3 only) AWS secret access key. Required when s3AuthenticationType is 'accesskey'. SENSITIVE: see the token field's note about MCP client logging.
uploadPeriodMinutesNoMinutes to wait between uploads (1-1440). Optional.
s3AuthenticationTypeNo(s3 only) Authentication mode. Required when destinationType is 's3'. Tailscale recommends 'rolearn'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.13.3

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=false, openWorldHint=true, idempotentHint=true, and destructiveHint=false, so safety posture is covered. The description adds valuable behavioral context about per-destination required fields and the two-step rolearn workflow, though it doesn't describe rate limits, error handling, or how existing configs are replaced.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the core action, then uses a compact bulleted breakdown of per-destination requirements. It is efficient for a 14-parameter tool, though the nested bullet could be slightly tightened.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the high schema coverage and no output schema, the description covers the key conditional parameter combinations and the external-id dependency. It is nearly complete, though it could mention what happens to an existing config when this is called.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds meaningful cross-field constraints (which combinations of url/token/s3Bucket/s3Region/s3AuthenticationType/s3RoleArn are required per destinationType) that the schema only partially encodes in individual field notes.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb (Set) and resource (log streaming configuration) scoped by log type, and it names the destination categories (Axiom, Datadog, Splunk, Elasticsearch, S3). It is clearly distinguishable from sibling tools like tailscale_set_log_stream_config vs. tailscale_get_log_stream_config or tailscale_list_log_stream_configs.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives concrete per-destination requirements and explicitly routes the agent to tailscale_create_aws_external_id for rolearn auth. It does not, however, state when this tool should be preferred over alternatives or what prerequisites exist before calling it (e.g. whether the destination must already exist).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools