Skip to main content
Glama

x402_ckan-latvia_get_v1_package

Fetch detailed metadata for a Latvian open data dataset by ID from the data.gov.lv CKAN portal, including title, resources, organization, and tags.

Instructions

ckan-latvia — Latvian open data portal (data.gov.lv), a CKAN instance. Search datasets, show dataset details, and list groups, organizations, tags and portal status. Keyless JSON API. [GET /v1/package] $0.005 USDC on eip155:8453+137+42161+480. Example: /v1/package?id=troksnu-kartesanas-dati

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": "x402_ckan-latvia_get_v1_package"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoJSON body for POST/PUT/PATCH/DELETE
queryNoQuery parameters, e.g. {base:'USD', quote:'EUR'}
restartNoExplicitly re-run a previously failed/unknown operation. Never set for unknown outcomes unless you know the paid call did not complete.
operationIdNoDurable operation id for this intent. Supply a stable id (e.g. your job/run id) to dedupe retries; omit to derive one from the arguments.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

C2.9/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose genuinely useful behavior beyond the schema: the API is keyless JSON, and each call costs $0.005 USDC across four chains (eip155:8453/137/42161/480), which matters for a paid endpoint. It says nothing, however, about what the call returns, error/empty-id behavior, or how payment is settled — and the restart/operationId parameters imply a retry-sensitive paid flow that is never explained.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The endpoint, price and example are terse and useful, but the first sentence is paste-in portal boilerplate enumerating four other endpoints' capabilities, which dilutes the front-loading. Roughly half the text does not pertain to this tool.

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?

With no annotations, no output schema, and a paid call, an agent still cannot tell what /v1/package returns (full metadata? resource list?), whether an id is required, or what happens on an unknown-id or failed-paid-call outcome — despite restart/operationId parameters that presuppose exactly that failure mode.

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?

Schema coverage is 100%, so baseline would be 3, but the description adds the one piece of semantics the schema lacks: the concrete query key and value shape via "?id=troksnu-kartesanas-dati". The schema's generic example ({base:'USD', quote:'EUR'}) is unrelated to a CKAN package lookup, so this example meaningfully compensates.

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

Purpose3/5

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

The description opens with the portal's overall scope ("Search datasets, show dataset details, and list groups, organizations, tags and portal status"), which describes several sibling tools at once rather than this one. Only the trailing bracket "[GET /v1/package]" plus the example "/v1/package?id=troksnu-kartesanas-dati" narrows it to a single-dataset lookup by id. An agent can infer the purpose, but only after parsing boilerplate shared with get_v1_search, get_v1_groups and get_v1_status.

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 statement of when to use this endpoint versus get_v1_search (find by keyword) or the groups/organizations endpoints. The id-based example hints at direct lookup, but there is no explicit guidance, no prerequisite for obtaining an id, and no exclusions.

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

Deploy Server

Other Tools