Skip to main content
Glama

Upsert crawl source

upsert_crawl_source
Idempotent

Add or edit one of this tenant's own sources. description is the work order an exploring agent will be handed — write what search is needed, which filters, which fields, in prose, before anyone knows how the portal works. Shared catalogue entries cannot be edited here: their name and description ship with the product. Pass source_id to edit, or source_key to create.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "upsert_crawl_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
statusNo
countryNo
base_urlNo
priorityNo0 = P0, highest.
data_kindNo
source_idNo
source_keyNoStable slug, e.g. "simap-ch". Used in configs and prompts, so it should not be renamed later.
descriptionNo
access_notesNoLogin? Which account? Paid edition? And whether we may redistribute what we pull — that last one decides whether the source is usable at all.
connector_refNo
coverage_notesNo
notices_per_monthNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Adds real context beyond the annotations: the downstream consequence that `description` becomes a work order consumed by an exploring agent, and the immutability of shared catalogue entries. However, for a 13-parameter upsert where every field is optional, it never says whether an edit replaces the whole record or merges only supplied fields, nor what happens if both or neither of source_id/source_key are given. Annotations already cover the safety profile (idempotent, non-destructive, closed-world), so the missing upsert semantics are the material gap.

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?

Four sentences, each load-bearing: capability, meaning of the most confusing field, an exclusion, and the create/edit switch. The framing is front-loaded and the em-dash clause about writing the work order before the portal is understood is genuinely informative rather than decorative.

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?

Annotations cover the mutation/safety profile and there is no output schema, so the description need only carry the semantic payload — which it largely does for the two ambiguous routing fields and the headline field. Still incomplete on partial-update behavior and on the several domain fields (status, priority, data_kind, connector_ref) that an agent must fill without any guidance.

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 only 23%, and the description does useful work on the two least obvious parameters: it explains what to write in `description` (prose work order naming the search, filters and fields) and how source_id versus source_key select edit/create. The remaining parameters (status, priority, data_kind, connector_ref, coverage_notes, notices_per_month, country, base_url) get no added meaning of any kind.

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

Purpose5/5

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

States a specific verb pair and resource ('Add or edit one of this tenant's own sources'), and the qualifier 'own' plus the shared-catalogue note separates it from list_crawl_sources and delete_crawl_source at a glance. An agent knows exactly what object class this mutates.

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?

Gives an explicit mode switch ('Pass source_id to edit, or source_key to create') and an explicit exclusion ('Shared catalogue entries cannot be edited here'). It does not name sibling tools (list_crawl_sources for discovery, delete_crawl_source for removal) as alternatives, so it stops short of full when-to-use routing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources