Skip to main content
Glama

volkern_create_contrato_from_cotizacion

Generate a contract from an accepted quotation by specifying payment method, dates, and additional terms. This tool converts quotations into formal agreements within the CRM system.

Instructions

Create a contract from an accepted quotation

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cotizacionIdYesThe accepted quotation's ID
fechaInicioNoContract start date
fechaFinNoContract end date
metodoPagoNo
clausulasNoAdditional contract terms

Implementation Reference

  • Handler for volkern_create_contrato_from_cotizacion tool. Extracts cotizacionId from args and makes a POST request to /contratos/from-cotizacion/{cotizacionId} with the remaining contract data.
    case "volkern_create_contrato_from_cotizacion": {
      const { cotizacionId, ...contratoData } = args;
      return volkernRequest(`/contratos/from-cotizacion/${cotizacionId}`, "POST", contratoData);
    }
  • Input schema definition for volkern_create_contrato_from_cotizacion tool. Defines properties: cotizacionId (required), fechaInicio, fechaFin, metodoPago (enum), and clausulas.
    {
      name: "volkern_create_contrato_from_cotizacion",
      description: "Create a contract from an accepted quotation",
      inputSchema: {
        type: "object",
        properties: {
          cotizacionId: { type: "string", description: "The accepted quotation's ID" },
          fechaInicio: { type: "string", description: "Contract start date" },
          fechaFin: { type: "string", description: "Contract end date" },
          metodoPago: { type: "string", enum: ["unico", "mensual", "trimestral", "anual"] },
          clausulas: { type: "string", description: "Additional contract terms" }
        },
        required: ["cotizacionId"]
      }
    },
  • The volkernRequest helper function that handles all API calls to the Volkern API. Used by the handler to make HTTP requests with proper authentication headers.
    async function volkernRequest(
      endpoint: string,
      method: string = "GET",
      body?: Record<string, unknown>
    ): Promise<unknown> {
      const url = `${VOLKERN_API_URL}${endpoint}`;
      
      const options: RequestInit = {
        method,
        headers: {
          "Authorization": `Bearer ${VOLKERN_API_KEY}`,
          "Content-Type": "application/json",
        },
      };
    
      if (body && method !== "GET") {
        options.body = JSON.stringify(body);
      }
    
      const response = await fetch(url, options);
      
      if (!response.ok) {
        const errorData = await response.json().catch(() => ({}));
        throw new Error(
          `Volkern API Error (${response.status}): ${JSON.stringify(errorData)}`
        );
      }
    
      return response.json();
    }
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 this is a creation operation (implying mutation/write), but doesn't disclose any behavioral traits like required permissions, whether it's idempotent, what happens if the quotation isn't accepted, or what the response contains. For a mutation tool with zero annotation coverage, this is inadequate.

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 that gets straight to the point with zero wasted words. It's appropriately sized for this tool's purpose and front-loads the 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?

For a mutation tool with 5 parameters, no annotations, and no output schema, the description is incomplete. It doesn't address behavioral aspects, error conditions, response format, or relationships with other tools. Given the complexity of contract creation and the lack of structured metadata, the description should provide more context about how this operation works.

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 80% (4 of 5 parameters have descriptions), so the baseline is 3. The description doesn't add any parameter semantics beyond what the schema provides - it doesn't explain relationships between parameters, format requirements for dates, or the significance of 'metodoPago' choices. It relies entirely on the schema documentation.

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 ('Create a contract') and the source ('from an accepted quotation'), providing a specific verb+resource combination. It distinguishes from sibling 'volkern_create_contrato' by specifying the quotation source, though it doesn't explicitly contrast with other contract-related tools like 'volkern_send_contrato'.

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?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., the quotation must be accepted), when not to use it, or how it differs from 'volkern_create_contrato' which appears to create contracts without a quotation source. The context is implied but not explicit.

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/DeXpertmx/mcp-volkern'

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