• STRUCTURED
  • CALCULATIONS
  • LOGS
  • HUMAN

How to extract time units from durations with your agent

Connect this MCP to your AI client once. From there, your agent handles the parsing of any standardized duration string you provide.

Ask AI about this page

Our technology reaches across leading technology and enterprise teams.

  • Amazon
  • NVIDIA
  • Red Hat
  • Fidelity Investments
  • Intuit
  • OLX Brasil
  • Writesonic
  • Artium
  • Trolley
Bunny World Voxel Workspace

Short answer

How can I break down an ISO 8601 duration string?

Your agent uses the parse_duration_components tool to isolate specific time units from a single string. You'll get a clear list of years, months, days, and hours. This breakdown makes the data ready for your next task.

The results you get.

Where the data lands.

Your agent processes the string and organizes the output into these formats.

STRUCTURED

Individual time units

Your agent pulls out each component. You get a clean set of values for years, months, and hours.

CALCULATIONS

Ready for math

Since the units are separated, your agent can sum them or use them in formulas. It turns text into usable numbers.

LOGS

Clean audit trails

Your agent can format the parsed data into a readable log. This is useful for tracking durations in your system.

HUMAN

Manual review

You can check the parsed components against your original string. Your agent provides the breakdown, but you verify the accuracy.

The workflow

What your agent does when a duration string arrives.

Your agent takes the raw text and runs it through a specific parsing tool.

  1. Receive input

    Your agent identifies the ISO 8601 string you've provided in the chat.

    parse_duration_components
  2. Parse components

    Your agent uses the parser to split the string into its constituent time parts.

    parse_duration_components
  3. Map units

    Your agent organizes the resulting years, months, and days into a structured format.

    parse_duration_components
  4. Output data

    Your agent delivers the individual time units back to you in the chat.

    parse_duration_components

Vinkius Agentic Execution Platform

State the outcome. Agents take it from there.

You don't have to drive this run by hand. Inside the Vinkius Agentic Execution Platform, agents pick up the task above and carry it to the end: you set the limits, you watch the steps, you keep all decisions.

Run it in Vinkius

Agents carry the task to the end

Agents execute ISO 8601 Duration Parser tasks from end to end inside the Vinkius Agentic Execution Platform: set the outcome, and the steps run.

Take it to any compatible AI

One connection, any client

Same connection follows you to ChatGPT, Claude, Gemini and any other client you love. Switch whenever you want: your connection, your permissions and your record move with you.

Spaces

One Space per activity

A Space gathers the context, tools and tasks of one activity, so you coordinate several agents at once and follow each execution as it happens.

Limits

Autonomy inside limits you set

Permissions and spending limits are yours to define. Agents halt for your approval on anything sensitive, and you choose how far autonomy goes, step by step or end to end.

Record

All steps, on the record

Each action your agents take lands in a signed audit trail. Results are verified, mistakes are learned from, and an emergency stop is one click away.

Models

Included in your plan

A curated selection of AI models is included in your plan, and you can add your own through BYOK whenever you prefer.

Try it

Copy these to start.

Paste these directly into your chat to begin.

Starting points

Swap out the bracketed text for the actual ISO 8601 string you want to parse.

ISO 8601 Duration Parser Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_2WcnUBWGMCBZlVpBB9cXYGlf2wdTc8ndAB28ZT4s/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat, ISO 8601 Duration Parser capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "iso-8601-duration-parser-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_2WcnUBWGMCBZlVpBB9cXYGlf2wdTc8ndAB28ZT4s/mcp"
    }
  }
}
Copy into chat04
  • 01

    Parse this duration string: [P1Y2M3DT4H5M]

  • 02

    Break down the time units in this string: [P10D]

  • 03

    Extract the years and months from [P5Y11M]

  • 04

    What are the individual components of this duration: [PT12H30M]?

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect ISO 8601 Duration Parser once, then ask.

Connect the MCP to your preferred client. Your login stays encrypted on our side, and you can start parsing immediately.

Connect ISO 8601 Duration Parser to your agent

FAQ

How the parser behaves.

  • 01

    Can your agent change the duration string?

    No. Your agent only extracts the components; it does not modify the original string.

  • 02

    Does it work with any time format?

    No. This tool is specifically for the ISO 8601 standard.

  • 03

    Can your agent use these units for math?

    Yes. Once the units are extracted, your agent can use them for calculations.

  • 04

    Can your agent delete my data?

    No. This MCP only has the capability to parse strings.

  • 05

    What if the string is invalid?

    Your agent will report that it cannot parse the string if it doesn't follow the ISO 8601 format.

  • More questions about ISO 8601 Duration Parser? The Connector page answers them. See everything the ISO 8601 Duration Parser Connector can do

Building with AI? Ship this whole workflow in your product.

Vinkius Connect is the connectivity layer for AI builders. All the capabilities used on this page, from ISO 8601 Duration Parser to thousands more, arrive through one SDK, already maintained for you. One Application, unlimited seats, each with their own connectors and credentials, isolated and never exposed to Vinkius. No OAuth flows to write, no tokens to store, no APIs to chase.

Explore Vinkius Connect

TypeScript · Python · Java · Go · C# · PHP · Rust

  • 01

    Your customers bring their own keys.

    Each user connects their own apps and keeps their own credentials. Vinkius only sees the identifier your backend sends.

  • 02

    Whole catalog, kept current.

    ISO 8601 Duration Parser plus thousands more, maintained and growing daily. No integrations to write, no token storage, no OAuth plumbing.

  • 03

    Any agent, any model.

    Capabilities land as framework-neutral objects, with adapters for OpenAI, Anthropic, Gemini, the Vercel AI SDK, LangChain and more.

Connect ISO 8601 Duration Parser to Claude, Cursor, ChatGPT & more

From idea to done

See what gets done when the agents take over the busywork

Each workflow on this page runs on the same platform. Connect your tools once, and your agents keep working in any AI you trust.