Skip to main content
Glama
gcorroto
by gcorroto

jenkins_submit_input_action

Submit input actions like approve or reject to Jenkins CI/CD pipelines using decision URLs, enabling automated workflow control.

Instructions

Enviar una acción de input a Jenkins (aprobar/rechazar)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
decisionUrlYesURL de la decisión (proceedUrl o abortUrl)

Implementation Reference

  • Core handler logic: Performs POST request to the provided decisionUrl (proceedUrl or abortUrl) to submit the input action to Jenkins.
    async submitInputAction(decisionUrl: string): Promise<string> {
      try {
        await this.client.post(decisionUrl);
        return 'Action submitted successfully';
      } catch (error: any) {
        throw handleHttpError(error, `Failed to submit input action to URL: ${decisionUrl}`);
      }
    }
  • index.ts:231-250 (registration)
    MCP tool registration including schema (decisionUrl input) and thin wrapper handler delegating to JenkinsService.submitInputAction.
    server.tool(
      "jenkins_submit_input_action",
      "Enviar una acción de input a Jenkins (aprobar/rechazar)",
      {
        decisionUrl: z.string().describe("URL de la decisión (proceedUrl o abortUrl)")
      },
      async (args) => {
        try {
          const result = await getJenkinsService().submitInputAction(args.decisionUrl);
          
          return {
            content: [{ type: "text", text: `✅ **${result}**` }],
          };
        } catch (error: any) {
          return {
            content: [{ type: "text", text: `❌ **Error:** ${error.message}` }],
          };
        }
      }
    );
  • Zod schema defining the input parameter for the tool.
    {
      decisionUrl: z.string().describe("URL de la decisión (proceedUrl o abortUrl)")
    },
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It states the tool sends an input action but doesn't describe side effects (e.g., whether this modifies build state, requires authentication, or has rate limits), return values, or error conditions. For a mutation tool with zero annotation coverage, this is a significant gap in transparency.

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?

The description is a single, efficient sentence in Spanish that directly states the tool's purpose without unnecessary words. It is front-loaded with the core action and resource, making it easy to parse quickly. Every part of the sentence contributes essential information.

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

Completeness2/5

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

Given the tool's complexity (a mutation operation with no annotations and no output schema), the description is incomplete. It lacks details on behavioral traits, return values, error handling, and integration with sibling tools (e.g., relationship to 'jenkins_get_pending_actions'). For a tool that modifies Jenkins state, more context is needed to ensure safe and correct usage.

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 description coverage is 100%, with the single parameter 'decisionUrl' documented as 'URL de la decisión (proceedUrl o abortUrl)'. The description adds no additional parameter semantics beyond what the schema provides, such as how to obtain this URL or format details. Baseline 3 is appropriate when the schema does the heavy lifting.

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?

The description clearly states the action ('Enviar una acción de input') and the target resource ('a Jenkins'), with specific verbs 'aprobar/rechazar' indicating approval/rejection. It distinguishes from siblings like 'jenkins_start_job' or 'jenkins_stop_job' by focusing on input actions rather than job control or status retrieval. However, it doesn't explicitly mention that this is for pending actions, which could be inferred from sibling 'jenkins_get_pending_actions' but isn't stated.

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

Usage Guidelines2/5

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

No explicit guidance on when to use this tool versus alternatives is provided. The description implies usage for Jenkins input actions but doesn't specify prerequisites (e.g., needing a pending action from 'jenkins_get_pending_actions'), exclusions, or comparisons to other tools. This leaves the agent to infer context without clear direction.

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/gcorroto/mcp-jenkins'

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