Skip to main content
Glama
MyArchitectAI MCP server

MyArchitectAI MCP server

Official

Validate Image URL

validate_image_url
Read-only

Checks if an image URL is reachable and returns an image before using it as a render input, preventing failed requests that would waste API credits.

Instructions

HEAD-check that a URL is reachable and returns an image, before using it as a render input (which would otherwise spend money on a request guaranteed to fail). Does not charge the API account.

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": {
      "url": "<url>"
    },
    "name": "validate_image_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesURL to check (via HEAD) for reachability and image content-type before using it as input.

Output Schema

NameRequiredDescriptionDefault
okYesWhether the URL responded successfully.
bytesYesReported content length in bytes, if any.
statusYesHTTP status code (0 if unreachable).
isImageYesWhether the content type is an image.
contentTypeYesReported content type, if any.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.1

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is known. The description adds genuinely new context beyond that: the request is a HEAD rather than a full fetch, and critically that it does not charge the API account, which is the key behavioral fact for a cost-sensitive tool. It does not cover redirect handling, auth requirements, or timeouts.

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, front-loaded with the action and followed by the cost consequence. Every clause earns its place — the parenthetical about spending money is the strongest justification for the tool's existence and is placed where it is read first.

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?

For a one-parameter, single-purpose validation tool with an output schema, the description covers what it does, why it exists, and its billing behavior. Return-value semantics are handled by the output schema, so nothing essential is missing, though a note on what a negative result means would make it fully self-contained.

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

Parameters4/5

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

With a single parameter at 100% schema description coverage, the schema already carries the meaning, so the baseline is 4. The description does reinforce that the URL is checked for both reachability and image content-type, which clarifies what 'valid' means beyond the schema's bare 'format: uri'.

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 names a specific verb and resource — a HEAD check of a URL for reachability and image content-type — so the operation is unambiguous. It implicitly separates itself from rendering tools by framing the call as a pre-flight check, but it never names a sibling to contrast with, which keeps it at 4 rather than 5.

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?

It states the trigger clearly: run this before using a URL as a render input. The rationale (avoiding a paid request guaranteed to fail) reinforces when the tool pays off. It stops short of saying when NOT to bother or naming an alternative validator, so no explicit exclusion is provided.

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