Skip to main content
Glama

Deployment Info & Logs

varity_deploy_logs
Read-onlyIdempotent

Fetches recent runtime logs for a Varity deployment by app name or deployment ID, enabling developers to inspect live app output and diagnose runtime issues.

Instructions

Get recent runtime logs for a deployment from the Varity public API. Use this when a developer asks for logs from a live app. If a deploy failed while building, call varity_deploy_status with the deployment: it returns the build error lines.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "varity_deploy_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of log lines to return (default: 100)
deploymentNoThe deployment id or app name to get logs for
deployment_idNoSame as deployment (the name varity_deploy_status uses); pass either one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.0.1
    • addedInput schema / properties / deployment_id
      Added value: +{
      +  "description": "Same as deployment (the name varity_deploy_status uses); pass either one.",
      +  "pattern": "^[a-zA-Z0-9_-]+$",
      +  "type": "string"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "deployment"
      -]
  2. Changed3 schema fields changedv2.0.0
    • addedInput schema / properties / deployment
      Added value: +{
      +  "description": "The deployment id or app name to get logs for",
      +  "pattern": "^[a-zA-Z0-9_-]+$",
      +  "type": "string"
      +}
    • removedInput schema / properties / deployment_id
      Removed value: -{
      -  "description": "The deployment ID to get logs for",
      -  "pattern": "^[a-zA-Z0-9_-]+$",
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "deployment_id"
      -]New value: +[
      +  "deployment"
      +]
  3. First observedv2.0.0-beta.24

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, open-world), so the bar is lower. The description adds real value beyond them by clarifying that these are runtime logs from a live app and that build failures surface a different output via varity_deploy_status. It says nothing about ordering (newest-first?), log retention window, or truncation behavior, which would have pushed it to a 5.

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

Conciseness5/5

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

Three short sentences, front-loaded with the core action, then usage context, then the routing alternative. No filler or redundancy; every sentence changes how an agent would behave.

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?

For a read-only, zero-required-parameter tool with full schema coverage, the definition covers purpose, usage, and sibling routing adequately. The one gap is that there is no output schema and the description does not sketch the shape of a returned log line (timestamp, level, message), which would help an agent present results.

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

Parameters3/5

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

Schema coverage is 100%: limit, deployment, and deployment_id are all documented in the schema, including the aliasing note that either identifier may be passed. The description adds no parameter detail of its own, so the baseline of 3 applies — the schema does the work here.

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 and resource ('Get recent runtime logs for a deployment') and qualifies it with source ('Varity public API') and scope ('runtime' as opposed to build). It explicitly distinguishes itself from the sibling varity_deploy_status, so an agent can pick the right tool without opening a schema.

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

Usage Guidelines5/5

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

It gives an explicit triggering condition ('when a developer asks for logs from a live app') and names the alternative with the condition that selects it ('If a deploy failed while building, call varity_deploy_status'). The when/when-not pair is complete and unambiguous.

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