Skip to main content
Glama

nox_run_session

Run one or more nox sessions using filters like name, tags, keywords, or Python version. The tool executes session automation tasks such as testing and linting.

Instructions

Run nox sessions.

Use this tool to execute one or more nox sessions in the current project. You can filter sessions by name, tags, or keywords. Use nox_list_sessions first to discover available sessions.

Args: sessions: List of session names to run (e.g., ["tests", "lint"]). Session names must contain only alphanumeric characters, hyphens, or underscores. tags: List of tags to filter sessions (e.g., ["ci", "quick"]). Only sessions matching these tags will run. keywords: A keyword expression to filter sessions (e.g., "test and not slow"). Uses Python expression syntax for matching session names. python: Python version to run sessions with (e.g., "3.11", "3.12"). Overrides the session's default Python version. timeout: Maximum seconds to wait for nox to complete. Defaults to 300.

Returns: A dictionary with 'exit_code' (0 = success), 'stdout', and 'stderr' from the nox command execution.

Example: Run tests with Python 3.11: nox_run_session(sessions=["tests"], python="3.11")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sessionsNo
tagsNo
keywordsNo
pythonNo
timeoutNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

No annotations provided, so description carries full burden. It describes basic behavior (running nox sessions) and return values, but lacks details on destructive actions, auth needs, or error conditions beyond exit codes.

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?

Description is well-structured with intro, args, returns, and example. Front-loaded purpose, every sentence adds value. No redundant text.

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?

Covers usage, parameters, return values, and example. Output schema exists. Minor gaps: doesn't specify error handling for invalid sessions or timeouts, but adequate for a command-executing tool.

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

Parameters5/5

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

Schema description coverage is 0%, but description provides thorough parameter documentation: constraints on sessions (alphanumeric, hyphens, underscores), tags (list), keywords (expression), python version, timeout default. Adds significant meaning beyond schema.

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 clearly states the verb 'Run' and resource 'nox sessions', specifying execution of one or more sessions. It distinguishes from sibling tool nox_list_sessions by advising to list sessions first.

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 advises to use nox_list_sessions first to discover sessions, providing clear context. It mentions filtering options but does not explicitly state when not to use this tool.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rvforest/nox-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server