Skip to main content
Glama

buy_time

buy_time

Buys line time by the millisecond, $0.000001 each; buying again adds time. Returns your channelId, the time bought and the time left. Then open a line with the line tool. Time you do not burn comes back on refund. Not idempotent: each call buys more time. Paid. With no wallet code, pay with a pass (https://mcp.zeamprism.com/pass) or the Bridge: https://mcp.zeamprism.com/how-to-pay Example: {"ms":60000}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
msNomilliseconds of line time; default 250. Buying again adds time

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
paidUSDNo
boughtMsNo
channelIdNo
msRemainingNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / properties / ms / maximum
      Removed value: -9007199254740991
  2. Changed4 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +{}
    • removedInput schema / properties / blocks
      Removed value: -{
      -  "description": "blocks of 250 ms; default 1",
      -  "maximum": 14400,
      -  "minimum": 1,
      -  "type": "integer"
      -}
    • addedInput schema / properties / ms
      Added value: +{
      +  "description": "milliseconds of line time; default 250. Buying again adds time",
      +  "maximum": 9007199254740991,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • removedOutput schema / properties / blockMs
      Removed value: -{
      -  "type": [
      -    "number",
      -    "null"
      -  ]
      -}
  3. Changed18 schema fields changed
    • addedInput schema / properties / blocks
      Added value: +{
      +  "description": "blocks of 250 ms; default 1",
      +  "maximum": 14400,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • removedInput schema / properties / line
      Removed value: -{
      -  "description": "the credential from /pay, so this payment is applied to your line",
      -  "type": "string"
      -}
    • addedOutput schema / properties / blockMs
      Added value: +{
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • changedOutput schema / properties / boughtMs / anyOf
      Previous value: -[
      -  {
      -    "description": "milliseconds this payment added to the balance",
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "description": "milliseconds this payment bought",
      +    "type": "number"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / buysMs
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "description": "what the remaining collateral can still buy",
      -      "type": "number"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ]
      -}
    • addedOutput schema / properties / channelId
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • removedOutput schema / properties / collateral
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "description": "micro-USD still behind the channel",
      -      "type": "number"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ]
      -}
    • removedOutput schema / properties / hint
      Removed value: -{
      -  "type": [
      -    "string",
      -    "null"
      -  ]
      -}
    • removedOutput schema / properties / line
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "description": "the line this tick was applied to, null if none matched",
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ]
      -}
    • removedOutput schema / properties / metering
      Removed value: -{
      -  "type": [
      -    "boolean",
      -    "null"
      -  ]
      -}
    • changedOutput schema / properties / msRemaining / anyOf
      Previous value: -[
      -  {
      -    "description": "balance after this tick; absent when no line matched",
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "description": "time on the channel after this payment",
      +    "type": "number"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / open
      Removed value: -{
      -  "type": [
      -    "boolean",
      -    "null"
      -  ]
      -}
    • removedOutput schema / properties / paid
      Removed value: -{
      -  "type": [
      -    "boolean",
      -    "null"
      -  ]
      -}
    • removedOutput schema / properties / paidMicroUSD
      Removed value: -{
      -  "type": [
      -    "number",
      -    "null"
      -  ]
      -}
    • addedOutput schema / properties / paidUSD
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • removedOutput schema / properties / settledBeforeMicroUSD
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "description": "what we had settled against this channel before this call; only when no line matched",
      -      "type": [
      -        "number",
      -        "null"
      -      ]
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ]
      -}
    • removedOutput schema / properties / thisCallMicroUSD
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "description": "what this call is charged: the row it paid",
      -      "type": [
      -        "number",
      -        "null"
      -      ]
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ]
      -}
    • removedOutput schema / properties / tick
      Removed value: -{
      -  "type": [
      -    "boolean",
      -    "null"
      -  ]
      -}
  4. Changed3 schema fields changed
    • removedOutput schema / properties / cumulativeMicroUSD
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "description": "charged to date; only when no line matched",
      -      "type": [
      -        "number",
      -        "null"
      -      ]
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ]
      -}
    • addedOutput schema / properties / settledBeforeMicroUSD
      Added value: +{
      +  "anyOf": [
      +    {
      +      "description": "what we had settled against this channel before this call; only when no line matched",
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / thisCallMicroUSD
      Added value: +{
      +  "anyOf": [
      +    {
      +      "description": "what this call is charged: the row it paid",
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
  5. Added

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources