Skip to main content
Glama

openchargemap-mcp-server: get station

openchargemap_get_station
Read-onlyIdempotent

Get the full record for one Open Charge Map station by its numeric OCM ID. Returns every connection (type, level, power, current, quantity, per-connection status), the operator and network, usage and access restrictions (pay-at-location, membership, access key), the number of charge points, general comments, usage cost, the site and operator contact details on record (site phone and web page, operator website, phone, and fault-report email; never returned for a private residence), the data provider with its license terms, media, the date the listing was created, and verification recency. Set includeComments to also return community check-ins inline.

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": {
      "id": "<id>"
    },
    "name": "openchargemap_get_station"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesNumeric OCM station ID (e.g. 145452).
includeCommentsNoInclude community check-ins and comments inline in the response. Adds payload but gives the real-world reliability signal alongside the registry status. Every comment on record comes back at once, unpaged — on a station with hundreds of check-ins that is a large response, so prefer openchargemap_get_station_comments, which returns them a page at a time.

Output Schema

NameRequiredDescriptionDefault
errorNoPresent when the call failed. Absent on success.
stationNoThe full station record.
attributionNoAttribution to Open Charge Map contributors and station data providers; license terms vary by provider.
reliabilityNoteNoA caveat when the registry status, verification age, coordinates, or comments suggest the listing may not reflect reality. Omitted when there is nothing to flag.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed15 schema fields changed
    • addedOutput schema / properties / station / properties / address / properties / line2
      Added value: +{
      +  "description": "Second address line (e.g. a district or building). Absent when none on record.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / station / properties / contactPhone
      Added value: +{
      +  "description": "Site contact phone, free text as recorded. Absent when none on record or when the station is a private residence.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / station / properties / contactPhoneSecondary
      Added value: +{
      +  "description": "Second site contact, free text as recorded (occasionally an email address). Absent when none on record or when the station is a private residence.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / station / properties / dataProviderId
      Added value: +{
      +  "description": "OCM data provider ID. Provider titles are not unique — two providers can share one with different license terms — so the ID is what identifies the provider.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / station / properties / dateCreated
      Added value: +{
      +  "description": "ISO 8601 timestamp the listing was added to Open Charge Map.",
      +  "type": "string"
      +}
    • changedOutput schema / properties / station / properties / distance / description
      Previous value: -"Distance from the search point. Absent for bounding-box searches."New value: +"Distance from the search point: the center of a radius search or of a bounding box. Absent along a route, which reports routeDistance and offRouteDistance instead."
    • changedOutput schema / properties / station / properties / distanceUnit / description
      Previous value: -"Unit of the distance value."New value: +"Unit of distance, routeDistance, and offRouteDistance."
    • addedOutput schema / properties / station / properties / offRouteDistance
      Added value: +{
      +  "description": "Route searches only: distance from the station to its nearest point on the route — the detour off it. At most the requested distance.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / station / properties / operatorFaultReportEmail
      Added value: +{
      +  "description": "Operator network's address for reporting a faulty charger. Absent when none on record or when the station is a private residence.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / station / properties / operatorPhone
      Added value: +{
      +  "description": "Operator network's primary contact phone. Absent when none on record or when the station is a private residence.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / station / properties / operatorWebsite
      Added value: +{
      +  "description": "Operator network's website. Absent when none on record or when the station is a private residence.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / station / properties / relatedUrl
      Added value: +{
      +  "description": "Web page for the site (network or venue page). Absent when none on record or when the station is a private residence.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / station / properties / routeDistance
      Added value: +{
      +  "description": "Route searches only: distance along the route from its first point to the station's nearest point on the route — the order a driver meets stations.",
      +  "type": "number"
      +}
    • changedOutput schema / properties / station / properties / usageCost / description
      Previous value: -"Free-text cost description (e.g. \"£0.30/kWh\"). Often absent — absence means unknown, not free."New value: +"Free-text cost description as recorded (e.g. \"£0.30/kWh\"). Often absent — absence means unknown, not free."
    • addedOutput schema / properties / station / properties / usageTypeId
      Added value: +{
      +  "description": "Usage type ID — the value the openchargemap_find_stations usagetypeid filter takes. 0 is OCM's \"(Unknown)\" type. Absent when OCM has no usage type on record.",
      +  "type": "number"
      +}
  2. Changed7 schema fields changed
    • changedOutput schema / properties / attribution / description
      Previous value: -"Required CC BY 4.0 attribution to Open Charge Map contributors."New value: +"Attribution to Open Charge Map contributors and station data providers; license terms vary by provider."
    • addedOutput schema / properties / station / properties / connections / items / properties / isOperational
      Added value: +{
      +  "description": "Faithful registry operational flag for this connector; absent when unknown.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / station / properties / connections / items / properties / notes
      Added value: +{
      +  "description": "Provider notes about this connector.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / station / properties / connections / items / properties / status
      Added value: +{
      +  "description": "Registry status title for this connector.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / station / properties / connections / items / properties / statusTypeId
      Added value: +{
      +  "description": "Registry status ID for this connector; absent when no status ID is on record.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / station / properties / dataProviderLicense
      Added value: +{
      +  "description": "License terms supplied by the station data provider. Absent when unspecified.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / station / properties / isOpenDataLicensed
      Added value: +{
      +  "description": "Whether the provider marks its data as openly licensed. Absent when unknown.",
      +  "type": "boolean"
      +}
  3. Changed14 schema fields changed
    • removedOutput schema / properties / station / properties / comments / items / properties / rating / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / station / properties / comments / items / properties / rating / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / station / properties / connections / items / properties / amps / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / station / properties / connections / items / properties / amps / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / station / properties / connections / items / properties / powerKW / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / station / properties / connections / items / properties / powerKW / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / station / properties / connections / items / properties / quantity / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / station / properties / connections / items / properties / quantity / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / station / properties / connections / items / properties / voltage / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / station / properties / connections / items / properties / voltage / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / station / properties / dateLastStatusUpdate / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / station / properties / dateLastStatusUpdate / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / station / properties / dateLastVerified / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / station / properties / dateLastVerified / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  4. Changed6 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / additionalProperties
      Added value: +false
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "error"
      +      ]
      +    },
      +    "required": [
      +      "station",
      +      "attribution"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "error"
      +    ]
      +  }
      +]
    • addedOutput schema / properties / error
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Present when the call failed. Absent on success.",
      +  "properties": {
      +    "code": {
      +      "description": "JSON-RPC error code for this failure.",
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "data": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "reason": {
      +          "description": "Machine-readable failure mode. Declared by this tool: `not_found`: OCM returned an empty result for the given numeric ID (HTTP 200 with []) — no such station. `upstream_unavailable`: OCM returned a non-2xx response or timed out. `auth_failed`: OCM returned HTTP 401 or 403 — the API key is missing or invalid. Other values are possible when a failure originates below the handler.",
      +          "examples": [
      +            "not_found",
      +            "upstream_unavailable",
      +            "auth_failed"
      +          ],
      +          "type": "string"
      +        },
      +        "recovery": {
      +          "additionalProperties": {},
      +          "description": "Actionable next step for the caller.",
      +          "properties": {
      +            "hint": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "hint"
      +          ],
      +          "type": "object"
      +        },
      +        "retryable": {
      +          "description": "Whether retrying may succeed.",
      +          "type": "boolean"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "message": {
      +      "description": "Human-readable description of what went wrong.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "code",
      +    "message"
      +  ],
      +  "type": "object"
      +}
    • removedOutput schema / required
      Removed value: -[
      -  "station",
      -  "attribution"
      -]
  5. Changed1 schema field changed
    • changedInput schema / properties / includeComments / description
      Previous value: -"Include community check-ins and comments inline in the response. Adds payload but gives the real-world reliability signal alongside the registry status. For comments alone, use openchargemap_get_station_comments."New value: +"Include community check-ins and comments inline in the response. Adds payload but gives the real-world reliability signal alongside the registry status. Every comment on record comes back at once, unpaged — on a station with hundreds of check-ins that is a large response, so prefer openchargemap_get_station_comments, which returns them a page at a time."
  6. Changed5 schema fields changed
    • addedOutput schema / properties / station / properties / comments / items / properties / checkinStatus
      Added value: +{
      +  "description": "The visit outcome the driver recorded (e.g. \"Charged Successfully\", \"Failed to Charge (Equipment Not Operational)\"). Carries the result on check-ins that have no comment text. Absent when the visitor recorded no outcome.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / station / properties / comments / items / properties / checkinStatusId
      Added value: +{
      +  "description": "Numeric ID of the check-in outcome, stable across renames of its title.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / station / properties / comments / items / properties / checkinStatusIsPositive
      Added value: +{
      +  "description": "Whether the registry classes this outcome as a good visit. Absent when the outcome carries no verdict either way (e.g. \"Did Not Visit Location\") or when none was recorded.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / station / properties / comments / items / properties / relatedUrl
      Added value: +{
      +  "description": "Link the commenter attached. Absent when none was given.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / station / properties / statusTypeId
      Added value: +{
      +  "description": "Registry status ID — the value the openchargemap_find_stations statustypeid filter takes. Absent when OCM has no status on record.",
      +  "type": "number"
      +}
  7. Changed6 schema fields changed
    • changedInput schema / properties / id / description
      Previous value: -"Numeric OCM station ID (e.g. 145452). Obtain one from openchargemap_find_stations. Note: UUID lookup is not supported by the OCM API."New value: +"Numeric OCM station ID (e.g. 145452)."
    • changedOutput schema / properties / reliabilityNote / description
      Previous value: -"Server-computed caveat when registry status and recency suggest the listing may not reflect reality (plain prose from observable facts; no synthetic score). Omitted when status is fresh and uncontested."New value: +"A caveat when the registry status, verification age, coordinates, or comments suggest the listing may not reflect reality. Omitted when there is nothing to flag."
    • changedOutput schema / properties / station / properties / distanceUnit / description
      Previous value: -"Unit of the distance value (normalized from the OCM integer enum: 1=KM, 2=Miles)."New value: +"Unit of the distance value."
    • changedOutput schema / properties / station / properties / id / description
      Previous value: -"OCM station ID. Pass to openchargemap_get_station or openchargemap_get_station_comments."New value: +"OCM station ID."
    • changedOutput schema / properties / station / properties / isOperational / description
      Previous value: -"Whether the registry marks the status operational. Absent (not null) when StatusType is \"Unknown\" (ID=0) — OCM omits the flag then. A true value can still mask a broken charger — corroborate with comments and dateLastVerified."New value: +"Whether the registry marks the status operational. Absent when the operational state is unknown. A true value can still mask a broken charger — corroborate with comments and dateLastVerified."
    • changedOutput schema / properties / station / properties / isRecentlyVerified / description
      Previous value: -"OCM flag: whether the listing was verified recently."New value: +"Whether the listing was verified recently."
  8. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover readOnly/idempotent/openWorld, and the description goes well beyond them: it discloses a privacy rule (contact details never returned for a private residence), that verification recency and license terms come back, and that includeComments is unpaged and can bloat the response. That is exactly the behavioral context annotations cannot carry.

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 purpose is front-loaded and the final sentence is a useful routing hint, but the middle is one very long enumerated field dump. Since an output schema exists, cataloguing every returned field (phone, email, license terms, media, creation date) is largely redundant and dilutes the guidance that matters.

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?

An output schema exists so return-value detail is not required, and the description nevertheless supplies the context an agent needs: scope, privacy exception, and the comments tradeoff. Nothing essential for calling it correctly is missing, though it spends space duplicating structured output information.

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 the baseline is 3; the description earns a point for framing includeComments as 'inline' versus the paged comments sibling, which clarifies intent rather than just restating the flag. The id parameter is only described by implication ('numeric OCM ID').

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 and resource ('Get the full record for one Open Charge Map station') plus the exact lookup key ('numeric OCM ID'), which cleanly separates it from openchargemap_find_stations (search) and openchargemap_lookup_reference (reference data). An agent knows from the first clause whether this tool fits.

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?

Implies the single-record-by-ID use case and names the tradeoff for includeComments, including a pointer to openchargemap_get_station_comments for paged retrieval. It stops short of an explicit when-to-use statement such as 'use when you already have a station ID from a search result' or explicit exclusions.

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.