Skip to main content
Glama

Run a site command

run_command
Read-only

Execute a listed site command for a chosen site, passing arguments, options, and limits to return structured JSON results.

Instructions

Run any sitewise site command from list_commands, e.g. site="devto" command="top", or site="tvmaze" command="search" args=["severance"]. Returns structured JSON.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "site": "<site>",
      "command": "<command>"
    },
    "name": "run_command"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsNopositional arguments, e.g. the search query
siteYesadapter name, e.g. hackernews, reddit, github
limitNomax results, when the command supports it (shorthand for options.limit)
commandYescommand name, e.g. top, search
optionsNoany of the command's options by name, e.g. {"time": "week"} for reddit top; see list_commands

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true and destructiveHint=false, so the safety profile is covered. The description adds that the call returns structured JSON, but is silent on rate limits, per-command failure modes, and the fact that available options vary by command — context that matters for an open-world dispatcher.

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?

Two sentences, zero waste: the capability statement and the list_commands dependency come first, followed by compact inline examples and the return type. Nothing is repeated or padding.

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

Completeness3/5

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

For a dynamic dispatcher with a nested options object and no output schema, the definition covers invocation adequately via examples and the list_commands pointer. It omits that the response shape differs per command and that limit/options only apply when a given command supports them, which are the main unknowns an agent faces here.

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%, so the schema already explains all five parameters and the nested options object. The examples do show how site/command/args compose in practice (args as the search query), which is marginally useful, but the description adds no format or constraint detail beyond the schema's own text. Baseline 3 applies.

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

Purpose4/5

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

States a specific verb and resource ("Run any sitewise site command") and immediately ties the valid inputs to the list_commands sibling, with two concrete site/command examples that show the dispatch model. It stops short of distinguishing this generic runner from the many dedicated per-source siblings (hacker_news, search_github, get_weather), so an agent still has to infer the tradeoff.

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

Usage Guidelines3/5

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

The description supplies a prerequisite — commands must come from list_commands — which is genuine usage guidance. However it never says when to prefer this generic runner over the dedicated wrappers in the sibling list, nor any when-not condition, leaving the main routing decision implicit.

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