Skip to main content
Glama
Hydrata MCP Server

Hydrata MCP Server

Official
by Hydrata

Read the features of a project input layer

read_input_layer
Read-onlyIdempotent

Read the features of a project input layer: GeoJSON in EPSG:4326 with each feature's id (fid), its attributes and its author (person, or the agent grant and client that wrote it).

Instructions

Read the features of a project input layer: GeoJSON in EPSG:4326 with each feature's id (fid), its attributes and its author (person, or the agent grant and client that wrote it).

Read a layer before you write to it. A person may have drawn features in the map that you cannot otherwise see; write_input_layer then ADDS to the layer rather than replacing it. Read-only.

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": {
      "project_id": "<project_id>",
      "kind": "<kind>"
    },
    "name": "read_input_layer"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYesWhich input: boundary, friction, inflow, rainfall, building, mesh_region or culvert.
row_idNoThe input row's id (from list_inputs). Leave empty for the project's default row of that kind.
project_idYesThe project ID

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.2

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered; the description's 'Read-only' merely echoes that. What it adds is genuinely useful context beyond annotations: the coordinate reference system of the result, the meaning of the `author` field (person vs. agent grant/client), and the semantics of the paired write tool.

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

Conciseness4/5

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

The output contract is front-loaded in the first sentence, followed by the procedural guidance and a one-word safety cue. Efficient overall, though the trailing 'Read-only' is redundant against readOnlyHint and could be dropped.

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?

With an output schema present, the description need not document return values, and it still sketches the feature shape helpfully. Combined with full schema coverage and read-only annotations, an agent has what it needs; only the row_id/default-row resolution could use a word more.

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 100%, with `kind`'s allowed values and row_id's default behavior already documented in the schema, so the baseline is 3. The description adds no parameter-level detail (e.g., how row_id interacts with the default row) that is not already in the structured field descriptions.

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?

The description gives a specific verb and resource ('Read the features of a project input layer') and immediately specifies the payload shape: GeoJSON in EPSG:4326, each feature's `id` (fid), attributes, and `author` provenance. That is far more than the title restated and lets an agent distinguish this read tool from the write/attach siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states an explicit precondition ('Read a layer before you write to it') and justifies it: a person may have drawn features you cannot otherwise see, and write_input_layer ADDS rather than replaces, so unseen features matter. The named alternative and the condition that selects it are both present.

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