Skip to content

Validate required string tool arguments before API calls #9

@dejaguarkyng

Description

@dejaguarkyng

Several MCP tools cast required string arguments directly from request arguments and let invalid or blank values reach the API client. Add local validation for required string inputs such as job_id and artifact_id so users get clear MCP tool errors before a REST request is attempted.

Acceptance criteria:

  • get_job, cancel_job, get_job_logs, stream_job_logs, list_job_artifacts, and get_artifact_download_url reject missing or blank IDs locally.
  • Error messages name the tool and the invalid argument.
  • Unit tests cover missing, non-string, and blank values.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions